[Clfs-support] Linking issue

Lance Chou LChou at PLXTech.com
Fri Jul 17 00:14:05 PDT 2009


Dear All,

 

  I'm building my system by following Current Sysroot Development 1.x.
My platform is ARM and I have built the cross toolchain successfully. I
use the toolchain to build everything I need for my system. After the
system can boot up, I use the toolchain to build a compiler that is
directly run on my platform. At first, I thought it's OK because when I
write some simple program, it can be compiled and run successfully. But
when I tries to build apache (httpd-2.2.9) directly on the board, it
fails at linking stage. The error messages are shown as following

 

Making all in support

make[1]: Entering directory `/root/httpd-2.2.9/support'

make[2]: Entering directory `/root/httpd-2.2.9/support'

/root/httpd-2.2.9/srclib/apr/libtool --silent --mode=link gcc -g -O2
-pthread

     -o htpasswd  htpasswd.lo   -lm
/root/httpd-2.2.9/srclib/pcre/libpcre.la /ro

ot/httpd-2.2.9/srclib/apr-util/libaprutil-1.la
/root/httpd-2.2.9/srclib/apr-util

/xml/expat/lib/libexpat.la -liconv
/root/httpd-2.2.9/srclib/apr/libapr-1.la -luu

id -lm -lcrypt -lpthread -ldl

libtool: link: warning: library `/usr/lib/libiconv.la' was moved.

libtool: link: warning: library `/usr/lib/libiconv.la' was moved.

/usr/bin/ld: .libs/htpasswd: hidden symbol `__fini_array_end' in
.libs/htpasswd

is referenced by DSO

/usr/bin/ld: final link failed: Nonrepresentable section on output

collect2: ld returned 1 exit status

make[2]: *** [htpasswd] Error 1

make[2]: Leaving directory `/root/httpd-2.2.9/support'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/root/httpd-2.2.9/support'

make: *** [all-recursive] Error 1

 

I have googled on the Internet but I still don't have any clue to this
issue. Please help.

Thanks a lot in advance.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clfs.org/pipermail/clfs-support-clfs.org/attachments/20090717/2d32453c/attachment.html>


More information about the Clfs-support mailing list