Problems compiling inetutils against readline-6.0

Matthew Burgess matthew at linuxfromscratch.org
Sat Feb 28 02:46:58 PST 2009


Hi all,

I get this in my latest build logs, when trying to compile inetutils-1.6 against readline.6.0:

mv -f .deps/ruserpass.Tpo .deps/ruserpass.Po
gcc -std=gnu99  -g -O2   -o ftp cmds.o cmdtab.o domacro.o ftp.o main.o ruserpass.o -L../libinetutils -linetutils -L../lib -lgnu  -lreadline -lcurses -lhistory -lresolv -lnsl 
/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/../../../libreadline.a(xmalloc.o): In function `xrealloc':
/sources/readline-6.0/xmalloc.c:71: multiple definition of `xrealloc'
../lib/libgnu.a(xmalloc.o):/sources/inetutils-1.6/lib/xmalloc.c:60: first defined here
/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/../../../libreadline.a(xmalloc.o): In function `xmalloc':
/sources/readline-6.0/xmalloc.c:58: multiple definition of `xmalloc'
../lib/libgnu.a(xmalloc.o):/sources/inetutils-1.6/lib/xmalloc.c:48: first defined here
collect2: ld returned 1 exit status

I couldn't see a configure switch to either readline or inetutils to prevent either of
them building the xmalloc/xrealloc modules.  Any hints or tips?

Thanks,

Matt.




More information about the lfs-dev mailing list