Discussion:
Build Problem On Arm
will
2013-09-15 23:48:24 UTC
Permalink
Hi everyone,

I am having a build problem that I cannot figure out. Could someone take a
look at it and tell me if they can identify the problem. The build error
output, as well as my kernel and gcc versions are below ...

/opt/bin/bash ../libtool --silent --tag=CXX --mode=link gcc -O2 -Wall
-Wwrite-strings -Woverloaded-virtual -fno-exceptions -fno-rtti
-fno-implement-inlines -s -o lftp lftp.o complete.o lftp_rl.o attach.o
liblftp-jobs.la -lreadline -lutil -lncurses -ldl -lsupc++
/root/src/lftp-4.4.9/src/.libs/proto-ftp.a(ftpclass.o): In function
`Ftp::Connection::InitTelnetLayer()':
ftpclass.cc:(.text+0x6d14): undefined reference to
`DirectedBuffer::SetTranslator(DataTranslator*)'
ftpclass.cc:(.text+0x6dac): undefined reference to
`DirectedBuffer::SetTranslator(DataTranslator*)'
ftpclass.cc:(.text+0x6de8): undefined reference to
`DirectedBuffer::SetTranslator(DataTranslator*)'
ftpclass.cc:(.text+0x6e14): undefined reference to
`DirectedBuffer::SetTranslator(DataTranslator*)'
/root/src/lftp-4.4.9/src/.libs/proto-http.a(Http.o): In function
`Http::HandleHeaderLine(char const*, char const*)':
Http.cc:(.text+0x2f10): undefined reference to
`DirectedBuffer::SetTranslator(DataTranslator*)'
/root/src/lftp-4.4.9/src/.libs/proto-fish.a(Fish.o):Fish.cc:(.text+0x324):
more undefined references to
`DirectedBuffer::SetTranslator(DataTranslator*)' follow
collect2: ld returned 1 exit status
make[1]: *** [lftp] Error 1
make[1]: Leaving directory `/root/src/lftp-4.4.9/src'
make: *** [all-recursive] Error 1

NAS> uname -a
Linux NAS 2.6.32.12 #3776 Sat Aug 17 11:31:02 CST 2013 armv5tel GNU/Linux

NAS> gcc -v
Using built-in specs.
Target: arm-none-linux-gnueabi
Configured with: ../gcc-4.2/configure --build=i386-pc-linux-gnu
--host=arm-none-linux-gnueabi --target=arm-none-linux-gnueabi --prefix=/opt
--disable-nls --disable-static
--with-as=/home/slug/optware/cs08q1armel/toolchain/arm-2008q1/bin/arm-none-linux-gnueabi-as
--with-ld=/home/slug/optware/cs08q1armel/toolchain/arm-2008q1/bin/arm-none-linux-gnueabi-ld
--enable-languages=c,c++ --disable-multilib --enable-threads
--disable-libmudflap --disable-libssp --disable-libgomp
--disable-libstdcxx-pch --enable-shared --enable-symvers=gnu
--enable-__cxa_atexit
Thread model: posix
gcc version 4.2.3

Many Thanks,

Will
Alexander V. Lukyanov
2013-09-16 10:31:36 UTC
Permalink
Post by will
/root/src/lftp-4.4.9/src/.libs/proto-ftp.a(ftpclass.o): In function
ftpclass.cc:(.text+0x6d14): undefined reference to
`DirectedBuffer::SetTranslator(DataTranslator*)'
The error happens because of missing iconv library.

But this patch should take care of it.

--
Alexander.

Loading...