> -----Original Message-----
> From: [email protected] [mailto:clamav-users-
> [email protected]] On Behalf Of omonte
> Sent: Thursday, February 11, 2010 11:59 AM
> To: [email protected]
> Subject: [Clamav-users] compile errors on AIX 5.3
>
>
> Hello, I'm compiling clamav 0.95.3 on AIX 5.3. I'm running GCC version
> 4.2.0. Configure runs successfully with:
>
> ./configure --prefix=/opt/clamav -disable-clamuko -with-user=clamav
> --with-group=clamav --with-dbdir=/opt/clamav/db
>
> but Make fails with:
>
> /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I..
> -I.. -I./nsis -I./lzma -I../libltdl -DWARN_DLOPEN_FAIL
> -DSEARCH_LIBDIR=\"/opt/clamav/lib\" -g -O2 -MT libclamav_la-uniq.lo -MD -
> MP
> -MF .deps/libclamav_la-uniq.Tpo -c -o libclamav_la-uniq.lo `test -f
> 'uniq.c'
> || echo './'`uniq.c
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I./nsis -I./lzma
> -I../libltdl -DWARN_DLOPEN_FAIL -DSEARCH_LIBDIR=\"/opt/clamav/lib\" -g -O2
> -MT libclamav_la-uniq.lo -MD -MP -MF .deps/libclamav_la-uniq.Tpo -c uniq.c
> -DPIC -o .libs/libclamav_la-uniq.o
> mv -f .deps/libclamav_la-uniq.Tpo .deps/libclamav_la-uniq.Plo
> make: 1254-004 The error code from the last command is 127.
>
>
> 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.
> 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? Thanks.
> --
> View this message in context: http://old.nabble.com/compile-errors-on-AIX-
> 5.3-tp27552422p27552422.html
> Sent from the clamav-users mailing list archive at Nabble.com.
>
> _______________________________________________
> Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
> http://www.clamav.net/support/ml
I have an AIX 4.3.3 box with gcc 2.95.2
Here's how I compiled version clamav 0.95:
----------------------------------------------
In order to get this version to work, I had to use shared libraries.
export CC="/usr/local/bin/gcc"
export CFLAGS="-D_XOPEN_SOURCE=500 -D_ALL_SOURCE"
export LDFLAGS="-lpthreads -liconv"
./configure --disable-clamav --disable-static --enable-shared
after the configure:
cd clamd
edit the Makefile and take out the -D_ALL_SOURCE directive
cd ..
make
make install
I had to manually copy the ".so.6" libraries from the
clamav-0.95/libclamav/.libs directory.
--------------------------------------------
Hope this helps!
- Joe Vigil
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml