I'm trying to compile clam on AIX 5.2, which has been successful up to 0.75-1
If I use configure without any options, clam compiles without any errors.
The following is the configure call that I've always used without any problems:
CC=gcc \
CFLAGS="-g -O3 -mno-power -mno-powerpc -mtune=common -mcpu=common -maix32 -L/usr/local/lib" \
CPPFLAGS="-I /usr/local/include" \
./configure \
--sysconfdir=/etc/mail \
--enable-debug \
--enable-bzip \
--with-user=mdefang \
--with-group=clamav \
--with-dbdir=/var/spool/MIMEDefang/clamav \
--with-db1=viruses.db \
--with-db2=viruses.db2
But when I use the above, I get the following compile error:
# make
make all-recursive
Making all in libclamav
Target "all" is up to date.
Making all in clamscan
/bin/sh ../libtool --mode=link gcc -g -O3 -mno-power -mno-powerpc -mtune=common -mcpu=common -maix32 -L/usr/local/lib -lnsl -o clamscan output.o getopt.o memory.o cfgparser.o misc.o clamscan.o options.o others.o manager.o treewalk.o ../libclamav/libclamav.la
gcc -g -O3 -mno-power -mno-powerpc -mtune=common -mcpu=common -maix32 -o .libs/clamscan output.o getopt.o memory.o cfgparser.o misc.o clamscan.o options.o others.o manager.o treewalk.o -L/usr/local/lib -L../libclamav/.libs -lclamav -lz -lbz2 -lpthread -lnsl -Wl,-bnolibpath -Wl,-blibpath:/usr/local/lib:/usr/lib:/lib
ld: 0711-317 ERROR: Undefined symbol: .cl_build
ld: 0711-317 ERROR: Undefined symbol: .cl_free
ld: 0711-317 ERROR: Undefined symbol: .cli_gentemp
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 2.
Stop.
Any suggestions???
Disclaimer: The information contained in this communication is confidential and only for the use of the intended addressee(s). If you have received this communication in error, any disclosure or use of such information is strictly prohibited. Please notify the sender immediately and destroy all copies. Thank you.
_______________________________________________ http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users