gcc linkonce & pwlib

Laurens Blankers laurens.blankers at gmail.com
Mon Jan 10 05:17:42 PST 2005

Hello list,

I may have a problem with the gcc linkone patch. When compiling pwlib
(http://www.openh323.org/) I get the following error:

make[3]: Entering directory `/mnt/superbig/home/laurensb/pwlib/tools/asnparser'
g++ -o obj_linux_x86_d/asnparser -O2 -march=pentium2 -pipe
-I/usr/db42/include -L/usr/db42/lib -L/usr/db42/lib -Wl,--gc-sections
-s -L/home/laurensb/pwlib/lib -L/usr/db42/lib -Wl,--gc-sections 
-L/home/laurensb/pwlib/lib -L/usr/db42/lib -Wl,--gc-sections 
-L/home/laurensb/pwlib/lib -L/usr/db42/lib -Wl,--gc-sections 
-L/home/laurensb/pwlib/lib   ./obj_linux_x86_d/asn_grammar.o 
./obj_linux_x86_d/asn_lex.o  ./obj_linux_x86_d/main.o -lpt_linux_x86_d
-lpthread -lssl -lcrypto -lexpat -lSDL -lresolv -ldl
/usr/bin/ld: ./obj_linux_x86_d/asn_grammar.o(.gnu.linkonce.r._ZTV10PBaseArrayIcE+0x1c):
unresolvable relocation against symbol
`PAbstractArray::Compare(PObject const&) const'
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make[3]: *** [obj_linux_x86_d/asnparser] Error 1

I was about to post something to the openh323 mailinglist when I
noticed the ".gnu.linkonce.r." in the error message.

Could this be a problem with the linkonce patch?

I am running LFS 6.0, but have recently upgraded gcc to 3.4.3
according to LFS unstable SVN-20050109.


More information about the lfs-support mailing list