I run into the following errors when compiling clamav-20030829 on Linux:

gcc -I/usr/local/include -I/usr/X11R6/include -o clamscan clamscan.o options.o 
getopt.o others.o manager.o treewalk.o  -L/usr/local/lib -L/usr/X11R6/lib 
-L/usr/local/temp/clamav-20030829/libclamav /usr/local/lib/libclamav.so -lz -lbz2 
-lpthread -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib
others.o: In function `gentemp':
others.o(.text+0x7ed): undefined reference to `cl_rndnum'
manager.o: In function `scanmanager':
manager.o(.text+0x219): undefined reference to `cl_strerror'
manager.o(.text+0x27c): undefined reference to `cl_strerror'
manager.o(.text+0x2fd): undefined reference to `cl_strerror'
manager.o: In function `checkfile':
manager.o(.text+0x25d9): undefined reference to `cl_strerror'
manager.o: In function `checkstdin':
manager.o(.text+0x269a): undefined reference to `cl_strerror'
collect2: ld returned 1 exit status
make[1]: *** [clamscan] Error 1
make[1]: Leaving directory `/soft/ware/local/temp/clamav-20030829/clamscan'
make: *** [all-recursive] Error 1

It looks like the previous version of libclamav is found in
/usr/local/lib (and its include file in /usr/local/include) before the
current version, i.e. the order of the -I and -L options is wrong.
I found a workaround: 
# cd libclamav; make;make install
# cd ..; make; make install
in order to install the current library and include file first before
linking the programs.
But of course the correct fix will probably be in the configure scripts
or makefiles. (note to self: learn autoconf/automake and learn how to
provide proper patches)

David Jansen



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to