OpenWrt Forum Archive

Topic: ld fails to link openssl on x86 build

The content of this topic has been archived on 15 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

In revision 10225 (and some older ones), openssl fails to build.  This is the error I get:

make[6]: Entering directory `/mnt/openwrt/exobyte/trunk/build_dir/i386/openssl-0.9.8e/apps'
/mnt/openwrt/exobyte/trunk/staging_dir/toolchain-i386_gcc4.1.2/bin/../lib/gcc/i386-linux-uclibc/4.1.2/../../../../i386-linux-uclibc/bin/ld: /mnt/openwrt/exobyte/trunk/staging_dir/toolchain-i386_gcc4.1.2/lib/libc.a(gethostbyaddr_r.os)(.text+0x1fe): unresolvable R_386_GOTOFF relocation against symbol `__nameservers'
/mnt/openwrt/exobyte/trunk/staging_dir/toolchain-i386_gcc4.1.2/bin/../lib/gcc/i386-linux-uclibc/4.1.2/../../../../i386-linux-uclibc/bin/ld: final link failed: Nonrepresentable section on output

I opened a ticket for this, but thought I should also post here in case anyone has any ideas.

https://dev.openwrt.org/ticket/3056

A fresh checkup seemed to fix things.

The discussion might have continued from here.