From: e dot ehritt at web dot de Operating system: Linux/2.6.30.4 x86_64 PHP version: 5.3SVN-2009-08-14 (snap) PHP Bug Type: Compile Failure Bug description: make error
Description: ------------ $ export CFLAGS="-march=athlon64 -O3 -pipe -fstack-protector -fstack-protector-all" export EXTENSION_DIR="/home/eddi/opt/php/5.3.0/lib" ./configure --prefix=/home/eddi/opt/php/5.3.0 --mandir=/home/eddi/opt/man --build=x86_64-pc-linux-gnu --with-config-file-path=/home/eddi/opt/conf --with-zend-vm=GOTO --disable-all --with-bz2=shared --with-curl=shared --with-curlwrappers --with-gd=shared --with-gettext=shared --with-iconv=shared --with-openssl=shared --with-regex=shared --with-xmlrpc=shared --with-xsl=shared --with-zlib=shared --enable-bcmath=shared --enable-calendar=shared --enable-ctype=shared --enable-dom=shared --enable-exif=shared --enable-fileinfo=shared --enable-filter=shared --enable-ftp=shared --enable-hash=shared --enable-libxml=shared --enable-pcntl=shared --enable-phar=shared --enable-posix=shared --enable-shmop=shared --enable-simplexml=shared --enable-soap=shared --enable-sockets=shared --enable-sysvmsg=shared --enable-sysvsem=shared --enable-sysvshm=shared --enable-tokenizer=shared --enable-wddx=shared --enable-xml=shared --enable-xmlreader=shared --enable-xmlwriter=shared --enable-zip=shared --enable-sigchild --enable-cgi --disable-short-tags $ make > /dev/null /home/eddi/opt/src/php5.3-200908132230/ext/date/php_date.c: In function 'date_format': /home/eddi/opt/src/php5.3-200908132230/ext/date/php_date.c:1058: warning: incompatible implicit declaration of built-in function 'llabs' /home/eddi/opt/src/php5.3-200908132230/main/streams/cast.c: In function '_php_stream_cast': /home/eddi/opt/src/php5.3-200908132230/main/streams/cast.c:222: warning: cast to pointer from integer of different size /home/eddi/opt/src/php5.3-200908132230/main/streams/cast.c:225: warning: cast to pointer from integer of different size /home/eddi/opt/src/php5.3-200908132230/Zend/zend_objects.c: In function 'zend_objects_destroy_object': /home/eddi/opt/src/php5.3-200908132230/Zend/zend_objects.c:95: warning: assignment discards qualifiers from pointer target type main/.libs/SAPI.o: In function `sapi_send_headers': SAPI.c:(.text+0x1fca): undefined reference to `zlib_globals' collect2: ld returned 1 exit status make: *** [sapi/cgi/php-cgi] Error 1 Reproduce code: --------------- $ gcc -v Using built-in specs. Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.2 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --disable-libgcj --enable-languages=c,c++,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.3.2-r3 p1.6, pie-10.1.5' Thread model: posix gcc version 4.3.2 (Gentoo 4.3.2-r3 p1.6, pie-10.1.5) $ ld -v GNU ld (GNU Binutils) 2.18 -- Edit bug report at http://bugs.php.net/?id=49248&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49248&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49248&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49248&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49248&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49248&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49248&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49248&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49248&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49248&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49248&r=support Expected behavior: http://bugs.php.net/fix.php?id=49248&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49248&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49248&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49248&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49248&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49248&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49248&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49248&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49248&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49248&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49248&r=mysqlcfg