php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33244 make failure - php with gettext
Submitted: 2005-06-04 22:20 UTC Modified: 2005-06-06 14:10 UTC
From: gregrlb at softhome dot net Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.11 OS: AIX 5.2
Private report: No CVE-ID: None
 [2005-06-04 22:20 UTC] gregrlb at softhome dot net
Description:
------------
Hello,

I compiled successfully and use now the php-4.3.11. But I have to add gettext support. I compiled gettext but can't 'make' the php-4.3.11 with gettext support

Reproduce code:
---------------
cd php-4.3.11
./configure  --with-dom --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-zlib-dir=/opt/freeware/ --without-cli --with-gettext=/usr/local
vi ./libtool
I change 'build_old_libs=no' to 'build_old_libs=yes'
make

Actual result:
--------------
        /bin/sh /tmp2/php-4.3.11/libtool --silent --preserve-dup-deps --mode=compile cc  -Isapi/cli/ -I/tmp2/php-4.3.11/sapi/cli/ -DPHP_ATOM_INC -I/tmp2/php-4.3.11/include -I/tmp2/php-4.3.11/main -I/tmp2/php-4.3.11 -I/opt/freeware//include -I/usr/include/libxml2 -I/usr/local//include -I/tmp2/php-4.3.11/ext/xml/expat -I/tmp2/php-4.3.11/TSRM -I/tmp2/php-4.3.11/Zend    -g   -c /tmp2/php-4.3.11/sapi/cli/php_cli.c -o sapi/cli/php_cli.lo
        /bin/sh /tmp2/php-4.3.11/libtool --silent --preserve-dup-deps --mode=compile cc  -Isapi/cli/ -I/tmp2/php-4.3.11/sapi/cli/ -DPHP_ATOM_INC -I/tmp2/php-4.3.11/include -I/tmp2/php-4.3.11/main -I/tmp2/php-4.3.11 -I/opt/freeware//include -I/usr/include/libxml2 -I/usr/local//include -I/tmp2/php-4.3.11/ext/xml/expat -I/tmp2/php-4.3.11/TSRM -I/tmp2/php-4.3.11/Zend    -g   -c /tmp2/php-4.3.11/sapi/cli/getopt.c -o sapi/cli/getopt.lo
        /bin/sh /tmp2/php-4.3.11/libtool --silent --preserve-dup-deps --mode=compile cc  -Imain/ -I/tmp2/php-4.3.11/main/ -DPHP_ATOM_INC -I/tmp2/php-4.3.11/include -I/tmp2/php-4.3.11/main -I/tmp2/php-4.3.11 -I/opt/freeware//include -I/usr/include/libxml2 -I/usr/local//include -I/tmp2/php-4.3.11/ext/xml/expat -I/tmp2/php-4.3.11/TSRM -I/tmp2/php-4.3.11/Zend    -g   -c main/internal_functions_cli.c -o main/internal_functions_cli.lo
        /bin/sh /tmp2/php-4.3.11/libtool --silent --preserve-dup-deps --mode=link cc -export-dynamic -g  -L/opt/freeware//lib -L/opt/freeware/lib -L/usr/local//lib  -R /opt/freeware//lib -R /opt/freeware/lib -R /usr/local//lib ext/zlib/zlib.lo ext/zlib/zlib_fopen_wrapper.lo ext/ctype/ctype.lo ext/domxml/php_domxml.lo ext/gettext/gettext.lo ext/mysql/php_mysql.lo ext/mysql/libmysql/libmysql.lo ext/mysql/libmysql/errmsg.lo ext/mysql/libmysql/net.lo ext/mysql/libmysql/violite.lo ext/mysql/libmysql/password.lo ext/mysql/libmysql/my_init.lo ext/mysql/libmysql/my_lib.lo ext/mysql/libmysql/my_static.lo ext/mysql/libmysql/my_malloc.lo ext/mysql/libmysql/my_realloc.lo ext/mysql/libmysql/my_create.lo ext/mysql/libmysql/my_delete.lo ext/mysql/libmysql/my_tempnam.lo ext/mysql/libmysql/my_open.lo ext/mysql/libmysql/mf_casecnv.lo ext/mysql/libmysql/my_read.lo ext/mysql/libmysql/my_write.lo ext/mysql/libmysql/errors.lo ext/mysql/libmysql/my_error.lo ext/mysql/libmysql/my_getwd.lo ext/mysql/libmysql/my_div.lo ext/mysql/libmysql/mf_pack.lo ext/mysql/libmysql/my_messnc.lo ext/mysql/libmysql/mf_dirname.lo ext/mysql/libmysql/mf_fn_ext.lo ext/mysql/libmysql/mf_wcomp.lo ext/mysql/libmysql/typelib.lo ext/mysql/libmysql/safemalloc.lo ext/mysql/libmysql/my_alloc.lo ext/mysql/libmysql/mf_format.lo ext/mysql/libmysql/mf_path.lo ext/mysql/libmysql/mf_unixpath.lo ext/mysql/libmysql/my_fopen.lo ext/mysql/libmysql/mf_loadpath.lo ext/mysql/libmysql/my_pthread.lo ext/mysql/libmysql/my_thr_init.lo ext/mysql/libmysql/thr_mutex.lo ext/mysql/libmysql/mulalloc.lo ext/mysql/libmysql/string.lo ext/mysql/libmysql/default.lo ext/mysql/libmysql/my_compress.lo ext/mysql/libmysql/array.lo ext/mysql/libmysql/my_once.lo ext/mysql/libmysql/list.lo ext/mysql/libmysql/my_net.lo ext/mysql/libmysql/dbug.lo ext/mysql/libmysql/strmov.lo ext/mysql/libmysql/strxmov.lo ext/mysql/libmysql/strnmov.lo ext/mysql/libmysql/strmake.lo ext/mysql/libmysql/strend.lo ext/mysql/libmysql/strfill.lo ext/mysql/libmysql/is_prefix.lo ext/mysql/libmysql/int2str.lo ext/mysql/libmysql/str2int.lo ext/mysql/libmysql/strinstr.lo ext/mysql/libmysql/strcont.lo ext/mysql/libmysql/strcend.lo ext/mysql/libmysql/bchange.lo ext/mysql/libmysql/bmove.lo ext/mysql/libmysql/bmove_upp.lo ext/mysql/libmysql/longlong2str.lo ext/mysql/libmysql/strtoull.lo ext/mysql/libmysql/strtoll.lo ext/mysql/libmysql/charset.lo ext/mysql/libmysql/ctype.lo ext/overload/overload.lo ext/pcre/pcrelib/maketables.lo ext/pcre/pcrelib/get.lo ext/pcre/pcrelib/study.lo ext/pcre/pcrelib/pcre.lo ext/pcre/php_pcre.lo ext/posix/posix.lo ext/session/session.lo ext/session/mod_files.lo ext/session/mod_mm.lo ext/session/mod_user.lo regex/regcomp.lo regex/regexec.lo regex/regerror.lo regex/regfree.lo ext/standard/array.lo ext/standard/base64.lo ext/standard/basic_functions.lo ext/standard/browscap.lo ext/standard/crc32.lo ext/standard/crypt.lo ext/standard/cyr_convert.lo ext/standard/datetime.lo ext/standard/dir.lo ext/standard/dl.lo ext/standard/dns.lo ext/standard/exec.lo ext/standard/file.lo ext/standard/filestat.lo ext/standard/flock_compat.lo ext/standard/formatted_print.lo ext/standard/fsock.lo ext/standard/head.lo ext/standard/html.lo ext/standard/image.lo ext/standard/info.lo ext/standard/iptc.lo ext/standard/lcg.lo ext/standard/link.lo ext/standard/mail.lo ext/standard/math.lo ext/standard/md5.lo ext/standard/metaphone.lo ext/standard/microtime.lo ext/standard/pack.lo ext/standard/pageinfo.lo ext/standard/parsedate.lo ext/standard/quot_print.lo ext/standard/rand.lo ext/standard/reg.lo ext/standard/soundex.lo ext/standard/string.lo ext/standard/scanf.lo ext/standard/syslog.lo ext/standard/type.lo ext/standard/uniqid.lo ext/standard/url.lo ext/standard/url_scanner.lo ext/standard/var.lo ext/standard/versioning.lo ext/standard/assert.lo ext/standard/strnatcmp.lo ext/standard/levenshtein.lo ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo ext/standard/css.lo ext/standard/var_unserializer.lo ext/standard/ftok.lo ext/standard/aggregation.lo ext/standard/sha1.lo ext/tokenizer/tokenizer.lo ext/xml/xml.lo ext/xml/expat/xmlparse.lo ext/xml/expat/xmlrole.lo ext/xml/expat/xmltok.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo TSRM/tsrm_virtual_cwd.lo main/main.lo main/snprintf.lo main/spprintf.lo main/php_sprintf.lo main/safe_mode.lo main/fopen_wrappers.lo main/alloca.lo main/php_scandir.lo main/php_ini.lo main/SAPI.lo main/rfc1867.lo main/php_content_types.lo main/strlcpy.lo main/strlcat.lo main/mergesort.lo main/reentrancy.lo main/php_variables.lo main/php_ticks.lo main/streams.lo main/network.lo main/php_open_temporary_file.lo main/php_logos.lo main/output.lo main/memory_streams.lo main/user_streams.lo Zend/zend_language_parser.lo Zend/zend_language_scanner.lo Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_strtod.lo Zend/zend_execute.lo sapi/cli/php_cli.lo sapi/cli/getopt.lo main/internal_functions_cli.lo -lintl -lz -lz -lm -lxml2 -lz -liconv -lm  -o sapi/cli/php
ld: 0711-317 ERROR: Undefined symbol: .libintl_bind_textdomain_codeset
ld: 0711-317 ERROR: Undefined symbol: .libintl_dcngettext
ld: 0711-317 ERROR: Undefined symbol: .libintl_dngettext
ld: 0711-317 ERROR: Undefined symbol: .libintl_ngettext
ld: 0711-317 ERROR: Undefined symbol: .libintl_bindtextdomain
ld: 0711-317 ERROR: Undefined symbol: .libintl_dcgettext
ld: 0711-317 ERROR: Undefined symbol: .libintl_dgettext
ld: 0711-317 ERROR: Undefined symbol: .libintl_gettext
ld: 0711-317 ERROR: Undefined symbol: .libintl_textdomain
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
make: 1254-004 The error code from the last command is 8.


Stop.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-04 22:22 UTC] gregrlb at softhome dot net
The version of gettext I use is 0.14.5.
 [2005-06-06 10:23 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip

And DO NOT mess with the libtool!

 [2005-06-06 13:09 UTC] gregrlb at softhome dot net
I can't use PHP5. The applications I'll use with it need a PHP4 ...
But I tried the same thing with gettext-0.10.39-2 and it seems to work.
But another problem appeared during all the tests I've done.

Now, I type:
cd php-4.3.11
./configure --with-dom --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-zlib-dir=/opt/freeware/ --without-cli --with-gettext=/usr/local
make (after having changed build_old_libs=no to yes in ./libtool)
make install
And here is the actual result I get:

Installing PHP SAPI module:       apache2handler
/usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool' libphp4.la /usr/local/apache2/modules
rm -f /usr/local/apache2/modules/libphp4.so
/usr/local/apache2/build/libtool --mode=install cp libphp4.la /usr/local/apache2/modules/
cp .libs/libphp4.a /usr/local/apache2/modules/libphp4.a
cp .libs/libphp4.lai /usr/local/apache2/modules/libphp4.la
cp .libs/libphp4.a /usr/local/apache2/modules/libphp4.a
ranlib /usr/local/apache2/modules/libphp4.a
chmod 644 /usr/local/apache2/modules/libphp4.a
libtool: install: warning: remember to run `libtool --finish /usr/SAG/ada/db010/tmp2/php-4.3.11/libs'
chmod 755 /usr/local/apache2/modules/libphp4.so
chmod: /usr/local/apache2/modules/libphp4.so: A file or directory in the path name does not exist.
apxs:Error: Command failed with rc=65536
.
make: 1254-004 The error code from the last command is 1.


Stop.


Greg.
-----------
 [2005-06-06 14:10 UTC] sniper@php.net
That is just indication that your grep/sed/etc. aren't GNU tools. Install them all and make sure they're in PATH as first. That'll fix most issues. And I did not ask you to install and start using PHP 5, I merely wanted to know if this problem exists in HEAD of CVS. As you don't want to co-operate and we're soon gonna release 5.1, I'm assuming it's fixed there and won't fix in PHP 4. (Only _critical_ bugs will be fixed in PHP 4.4)

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 16:01:30 2024 UTC