looks like -lbz2 is looking in -L/usr/local/lib to resolve find libbz2.[soa], use nm to validate undefined symbols are defined there, add that to the compile line and see if everything is good.
i would guess your ./configure step could not find this lib do you have LD_LIBRARY_PATH unset or set correctly? you would need to add the location of this lib in the form of e.g. -L/usr/lib > ----- Original Message ----- > From: "Mohammed Ejaz" <[EMAIL PROTECTED]> > To: "ClamAV users ML" <clamav-users@lists.clamav.net> > Subject: [Clamav-users] Help > Date: Sat, 26 Apr 2008 17:39:16 +0300 > > > Hi, all, > > Trying to compile the current Clamav 0.93 from 09.2.1 of clamav on > a solaris 5.8 Solaris SPARC-box, i am getting some error-messages > which Ican't resolve it. > > > Regards > Ejaz > > > > > mv -f .deps/manager.Tpo .deps/manager.Po > gcc -DHAVE_CONFIG_H -DCL_NOTHREADS -I. -I.. -I.. -I../shared > -I../libclamav -I/usr/local/include -g -O2 -MT treewalk.o -MD -MP > -MF .deps/treewalk.Tpo -c -o treewalk.o treewalk.c > mv -f .deps/treewalk.Tpo .deps/treewalk.Po > /bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -o > clamscan output.o getopt.o cfgparser.o misc.o options.o clamscan.o > others.o manager.o treewalk.o ../libclamav/libclamav.la -lpthread > mkdir .libs > gcc -g -O2 -o .libs/clamscan output.o getopt.o cfgparser.o misc.o > options.o clamscan.o others.o manager.o treewalk.o > ../libclamav/.libs/libclamav.so -L/usr/local/lib -lz -lbz2 > /usr/local/lib/libgmp.so > /export/home/mg2/clamav-0.93/libclamunrar_iface/.libs/libclamunrar_iface.so > /export/home/mg2/clamav-0.93/libclamunrar/.libs/libclamunrar.so > -lnsl -lsocket -lpthread -R/usr/local/lib > Undefined first referenced > symbol in file > BZ2_bzDecompress ../libclamav/.libs/libclamav.so > BZ2_bzDecompressEnd ../libclamav/.libs/libclamav.so > BZ2_bzDecompressInit ../libclamav/.libs/libclamav.so > ld: fatal: Symbol referencing errors. No output written to .libs/clamscan > collect2: ld returned 1 exit status > make[2]: *** [clamscan] Error 1 > make[2]: Leaving directory `/export/home/mg2/clamav-0.93/clamscan' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/export/home/mg2/clamav-0.93' > make: *** [all] Error 2 > _______________________________________________ > Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net > http://lurker.clamav.net/list/clamav-users.html > -- Want an e-mail address like mine? Get a free e-mail account today at www.mail.com! _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://lurker.clamav.net/list/clamav-users.html