ID: 26727
Comment by: g dot noel at symphonieonline dot com
Reported By: jonny at bndlg dot de
Status: Bogus
Bug Type: Compile Failure
Operating System: Linux, Debian 3.0 woody
PHP Version: 4CVS-2003-12-27 (stable)
New Comment:
I've got the same problem with gcc-2.95.4 and libc6-2.3.2. This problem
is due to the __attribute_used__ macro redefinition in linux/compiler.h
and sys/cdefs.h.
>From now I solved this by patching linux/compiler.h :
# diff -Naur compiler.h.old compiler.h
--- compiler.h.old 2004-01-14 16:15:55.000000000 +0100
+++ compiler.h 2004-01-14 16:15:01.000000000 +0100
@@ -14,7 +14,9 @@
/* We don't define likely, unlikely, or barrier; they're
namespace-intrusive
and should not be needed outside of __KERNEL__. */
# define __attribute_pure__
+#ifndef __attribute_used__
# define __attribute_used__
+#endif
# define __deprecated
#else
Hope this helps
Gildas
Previous Comments:
------------------------------------------------------------------------
[2003-12-28 14:32:07] jonny at bndlg dot de
I agree with that, but all previous versions of PHP compile without any
problems on the same machines with the same packets, so I suspected it
was a problem in PHP, because from 4.3.4 onwoards it was not able to
detect my signal.h any more.
------------------------------------------------------------------------
[2003-12-28 14:27:02] [EMAIL PROTECTED]
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
The fact signal.h cannot be used/detected implies a problem with your
system's headers. This is not a PHP bug, unless you determine that the
problem is due to PHP looking in the wrong places for signal.h
------------------------------------------------------------------------
[2003-12-27 11:08:57] jonny at bndlg dot de
Description:
------------
Configure is not able to detect asm/signal.h any more. This problem
started to occur in PHP 4.3.4 with several of my Debian boxes.
Compilation failes with the following error:
/bin/sh /usr/src/php-4.3.4/libtool --silent --preserve-dup-deps
--mode=compile gcc -Iext/mysql/ -I/usr/src/php-4.3.4/ext/mysql/
-DPHP_ATOM_INC -I/usr/src/php-4.3.4/include -I/usr/src/php-4.3.4/main
-I/usr/src/php-4.3.4 -I/usr/src/php-4.3.4/Zend -I/usr/include/libxml2
-I/usr/src/FDFToolkitForUNIX/HeadersAndLibraries/headers
-I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/c-client
-I/usr/src/php-4.3.4/ext/mbstring/mbregex
-I/usr/src/php-4.3.4/ext/mbstring/libmbfl
-I/usr/src/php-4.3.4/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql
-I/usr/src/php-4.3.4/TSRM -g -O2 -prefer-pic -c
/usr/src/php-4.3.4/ext/mysql/php_mysql.c -o ext/mysql/php_mysql.lo
/usr/src/php-4.3.4/ext/mysql/php_mysql.c: In function
`_close_mysql_link':
/usr/src/php-4.3.4/ext/mysql/php_mysql.c:288: `SIGPIPE' undeclared
(first use in this function)
/usr/src/php-4.3.4/ext/mysql/php_mysql.c:288: (Each undeclared
identifier is reported only once
/usr/src/php-4.3.4/ext/mysql/php_mysql.c:288: for each function it
appears in.)
/usr/src/php-4.3.4/ext/mysql/php_mysql.c:288: `SIG_IGN' undeclared
(first use in this function)
/usr/src/php-4.3.4/ext/mysql/php_mysql.c:288: warning: assignment makes
pointer from integer without a cast
/usr/src/php-4.3.4/ext/mysql/php_mysql.c: In function
`_close_mysql_plink':
/usr/src/php-4.3.4/ext/mysql/php_mysql.c:303: `SIGPIPE' undeclared
(first use in this function)
/usr/src/php-4.3.4/ext/mysql/php_mysql.c:303: `SIG_IGN' undeclared
(first use in this function)
/usr/src/php-4.3.4/ext/mysql/php_mysql.c:303: warning: assignment makes
pointer from integer without a cast
make: *** [ext/mysql/php_mysql.lo] Error 1
Reproduce code:
---------------
My configure call:
'./configure' '--prefix=/usr' '--with-apxs=/usr/bin/apxs'
'--with-regex=php' '--with-config-file-path=/etc/php4/apache'
'--disable-rpath' '--disable-debug' '--enable-memory-limit'
'--with-layout=GNU' '--enable-calendar' '--enable-sysvsem'
'--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid'
'--enable-bcmath' '--with-bz2' '--enable-ctype' '--with-db2'
'--with-iconv' '--enable-exif' '--enable-filepro' '--enable-ftp'
'--with-gettext' '--enable-mbstring' '--with-pcre-regex'
'--enable-shmop' '--enable-sockets' '--enable-wddx' '--disable-xml'
'--with-expat-dir=/usr' '--enable-yp' '--with-zlib' '--without-pgsql'
'--with-openssl=/usr' '--disable-static' '--with-dom=/usr'
'--with-zlib-dir=/usr' '--with-gd' '--with-jpeg-dir=/usr'
'--with-png-dir=/usr' '--with-freetype-dir=/usr' '--with-imap=/usr'
'--with-mhash=/usr' '--with-mm' '--with-mysql=/usr'
'--with-recode=/usr' '--with-ttf=/usr' '--with-t1lib=/usr'
--with-pdflib --with-fdftk=../FDFToolkitForUNIX --with-xpm-dir=/usr
--with-curl
Actual result:
--------------
configure outputs "signal.h not detected" and in main/php_config.h the
line #define HAVE_SIGNAL_H is commented out.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26727&edit=1