From: jackcsprat at yahoo dot com Operating system: Solaris 10 PHP version: 5.2CVS-2008-08-29 (CVS) PHP Bug Type: Compile Failure Bug description: Running make results in non-writable sections errors
Description: ------------ I am trying to compile php 5.2.5 on a Solaris 10 server. My configure string mentioned below works fine, however, when I run make, I see a zillion lines similar to the following: .urem 0xc88 /usr/local/lib/libz.a(deflate.o) .urem 0x1398 /usr/local/lib/libz.a(inflate.o) .urem 0x7c /usr/local/lib/libz.a(adler32.o) Then the make stops with the following error: ld: fatal: relocations remain against allocatable but non-writable sections collect2: ld returned 1 exit status make: *** [libphp5.la] Error 1 Reproduce code: --------------- Here is my configure string: ./configure --prefix=/usr/local/php5 \ --with-apx2=/var/apps/apache/bin/apxs \ --with-ldap=/usr/local/etc/openldap \ --with-imap-dir=/usr/local/imap-2006e \ --with-imap-ssl \ --with-imap=/usr/local/imap-2006e \ --with-mysql=/var/apps/mysql \ --with-mysqli=/var/apps/mysql/bin/mysql_config \ --with-xsl=/usr/local/include/libxslt \ --with-ncurses \ --enable-xslt \ --with-xslt-sablot \ --with-bz2=/usr \ --with-gd \ --with-gdbm=/usr/local/lib \ --with-openssl \ --with-zlib \ --with-freetype-dir=/usr/local/include/freetype2/freetype/freetype.h \ --with-expat-dir \ --with-tiff-dir \ --with-jpeg-dir=/usr/local/include/jpeglib.h \ --with-png-dir=/usr/include/libpng12/png.h \ --with-mcrypt \ --with-curl \ --with-curlwrappers \ --with-gettext \ --disable-short-tags \ --disable-debug \ --enable-calendar \ --enable-ctype \ --enable-discard-path \ --enable-exif \ --enable-ftp \ --enable-memory-limit \ --enable-sysvem \ --enable-sysvshm \ --enable-gd-native-ttf \ --enable-soap \ --enable-shmop \ --enable-sockets \ --enable-xslt \ --enable-mbstring \ --with-sqlite=shared \ --with-pdo-sqlite=shared \ --with-pdo-mysql=shared,/var/apps/mysql \ --enable-pdo=shared \ --enable-bcmath Expected result: ---------------- After running make, I expect a successful output so I can then run "make install" and complete the php build. Actual result: -------------- My gcc version info: ------------------- gcc -v Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/specs Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77 Thread model: posix gcc version 3.4.6 my ld version ( I have also tried with the gnu ld - same issue) --------------- ld -V ld: Software Generation Utilities - Solaris Link Editors: 5.10-1.489 -- Edit bug report at http://bugs.php.net/?id=45950&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45950&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45950&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45950&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45950&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45950&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45950&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45950&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45950&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45950&r=support Expected behavior: http://bugs.php.net/fix.php?id=45950&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45950&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45950&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45950&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45950&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45950&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45950&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45950&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45950&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45950&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45950&r=mysqlcfg
