Subject: relocation truncated error
To: None <tech-toolchain@netbsd.org>
From: Emmanuel Dreyfus <p99dreyf@criens.u-psud.fr>
List: tech-toolchain
Date: 11/22/2000 16:58:28
Hi!
I'm trying to package Xalan-C++ and Xerces-C++ for NetBSD. I have one I
don't understand problem at link time. The build process attempt this:
$ c++ -g -O2 -DNETBSD -shared -fpic -lc -L/usr/lib -L/usr/local/lib
-L/usr/pkg/lib -lc -L/usr/pkg/lib -lxerces-c1_3 -L/usr/local/lib
-licu-uc -L/usr/local/lib -licu-i18n
{dozens of .o files) -o libxalan-c1_0.so
And I get this:
XSLTResultTarget.o: In function
`XSLTResultTarget::XSLTResultTarget(XalanDocumentFragment *)':
XSLTResultTarget.cpp:147: relocation truncated to fit: R_PPC_GOT16 L139
XSLTResultTarget.cpp:147: relocation truncated to fit: R_PPC_GOT16 L143
XSLTResultTarget.cpp:157: relocation truncated to fit: R_PPC_GOT16 LC4
XSLTResultTarget.cpp:157: relocation truncated to fit: R_PPC_GOT16 L150
XSLTResultTarget.cpp:157: relocation truncated to fit: R_PPC_GOT16 L154
XSLTResultTarget.o: In function
`XSLTResultTarget::XSLTResultTarget(XalanElement *)':
XSLTResultTarget.cpp:162: relocation truncated to fit: R_PPC_GOT16 L161
XSLTResultTarget.cpp:162: relocation truncated to fit: R_PPC_GOT16 L165
XSLTResultTarget.cpp:172: relocation truncated to fit: R_PPC_GOT16 LC5
XSLTResultTarget.cpp:172: relocation truncated to fit: R_PPC_GOT16 L172
XSLTResultTarget.cpp:172: relocation truncated to fit: R_PPC_GOT16 L176
Here is my environement:
$ gcc -v
Using builtin specs.
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
$ ld -v
GNU ld version 2.9.1 (with BFD 2.9.1)
$ uname -a
NetBSD oceane 1.5K NetBSD 1.5K (GENERIC) #0: Fri Nov 17 17:30:25 CET
2000 root@oceane:/usr/src/sys/arch/macppc/compile/GENERIC macppc
Questions:
What's going on?
How do I fix this and get my library linked?
--
Emmanuel Dreyfus
p99dreyf@criens.u-psud.fr