ID: 46040 Updated by: [EMAIL PROTECTED] Reported By: Bjorn dot Wiberg at its dot uu dot se -Status: Open +Status: Feedback Bug Type: Compile Failure Operating System: IBM AIX 5.3 5300-08-01-0819 PHP Version: 5.3CVS-2008-09-10 (snap) New Comment:
"Perhaps" ?? Why don't you TRY it? And if it works -> send us a patch. Previous Comments: ------------------------------------------------------------------------ [2008-09-10 07:49:46] Bjorn dot Wiberg at its dot uu dot se Description: ------------ using gcc on AIX. Compilation failure due to BOOL not being defined? Probably due to the ifndef check at ext/pcre/pcrelib/pcre_internal.h:565: #ifndef FALSE typedef int BOOL; #define FALSE 0 #define TRUE 1 #endif I supposed FALSE is already defined (but apparently not BOOL), and hence compilation fails. Perhaps two checks instead would fix this? Something like: #ifndef BOOL typedef int BOOL; #endif #ifndef FALSE #define FALSE 0 #define TRUE 1 #endif Best regards, Björn Reproduce code: --------------- #! /bin/sh # # Created by configure LDFLAGS='-Wl,-bbigtoc' \ CC='gcc' \ './configure' \ '--enable-bcmath' \ '--enable-calendar' \ '--enable-cli' \ '--enable-dba' \ '--enable-dbase' \ '--enable-debug' \ '--enable-exif' \ '--enable-flatfile' \ '--enable-ftp' \ '--enable-gd-jis-conv' \ '--enable-gd-native-ttf' \ '--enable-inifile' \ '--enable-mbstring' \ '--enable-pcntl' \ '--enable-shmop' \ '--enable-soap' \ '--enable-sockets' \ '--enable-sqlite-utf8' \ '--enable-sysvmsg' \ '--enable-sysvsem' \ '--enable-sysvshm' \ '--enable-wddx' \ '--enable-zip' \ '--enable-zend-multibyte' \ '--prefix=/apache/php' \ '--with-apxs2=/apache/bin/apxs' \ '--with-bz2' \ '--with-cdb' \ '--with-curl' \ '--with-freetype-dir' \ '--with-gd' \ '--with-gdbm' \ '--with-gettext' \ '--with-jpeg-dir' \ '--with-ldap' \ '--with-libxml-dir=/usr/local' \ '--with-mime-magic' \ '--with-mysql=mysqlnd' \ '--with-mysqli=mysqlnd' \ '--with-openssl=/opt/freeware' \ '--with-pdo-mysql=mysqlnd' \ '--with-png-dir' \ '--with-xmlrpc' \ '--with-xpm-dir' \ '--with-xsl' \ '--with-zlib' \ '--with-zlib-dir' \ "$@" Expected result: ---------------- No compile failure. Actual result: -------------- gcc -I/home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib -Iext/pcre/ -I/home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/ -DPHP_ATOM_INC -I/home/bwiberg/rpm/BUILD/php5.3-200809100630/include -I/home/bwiberg/rpm/BUILD/php5.3-200809100630/main -I/home/bwiberg/rpm/BUILD/php5.3-200809100630 -I/home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/ereg/regex -I/usr/local/include/libxml2 -I/opt/freeware/include -I/usr/local/include -I/home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/date/lib -I/usr/X11R6/include -I/usr/include/freetype2 -I/home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/mbstring/oniguruma -I/home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/mbstring/libmbfl -I/home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/mbstring/libmbfl/mbfl -I/home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/sqlite3/libsqlite -I/home/bwiberg/rpm/BUILD/php5.3-200809100630/TSRM -I/home/bwiberg/rpm/BUILD/php5.3-200809100630/Zend -I/usr/include -g -fvisibility=hidden -O0 -Wall -c /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_chartables.c -DPIC -o ext/pcre/pcrelib/.libs/pcre_chartables.o In file included from /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_chartables.c:25: /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:976: error: parse error before 'BOOL' /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:976: warning: no semicolon at end of struct or union /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:980: error: parse error before '}' token /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:980: warning: type defaults to 'int' in declaration of 'compile_data' /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:980: warning: data definition has no type or storage class /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1027: error: parse error before 'BOOL' /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1027: warning: no semicolon at end of struct or union /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1028: warning: type defaults to 'int' in declaration of 'notbol' /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1028: warning: data definition has no type or storage class /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1029: error: parse error before 'noteol' /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1029: warning: type defaults to 'int' in declaration of 'noteol' /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1029: warning: data definition has no type or storage class /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1030: error: parse error before 'utf8' /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1030: warning: type defaults to 'int' in declaration of 'utf8' /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1030: warning: data definition has no type or storage class /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1031: error: parse error before 'jscript_compat' /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1031: warning: type defaults to 'int' in declaration of 'jscript_compat' /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1031: warning: data definition has no type or storage class /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1032: error: parse error before 'endonly' /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1032: warning: type defaults to 'int' in declaration of 'endonly' /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1032: warning: data definition has no type or storage class /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1033: error: parse error before 'notempty' /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1033: warning: type defaults to 'int' in declaration of 'notempty' /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1033: warning: data definition has no type or storage class /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1034: error: parse error before 'partial' /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1034: warning: type defaults to 'int' in declaration of 'partial' /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1034: warning: data definition has no type or storage class /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1035: error: parse error before 'hitend' /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1035: warning: type defaults to 'int' in declaration of 'hitend' /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1035: warning: data definition has no type or storage class /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1036: error: parse error before 'bsr_anycrlf' /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1036: warning: type defaults to 'int' in declaration of 'bsr_anycrlf' /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1036: warning: data definition has no type or storage class /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1049: error: parse error before '}' token /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1049: warning: type defaults to 'int' in declaration of 'match_data' /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1049: warning: data definition has no type or storage class /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1137: error: parse error before 'php__pcre_is_newline' /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1138: error: parse error before 'BOOL' /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1138: warning: type defaults to 'int' in declaration of 'php__pcre_is_newline' /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1138: warning: data definition has no type or storage class /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1143: error: parse error before 'php__pcre_was_newline' /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1144: error: parse error before 'BOOL' /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1144: warning: type defaults to 'int' in declaration of 'php__pcre_was_newline' /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1144: warning: data definition has no type or storage class /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1145: error: parse error before 'php__pcre_xclass' /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1145: warning: type defaults to 'int' in declaration of 'php__pcre_xclass' /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_internal.h:1145: warning: data definition has no type or storage class /home/bwiberg/rpm/BUILD/php5.3-200809100630/ext/pcre/pcrelib/pcre_chartables.c:194: warning: visibility attribute not supported in this configuration; ignored make: *** [ext/pcre/pcrelib/pcre_chartables.lo] Error 1 Bad exit status from /var/opt/freeware/tmp/rpm-tmp.12742 (%build) [EMAIL PROTECTED]:~/rpm/SPECS$ ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46040&edit=1