stevo - 2006-10-20

Hi All,

I am attempting to compile the latest version of libmhash (downloaded from here) and the latest version of AIDE (downloaded from here) on an AIX 5.3 machine running the GNU compiler. I am having no luck at all compiling a static version of mhash.

The command ./configure --enable-static=yes --enable-shared=no
completes ok with no apparent error messages but when I run the make command I get the following error...

Making all in src
if gcc -DHAVE_CONFIG_H -I. -I. -I../include/mutils -I../include -g -O2 -MT driver.o -MD -MP -MF ".deps/driver.Tpo" -c -o driver.o driver.c; then mv -f ".deps/driver.Tpo" ".deps/driver.Po"; else rm -f ".deps/driver.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -o driver driver.o ../lib/libmhash.la
mkdir .libs
gcc -g -O2 -o driver driver.o ../lib/.libs/libmhash.a
ld: 0711-317 ERROR: Undefined symbol: .rpl_malloc
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.

If I don't use the enable-shared=no flag it compiles ok but doesn't create a static library.

Of course without a static version of this library the AIDE configure script just fails.

Two questions...
1. Has anyone had this problem and did you get around it?
2. Is it possible to compile AIDE with shared lib?

Thanks in advance

Steve