David Touzeau
2011-Apr-03 17:06 UTC
[Samba] Scannedonly: Unable to compile on Samba v3.5.8 [scannedonly.so] Error 1
Dear I'm trying to compile scannedonly 0.21 on samba v3.5.8 on Ubuntu 8.10 i386 But i receive errors. Can anybody help me... checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for a BSD-compatible install... /usr/bin/install -c checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking for unistd.h... (cached) yes checking for gettimeofday... yes checking for memset... yes checking for socket... yes checking for strdup... yes checking for strerror... yes checking for strrchr... yes checking for strndup... yes checking for send... yes checking for gethostbyname... yes checking for cl_scanfile in -lclamav... yes checking clamav.h usability... yes checking clamav.h presence... yes checking for clamav.h... yes checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking for socket in -lsocket... no checking for gethostbyname in -lnsl... yes checking for maxratio field in cl_limits struct... no checking for cl_init in -lclamav... yes Build scannedonlyd_clamav ... yes checking talloc.h usability... yes checking talloc.h presence... yes checking for talloc.h... yes checking for _talloc_free in -ltalloc... yes testing for /usr/local/share/samba/samba-3.5.8/source3/lib/tdb/include/tdb.h samba 3.4 detected Build samba vfs module scannedonly.so ... yes configure: creating ./config.status syntax error. Last token seen: u Garbled time config.status: creating Makefile config.status: creating src/Makefile config.status: creating man/Makefile config.status: creating src/config.h make[1]: Entering directory `/tmp/artica/install/sources/scannedonly/scannedonly-0.21/man' gzip -9 < scannedonly_prescan.8 > scannedonly_prescan.8.gz gzip -9 < scannedonlyd_clamav.8 > scannedonlyd_clamav.8.gz make[1]: Leaving directory `/tmp/artica/install/sources/scannedonly/scannedonly-0.21/man' make[1]: Entering directory `/tmp/artica/install/sources/scannedonly/scannedonly-0.21/src' gcc -g -O2 -Wall -pipe -c -o scannedonly_prescan.o scannedonly_prescan.c gcc -lclamav -lnsl -ltalloc -o scannedonly_prescan scannedonly_prescan.o gcc -g -O2 -Wall -pipe -c -o scannedonlyd_clamav.o scannedonlyd_clamav.c scannedonlyd_clamav.c: In function ?push_to_queue?: scannedonlyd_clamav.c:123: warning: implicit declaration of function ?strdup? scannedonlyd_clamav.c:123: warning: incompatible implicit declaration of built-in function ?strdup? scannedonlyd_clamav.c: In function ?handle_file_warning?: scannedonlyd_clamav.c:455: warning: implicit declaration of function ?snprintf? scannedonlyd_clamav.c:455: warning: incompatible implicit declaration of built-in function ?snprintf? scannedonlyd_clamav.c: In function ?main?: scannedonlyd_clamav.c:1040: warning: incompatible implicit declaration of built-in function ?strdup? scannedonlyd_clamav.c:1145: warning: incompatible implicit declaration of built-in function ?strdup? gcc -lclamav -lnsl -ltalloc -o scannedonlyd_clamav scannedonlyd_clamav.o gcc -g -O2 -Wall -pipe -fpic -c -o vfs_scannedonly.o vfs_scannedonly.c -I /usr/local/share/samba/samba-3.5.8/source3 -I /usr/local/share/samba/samba-3.5.8/source3/../ -I /usr/local/share/samba/samba-3.5.8/source3/include -I /usr/local/share/samba/samba-3.5.8/source3/../lib/replace -I /usr/local/share/samba/samba-3.5.8/source3/opt -I /usr/local/share/samba/samba-3.5.8/source3/librpc -I /usr/local/share/samba/samba-3.5.8/source3/../lib/tdb/include/ -I /usr/local/share/samba/samba-3.5.8/source3/../lib/talloc/ -I /usr/local/share/samba/samba-3.5.8/source3/../lib/popt/ -I /usr/local/share/samba/samba-3.5.8/source3/../lib/tevent/ vfs_scannedonly.c:414:53: error: macro "SMB_VFS_NEXT_STAT" passed 3 arguments, but takes just 2 vfs_scannedonly.c: In function ?scannedonly_allow_access?: vfs_scannedonly.c:414: error: ?SMB_VFS_NEXT_STAT? undeclared (first use in this function) vfs_scannedonly.c:414: error: (Each undeclared identifier is reported only once vfs_scannedonly.c:414: error: for each function it appears in.) vfs_scannedonly.c:423: error: ?SMB_STRUCT_STAT? has no member named ?st_mode? vfs_scannedonly.c:424: error: ?SMB_STRUCT_STAT? has no member named ?st_mode? vfs_scannedonly.c:430: error: ?SMB_STRUCT_STAT? has no member named ?st_mode? vfs_scannedonly.c:432: error: ?SMB_STRUCT_STAT? has no member named ?st_size? vfs_scannedonly.c:441:54: error: macro "SMB_VFS_NEXT_STAT" passed 3 arguments, but takes just 2 vfs_scannedonly.c:443: error: ?SMB_STRUCT_STAT? has no member named ?st_ctim? vfs_scannedonly.c:443: error: ?SMB_STRUCT_STAT? has no member named ?st_ctim? vfs_scannedonly.c:451: warning: passing argument 2 of ?smb_vfs_call_unlink? from incompatible pointer type vfs_scannedonly.c:485: error: ?SMB_STRUCT_STAT? has no member named ?st_size? vfs_scannedonly.c:498:56: error: macro "SMB_VFS_NEXT_STAT" passed 3 arguments, but takes just 2 vfs_scannedonly.c:507: error: ?SMB_STRUCT_STAT? has no member named ?st_ctim? vfs_scannedonly.c:507: error: ?SMB_STRUCT_STAT? has no member named ?st_ctim? vfs_scannedonly.c:671:44: error: macro "SMB_VFS_NEXT_STAT" passed 3 arguments, but takes just 2 vfs_scannedonly.c: In function ?scannedonly_stat?: vfs_scannedonly.c:671: error: ?SMB_VFS_NEXT_STAT? undeclared (first use in this function) vfs_scannedonly.c:687:56: error: macro "SMB_VFS_NEXT_STAT" passed 3 arguments, but takes just 2 vfs_scannedonly.c:703:45: error: macro "SMB_VFS_NEXT_LSTAT" passed 3 arguments, but takes just 2 vfs_scannedonly.c: In function ?scannedonly_lstat?: vfs_scannedonly.c:703: error: ?SMB_VFS_NEXT_LSTAT? undeclared (first use in this function) vfs_scannedonly.c:719:57: error: macro "SMB_VFS_NEXT_LSTAT" passed 3 arguments, but takes just 2 vfs_scannedonly.c: In function ?scannedonly_open?: vfs_scannedonly.c:745: warning: passing argument 2 of ?smb_vfs_call_open? from incompatible pointer type vfs_scannedonly.c:776: warning: passing argument 2 of ?smb_vfs_call_open? from incompatible pointer type vfs_scannedonly.c: In function ?scannedonly_close?: vfs_scannedonly.c:798: warning: passing argument 3 of ?construct_full_path? from incompatible pointer type vfs_scannedonly.c: In function ?scannedonly_rename?: vfs_scannedonly.c:834: warning: passing argument 2 of ?smb_vfs_call_unlink? from incompatible pointer type vfs_scannedonly.c:839: warning: passing argument 2 of ?smb_vfs_call_rename? from incompatible pointer type vfs_scannedonly.c:839: warning: passing argument 3 of ?smb_vfs_call_rename? from incompatible pointer type vfs_scannedonly.c:847: warning: passing argument 2 of ?smb_vfs_call_rename? from incompatible pointer type vfs_scannedonly.c:847: warning: passing argument 3 of ?smb_vfs_call_rename? from incompatible pointer type vfs_scannedonly.c: In function ?scannedonly_unlink?: vfs_scannedonly.c:873: warning: passing argument 2 of ?smb_vfs_call_unlink? from incompatible pointer type vfs_scannedonly.c:880: warning: passing argument 2 of ?smb_vfs_call_unlink? from incompatible pointer type vfs_scannedonly.c:924:55: error: macro "SMB_VFS_NEXT_STAT" passed 3 arguments, but takes just 2 vfs_scannedonly.c: In function ?scannedonly_rmdir?: vfs_scannedonly.c:924: error: ?SMB_VFS_NEXT_STAT? undeclared (first use in this function) vfs_scannedonly.c:926: error: ?SMB_STRUCT_STAT? has no member named ?st_mode? vfs_scannedonly.c:952: warning: passing argument 2 of ?smb_vfs_call_unlink? from incompatible pointer type vfs_scannedonly.c: At top level: vfs_scannedonly.c:1049: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?scannedonly_op_tuples? vfs_scannedonly.c: In function ?init_samba_module?: vfs_scannedonly.c:1089: error: ?scannedonly_op_tuples? undeclared (first use in this function) vfs_scannedonly.c: At top level: vfs_scannedonly.c:1101: error: redefinition of ?init_samba_module? vfs_scannedonly.c:1086: error: previous definition of ?init_samba_module? was here vfs_scannedonly.c: In function ?init_samba_module?: vfs_scannedonly.c:1104: error: ?scannedonly_op_tuples? undeclared (first use in this function) make[1]: *** [scannedonly.so] Error 1 make[1]: Leaving directory `/tmp/install/sources/scannedonly/scannedonly-0.21/src' make: *** [all] Error 2 best regards
Daniel DeptuĆa
2011-Apr-03 17:52 UTC
[Samba] Scannedonly: Unable to compile on Samba v3.5.8 [scannedonly.so] Error 1
W dniu 2011-04-03 19:06, David Touzeau pisze:> Dear > > I'm trying to compile scannedonly 0.21 on samba v3.5.8 on Ubuntu 8.10 > i386 > But i receive errors. > > Can anybody help me... >Hi, The vfs_scannedonly is already included in the official samba release (in samba 3.5) so you need to compile only the scannedonly daemon. Don't append the --with-samba-source argument when you run the configure script. BR, Daniel