Well, at least you move closer :)Looks like zziplib redeclare int8_t, int16_t, and int32_t
A quick-and-dirty way to fix this :
- backup zziplib/zzip-stdint.h
- edit it to remove declarations of int*_t (by commenting or deleting line 21, 26, and 33)
- compile clamav
- restore the backup after clamav compiled succesfully
Thanks for your suggestion, Fajar. In fact I've already tried editing out the int*_t redeclarations in zzip-stdint.h, but without luck. However, editing out such references in /usr/include/sys/bitypes.h pushes the point of failure further,
to the following:
/bin/sh ../libtool --mode=link gcc -g -O2 -o clamscan clamscan.o options.o getopt.o others.o manager.o treewalk.o -L../libclamav -lclamav mkdir .libs gcc -g -O2 -o .libs/clamscan clamscan.o options.o getopt.o others.o manager.o treewalk.o -L/root/clam/clamav-0.68/libclamav /root/clam/clamav-0.68/libclamav/.libs/libclamav.so -lz -lbz2 -lpthread -Wl,--rpath -Wl,/usr/local/lib /root/clam/clamav-0.68/libclamav/.libs/libclamav.so: undefined reference to `strtok_r' collect2: ld returned 1 exit status make[2]: *** [clamscan] Error 1 make[2]: Leaving directory `/root/clam/clamav-0.68/clamscan' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/clam/clamav-0.68' make: *** [all] Error 2
Any other quick 'n' dirty suggestions for this one? :)
Seems your system libs (libc.so) don't have declarations for strtok_r. I use the latest snapshot from http://www.clamav.net/snapshot. Try changing the line
dnl AC_CHECK_LIB(c, strtok_r,, AC_DEFINE(NO_STRTOK_R))
in configure.in to
AC_CHECK_LIB(c, strtok_r,, AC_DEFINE(NO_STRTOK_R))
then run aclocal, autconf, and automake. When ./configure runs, it SHOULD print this line now :
checking for syslog.h... yes *checking for strtok_r in -lc... yes* checking tcpd.h usability... yes
or in your case it should be
*checking for strtok_r in -lc... no
*See how it goes from there.
Regards,
Fajar
-- Please avoid sending me Microsoft Office attachments. See http://www.newsforge.com/software/04/03/27/0134204.shtml
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users