|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-12-22 22:09 UTC] david at davidfavor dot com
Description: ------------ configure process generates different php_config.h files on different Ubuntu machines with identical packages installed (per dpkg -l). I've tried to decipher the ./configure process and have yet to figure it out. What I require is a php build guru to explain how to manually generate php_config.h from php_config.h.in to debug what's occurring. Thanks. Reproduce code: --------------- ./configure && make PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 25 00:00:01 2025 UTC |
One example of this is... /* Define to `unsigned' if <sys/types.h> doesn't define. */ /* Define to `unsigned' if <sys/types.h> doesn't define. */ /* #undef size_t */ | #define size_t unsigned The machine with #define size_t unsigned fails compiles with... /bin/sh /build/work/php-5.3.1/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/date/lib -Iext/date/ -I/build/work/php-5.3.1/ext/date/ -DPHP_ATOM_INC -I/build/work/php-5.3.1/include -I/build/work/php-5.3.1/main -I/build/work/php-5.3.1 -I/build/work/php-5.3.1/ext/date/lib -I/build/work/php-5.3.1/ext/ereg/regex -I/usr/include/libxml2 -I/build/work/php-5.3.1/ext/sqlite3/libsqlite -I/build/work/php-5.3.1/TSRM -I/build/work/php-5.3.1/Zend -I/usr/include -g -O2 -fvisibility=hidden -c /build/work/php-5.3.1/ext/date/php_date.c -o ext/date/php_date.lo In file included from /usr/include/stdlib.h:33, from /build/work/php-5.3.1/include/../main/php_config.h:2845, from /build/work/php-5.3.1/Zend/zend_config.h:1, from /build/work/php-5.3.1/Zend/zend.h:51, from /build/work/php-5.3.1/main/php.h:34, from /build/work/php-5.3.1/ext/date/php_date.c:21: /usr/lib/gcc/i486-linux-gnu/4.4.1/include/stddef.h:211: error: duplicate 'unsigned' In file included from /usr/include/stdlib.h:320, from /build/work/php-5.3.1/include/../main/php_config.h:2845, from /build/work/php-5.3.1/Zend/zend_config.h:1, from /build/work/php-5.3.1/Zend/zend.h:51, from /build/work/php-5.3.1/main/php.h:34, from /build/work/php-5.3.1/ext/date/php_date.c:21: /usr/include/sys/types.h:151: error: duplicate 'unsigned' /usr/include/sys/types.h:153: error: duplicate 'unsigned' /usr/include/sys/types.h:153: error: two or more data types in declaration specifiers make: *** [ext/date/php_date.lo] Error 1 And... maybe ./configure is picking this up wrong somehow so the autoheader process simply passes this along when php_config.h is created.