php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45950 Running make results in non-writable sections errors
Submitted: 2008-08-29 17:52 UTC Modified: 2008-08-30 16:02 UTC
From: jackcsprat at yahoo dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.2CVS-2008-08-29 (CVS) OS: Solaris 10
Private report: No CVE-ID: None
 [2008-08-29 17:52 UTC] jackcsprat at yahoo dot com
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



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-08-30 16:02 UTC] jani@php.net
Solaris is braindead. You need to have everything either as shared or static. Get shared zlib installed and it should work. Not PHP bug.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Dec 08 15:00:01 2025 UTC