Fajar A. Nugraha wrote:

Hi,

[snip]
gcc -I/usr/local/include -o .libs/clamd options.o cfgfile.o clamd.o tcpserver.o localserver.o session.o thrmgr.o server-th.o scanner.o others.o clamuko.o dazukoio.o tests.o ../clamscan/getopt.o -L/opt/clamav-auto-build/clamav-devel-20040217/libclamav /opt/clamav-auto-build/clamav-devel-20040217/libclamav/.libs/libclamav.so -lz -lbz2 /usr/local/lib/libgmp.so -lpthread -lsocket -lnsl -lresolv -R/usr/local/lib
Undefined first referenced
symbol in file
strerror_r server-th.o
ld: fatal: Symbol referencing errors. No output written to .libs/clamd
collect2: ld returned 1 exit status
make[2]: *** [clamd] Error 1
make[2]: Leaving directory `/opt/clamav-auto-build/clamav-devel-20040217/clamd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/clamav-auto-build/clamav-devel-20040217'
make: *** [all] Error 2
[snip]


The source file is clamav-devel-20040217.tar.gz from clamav.net,
but clamd -V on a successful build (on OSF) prints

Just tried clamav-0.67-1 on Solaris 8 sparc. 0.65 compiled cleanly and runs just fine, but compiling 0.67-1 the same way blows up this time:


gcc -g -O2 -m64 -mptr64 -Wa,-xarch=v9 -mcpu=v9 -o clamscan clamscan.o options.o getopt.o others.o manage
r.o treewalk.o -L/usr/local/lib/64 -L/usr/local/lib -L/usr/soft/that/clamav-0.67-1/src/default/sparc_su
n_solaris2.8/libclamav /usr/local/lib/libclamav.so -lz -lbz2 /usr/local/lib/libgmp.so -lpthread -R/usr/l
ocal/lib -R/usr/local/lib -R/usr/local/lib/64
ld: warning: relocation error: R_SPARC_UA64: file getopt.o: symbol optarg:
external symbolic relocation against non-allocatable section .debug_info;
cannot be processed at runtime: relocation ignored
Undefined first referenced
symbol in file
cli_strtok manager.o
ld: fatal: Symbol referencing errors. No output written to clamscan
collect2: ld returned 1 exit status
gmake[2]: *** [clamscan] Error 1



I got the 64-bit CFLAGS settings from when compiled gmp, and they worked for 0.65.


Amos




------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to