Hello, I am forwarding an error reported on the inetutils mailing list.
The problem is that readline 6.x exports `xmalloc' and `xrealloc', and it causes a linker error when used together with gnulib. Probably readline shouldn't export these symbols, but I think it should be possible somehow to workaround this problem in gnulib as well. What do you think? Cheers, Giuseppe Jimi <folaj...@gmail.com> writes: > Hello, > > When I try to build the ftp binary included in the inetutils package, I > encounter an error. It appears to be related to libreadline's reference of > xmalloc. > > Here are the arguments passed during the configuration stage: > ./configure --prefix=/usr --libexecdir=/usr/sbin --sysconfdir=/etc > --localstatedir=/var --disable-logger --disable-syslogd --disable-whois > --disable-servers This is the relevant part of the build log: /usr/lib/gcc/i686-pc-linux-gnu/4.5.0/../../../libreadline.a(xmalloc.o): In function `xmalloc': /usr/src/readline/xxxbuild/yyysrc/xmalloc.c:58: multiple definition of `xmalloc' ../lib/libgnu.a(xmalloc.o):/usr/src/inetutils/xxxbuild/yyysrc/lib/xmalloc.c:44: first defined here /usr/lib/gcc/i686-pc-linux-gnu/4.5.0/../../../libreadline.a(xmalloc.o): In function `xrealloc': /usr/src/readline/xxxbuild/yyysrc/xmalloc.c:71: multiple definition of `xrealloc' ../lib/libgnu.a(xmalloc.o):/usr/src/inetutils/xxxbuild/yyysrc/lib/xmalloc.c:56: first defined here collect2: ld returned 1 exit status make[2]: Leaving directory `/usr/src/inetutils/xxxbuild/inetutils-1.8/ftp' make[1]: Leaving directory `/usr/src/inetutils/xxxbuild/inetutils-1.8' make[2]: *** [ftp] Error 1