"relocation truncated to fit: R_SPARC_GOT13 " when compiling PHP on solaris 2.6
| From: | Liam Hoekenga | Date: | Fri, 19 Jan 2001 21:41:51 +0000 |
| Subject: | "relocation truncated to fit: R_SPARC_GOT13 " when compiling PHP on solaris 2.6 | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-1708@lists.php.net to get a copy of this message | ||
I'm trying build php 4.0.4pl1 on Solaris 2.6 with gcc 2.95.2.
Specifically, I'm trying to build php with support for pdflib 3.03
I've specified the jpeg (6b), png (1.08), tiff (3.5.5) and zlib (1.1.3)
directories. All the libraries were freshly built with gcc for this
purpose.
PHP builds fine if I compile it as a CGI, or as a built in apache server
module (and the resulting CGI and apache binaries have the functionality I
expect). If I try to build it as an apache dso, I get a lot of "relocation
truncated to fit: R_SPARC_GOT13" error messages while linking. I'm
building this against Apache 1.3.14
Any ideas on getting around this? I've attached a more complete copy of
the error message.
thanks
Liam
-----------------------------------------------------------------------------
Making all in .
/bin/sh /usr/local/build/liamr/php-4.0.4pl1/libtool --silent --mode=link
gcc -I. -I/usr/local/build/liamr/php-4.0.4pl1/
-I/usr/local/build/liamr/php-4.0.4pl1/main -I/usr/local/build/liamr/php-4.0.4pl1
-I/usr/local/httpd/include
-I/usr/local/build/liamr/php-4.0.4pl1/Zend -I/usr/local/build/liamr/php-4.0.4pl1/ext/mysql/libmysql
-I/usr/local/pdf/include
-I/usr/local/build/liamr/php-4.0.4pl1/ext/xml/expat/xmltok
-I/usr/local/build/liamr/php-4.0.4pl1/ext/xml/expat/xmlparse
-I/usr/local/zlib/include -I/usr/local/build/liamr/php-4.0.4pl1/TSRM
-I/usr/local/zlib/include -I/usr/local/jpeg/include -I/usr/local/png/include
-I/usr/local/tiff/include -I/usr/local/pdf/include -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=260
-DUSE_EXPAT -DXML_BYTE_ORDER=21 -I/usr/local/zlib/include
-I/usr/local/jpeg/include -I/usr/local/png/include -I/usr/local/tiff/include
-I/usr/local/pdf/include -L/usr/local/zlib/lib -lz -L/usr/local/jpeg/lib
-ljpeg -L/usr/local/png/lib -lpng -L/usr/local/tiff/lib -ltiff
-L/usr/local/pdf/lib -lpdf -o libphp4.la -rpath
/usr/local/build/liamr/php-4.0.4pl1/libs -avoid-version -L/usr/ucblib
-L/usr/local/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2 -L/usr/local/jpeg/lib
-L/usr/local/png/lib -L/usr/local/tiff/lib -L/usr/local/pdf/lib
-L/usr/local/zlib/lib -L/usr/local/zlib/lib -lz -L/usr/local/jpeg/lib -ljpeg
-L/usr/local/png/lib -lpng -L/usr/local/tiff/lib -ltiff -L/usr/local/pdf/lib
-lpdf -R/usr/ucblib -R/usr/local/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2
-R/usr/local/jpeg/lib -R/usr/local/png/lib -R/usr/local/tiff/lib
-R/usr/local/pdf/lib -R/usr/local/zlib/lib stub.lo Zend/libZend.la
sapi/apache/libsapi.la main/libmain.la regex/libregex.la
ext/mysql/libmysql.la ext/pcre/libpcre.la ext/pdf/libpdf.la
ext/posix/libposix.la ext/session/libsession.la
ext/standard/libstandard.la ext/xml/libxml.la ext/zlib/libzlib.la
TSRM/libtsrm.la -lpam -ldl -lz -lpdf -ltiff -lpng -ljpeg -lresolv
-lresolv -lm -ldl -lcrypt -lsocket -lsocket -lgcc -lz
-L/usr/local/jpeg/lib -ljpeg -L/usr/local/png/lib -lpng -L/usr/local/tiff/lib
-ltiff
/usr/local/tiff/lib/libtiff.a(tif_aux.o): In function `TIFFDefaultTransferFunction':
/usr/local/build/liamr/tiff-v3.5.5/libtiff/../libtiff/tif_aux.c:45: relocation truncated to fit:
R_SPARC_GOT13 LLC0
/usr/local/build/liamr/tiff-v3.5.5/libtiff/../libtiff/tif_aux.c:45: relocation truncated to fit:
R_SPARC_GOT13 LLC1
.......950+ lines of similar error messages cut......
/usr/local/build/liamr/tiff-v3.5.5/libtiff/../libtiff/tif_thunder.c:150: relocation truncated to
fit: R_SPARC_GOT13 ThunderDecodeRow
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `libphp4.la'
Current working directory /usr/local/build/liamr/php-4.0.4pl1
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
esperanto%