#24402 [NEW]: Compile Failure using --with-gettext
| From: | beckett at beckettmw dot com | Date: | Mon, 30 Jun 2003 10:58:50 +0000 |
| Subject: | #24402 [NEW]: Compile Failure using --with-gettext | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-42832@lists.php.net to get a copy of this message | ||
From: beckett at beckettmw dot com
Operating system: Mac OS X/Darwin
PHP version: 5.0.0b1 (beta1)
PHP Bug Type: Gettext related
Bug description: Compile Failure using --with-gettext
Description:
------------
On Mac OS X 10.2.6, I compiled PHP 4.3.1 with gettext
0.12 and GCC 3.1 (Apple v1151) just fine--no problems.
But with 4.3.2 and now again with 5.0.0b1, I get the
following compile error when reaching gettext.c:
Compiler command that generates the error:
gcc -Iext/gettext/ -I/dl/php-5.0.0b1/ext/gettext/ -
DPHP_ATOM_INC -I/dl/php-5.0.0b1/include -I/dl/php-
5.0.0b1/main -I/dl/php-5.0.0b1 -I/dl/php-5.0.0b1/Zend -
I/usr/local/include/libxml2 -I/usr/local/include -I/
usr/local/mysql/include -no-cpp-precomp -I/dl/php-
5.0.0b1/TSRM -g -O2 -c /dl/php-5.0.0b1/ext/gettext/
gettext.c -o ext/gettext/gettext.o && echo > ext/
gettext/gettext.lo
Errors:
/dl/php-5.0.0b1/ext/gettext/gettext.c:37:
`zif_libintl_textdomain' undeclared here (not in a
function)
/dl/php-5.0.0b1/ext/gettext/gettext.c:37: initializer
element is not constant
/dl/php-5.0.0b1/ext/gettext/gettext.c:37: (near
initialization for `php_gettext_functions[0].handler')
/dl/php-5.0.0b1/ext/gettext/gettext.c:37: initializer
element is not constant
/dl/php-5.0.0b1/ext/gettext/gettext.c:37: (near
initialization for `php_gettext_functions[0]')
/dl/php-5.0.0b1/ext/gettext/gettext.c:38:
`zif_libintl_gettext' undeclared here (not in a
function)
/dl/php-5.0.0b1/ext/gettext/gettext.c:38: initializer
element is not constant
/dl/php-5.0.0b1/ext/gettext/gettext.c:38: (near
initialization for `php_gettext_functions[1].handler')
/dl/php-5.0.0b1/ext/gettext/gettext.c:38: initializer
element is not constant
/dl/php-5.0.0b1/ext/gettext/gettext.c:38: (near
initialization for `php_gettext_functions[1]')
(...and so on, one set of errors for each of the
gettext functions).
--
Edit bug report at http://bugs.php.net/?id=24402&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=24402&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=24402&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24402&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24402&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24402&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24402&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24402&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24402&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24402&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24402&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24402&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24402&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24402&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24402&r=gnused