ID: 41552 User updated by: shane dot kinsch at netracorp dot com Reported By: shane dot kinsch at netracorp dot com -Status: Feedback +Status: Closed Bug Type: *Compile Issues Operating System: Solaris 10 (SunOS 5.10) PHP Version: 4.4.7 New Comment:
I downloaded the Sun Studio 11 compiler from: http://opensolaris.org/os/community/tools/sun_studio_tools/sun_studio_11_tools/ Then recompiled PHP using these options: arch=`isainfo -k | sed s/sparc//` \ CC="/opt/SUNWspro/bin/cc -fast -xarch=${arch}" \ CXX="/opt/SUNWspro/bin/CC -fast -xarch=${arch}" \ CPPFLAGS="-I/usr/local/ssl/include" \ LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib --L/usr/local/mysql/lib -L/usr/local/etc/apache/lib" \ ./configure \ --with-apxs2=/usr/local/etc/apache/bin/apxs \ --enable-track-vars \ --enable-sockets \ --enable-wddx \ --enable-xslt \ --with-xslt-sablot=/usr/local \ --with-expat-dir=/usr/local \ --with-iconv=/usr/local \ --with-libxml-dir=/usr/local/lib \ --with-curl \ --with-mysql=/mysql-client \ --with-zlib-dir=/usr/local \ --with-jpeg-dir=/usr/local \ --with-png-dir=/usr/local \ --with-freetype-dir=/usr/local \ --with-gd \ --with-xpm-dir=/usr/local \ --with-openssl=/usr/local/ssl \ --disable-debug \ --enable-safe-mode \ --enable-inline-optimization \ --enable-memory-limit \ --enable-bcmath \ --enable-calendar It compiled fine. Thanks for the assistance. Shane Kinsch Previous Comments: ------------------------------------------------------------------------ [2007-05-31 16:33:20] [EMAIL PROTECTED] Try updating GCC to the latest available version. ------------------------------------------------------------------------ [2007-05-31 16:25:28] shane dot kinsch at netracorp dot com Description: ------------ Running the "make test" for PHP 4.4.7 caused a core dump under Solaris Using GCC 3.4.6 under Solaris 10 (SunOS 5.10) and receive the same Bus Error / core dump on an elaborate configure or a basic configure. In the example below, I'm using a simple configure in order to isolate where the issue may live, but unfortunately I'm still stumped. Reproduce code: --------------- I received a simple warning about libiconv, so I've downgraded libiconv from 1.11 to 1.9.2 with no different results. I've since removed 1.9.2 and re-applied libiconv 1.11. I get the same bus error / core dump when I configure PHP with only these options: # make clean # CC="gcc" \ ./configure --disable-xml --without-pear It configures what appears to be fine: http://my.gi.net/shane.kinsch/php-configure-log.txt It compiles what appears to be fine as well: http://my.gi.net/shane.kinsch/php-make-log.txt OS and Package Versions: SunOS web1 5.10 s10_72 sun4u sparc SUNW,UltraSPARC-IIi-cEngine - openssl-0.9.8e - autoconf 2.60 - automake 1.10 - bison 2.3 - expat 1.95.5 - flex 2.5.33 - fontconfig 2.4.2 - freetype 2.3.1 - gcc 3.4.6 - gd 2.0.33 - jpeg 6b - libiconv 1.9.2 - libpng 1.2.16 - libtool 1.5 - libxml2 2.6.26 - libxslt 1.1.17 - m4 1.4.7 - make 3.81 - perl 5.8.8 - texinfo 4.8 - xpm 3.4k - zlib 1.2.3 Expected result: ---------------- "make test" to complete successfully, or even execute. Actual result: -------------- # make test Bus Error - core dumped make: [test] Error 138 (ignored) core dump ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41552&edit=1