From: "Fajar A. Nugraha" <[EMAIL PROTECTED]>
Date: Sun, 28 Mar 2004 18:57:00 +0700

>/usr/include/sys/bitypes.h:84: warning: `int32_t' previously declared here

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? :)

Thanks again,
Fred
--
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm



-------------------------------------------------------
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

Reply via email to