Error compiling php with gettext support
| From: | Marco | Date: | Mon, 16 Sep 2002 13:18:33 +0000 |
| Subject: | Error compiling php with gettext support | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-8469@lists.php.net to get a copy of this message | ||
Hi all,
I am trying to build php 4.2.3 under compaq TRU64 unix
I have succesfully built using gcc but I want to compile with
compaq cc since it produces faster and more optimized binary
code
I have configured php with the following parameters
$ CC=cc ; export CC
$ ./configure --with-apxs=/usr/local/apache/bin/apxs --with-opensll=/usr/local/ssl --with-gettext --with-imap=../imap --with-pgsql --with-db3 --enable-apc
now with gcc I get no error whilst with cc I get the following compile error
make
make[1]: Entering directory `/usr/local/src/php-4.2.3/ext/gettext'
/bin/ksh /usr/local/src/php-4.2.3/libtool --silent --mode=compile cc -I. -I/usr/local/src/php-4.2.3/ext/gettext -I/usr/local/src/php-4.2.3/main -I/usr/local/src/php-4.2.3 -I/usr/local/apache/include -I/usr/local/src/php-4.2.3/Zend -I/usr/local/include -I/usr/local/src/imap/c-client -I/usr/local/src/php-4.2.3/ext/mysql/libmysql -I/usr/users/postgres/include -I/usr/local/src/php-4.2.3/ext/xml/expat -DOSF1 -DMOD_SSL=208110 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I/usr/local/src/php-4.2.3/TSRM -g -prefer-pic -c gettext.c
cc: Error: gettext.c, line 37: In the initializer for php_gettext_functions[0].handler, "zif_libintl_textdomain" is not declared. (undeclared)
PHP_FE(textdomain, NULL)--------^ cc: Error: gettext.c, line 38: In the initializer for php_gettext_functions[1].handler, "zif_libintl_gettext" is not declared. (undeclared)
PHP_FE(gettext, NULL)--------^ cc: Error: gettext.c, line 40: In the initializer for php_gettext_functions[3].handler, "zif_libintl_dgettext" is not declared. (undeclared)
PHP_FE(dgettext, NULL)--------^ cc: Error: gettext.c, line 41: In the initializer for php_gettext_functions[4].handler, "zif_libintl_dcgettext" is not declared. (undeclared)
PHP_FE(dcgettext, NULL)--------^ cc: Error: gettext.c, line 42: In the initializer for php_gettext_functions[5].handler, "zif_libintl_bindtextdomain" is not declared. (undeclared)
PHP_FE(bindtextdomain, NULL)--------^ cc: Error: gettext.c, line 44: In the initializer for php_gettext_functions[6].handler, "zif_libintl_ngettext" is not declared. (undeclared)
PHP_FE(ngettext, NULL)--------^ cc: Error: gettext.c, line 47: In the initializer for php_gettext_functions[7].handler, "zif_libintl_dngettext" is not declared. (undeclared)
PHP_FE(dngettext, NULL)--------^ cc: Error: gettext.c, line 50: In the initializer for php_gettext_functions[8].handler, "zif_libintl_dcngettext" is not declared. (undeclared)
PHP_FE(dcngettext, NULL)--------^ cc: Error: gettext.c, line 53: In the initializer for php_gettext_functions[9].handler, "zif_libintl_bind_textdomain_codeset" is not declared. (undeclared)
PHP_FE(bind_textdomain_codeset, NULL)--------^ make[1]: *** [gettext.lo] Error 1 make[1]: Leaving directory `/usr/local/src/php-4.2.3/ext/gettext' make: *** [all-recursive] Error 1 I have tried to figure out where the macro PGP_FE is defined but I didn't find it!! Regards Marco De Simone