php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18524 gettext compile error while upgrading 4.1.2 to 4.2.2
Submitted: 2002-07-24 02:15 UTC Modified: 2002-09-12 10:25 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: achaux at ucar dot edu Assigned:
Status: Closed Package: Gettext related
PHP Version: 4.2.2 OS: RedHat 7.0
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: achaux at ucar dot edu
New email:
PHP Version: OS:

 

 [2002-07-24 02:15 UTC] achaux at ucar dot edu
Currently running Horde IMP, gettext 0.11.1, PHP 4.1.2 on Apache 1.3.12 
Trying to upgrade to PHP 4.2.2 using --with-gettext=/usr/bin/ and getting the following make error:

###############################
Making all in gettext
make[2]: Entering directory `/usr/local/php-4.2.2/ext/gettext'
make[3]: Entering directory `/usr/local/php-4.2.2/ext/gettext'
/bin/sh /usr/local/php-4.2.2/libtool --silent --mode=compile gcc  -I. -I/usr/local/php-4.2.2/ext/gettext -I/usr/local/php-4.2.2/main -I/usr/local/php-4.2.2 -I/usr/include/apache -I/usr/local/php-4.2.2/Zend -I/usr/local/include -I/usr/local/php-4.2.2/ext/mysql/libmysql -I/usr/local/php-4.2.2/ext/xml/expat  -DLINUX=2 -DMOD_SSL=207101 -DEAPI -DUSE_EXPAT -I/usr/local/php-4.2.2/TSRM -g -O2 -prefer-pic  -c gettext.c
gettext.c:210:93: too many arguments for macro "ngettext"
gettext.c:238:115: too many arguments for macro "dngettext"
make[3]: *** [gettext.lo] Error 1
make[3]: Leaving directory `/usr/local/php-4.2.2/ext/gettext'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/php-4.2.2/ext/gettext'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/php-4.2.2/ext'
make: *** [all-recursive] Error 1

###############################
Thanks for the help.
-ac

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-24 19:38 UTC] sniper@php.net
Why do you use such path for --with-gettext? Try without ANY path..

 [2002-07-25 16:08 UTC] achaux at ucar dot edu
Originally tried without dir path for gettext. php.net online documentation for config options states:

--with-gettext[=DIR]

Include GNU gettext support. DIR is the gettext install directory, defaults to /usr/local. 

Either way, received idential error message "too many arguments for macro "ngettext"".

Thx
-ac
 [2002-07-25 20:04 UTC] sniper@php.net
Please try this snapshot:

http://snaps.php.net/php4-latest.tar.gz
 [2002-08-02 12:02 UTC] achaux at ucar dot edu
Tried the latest snapshot, still get the "too many arguments for gettext macro" error:

/bin/sh libtool --silent --mode=compile gcc  -Iext/gettext/ -I/usr/local/php4-200208020733/ext/gettext/ -DPHP_ATOM_INC -I/usr/local/php4-200208020733/include -I/usr/local/php4-200208020733/main -I/usr/local/php4-200208020733 -I/usr/local/php4-200208020733/Zend -I/usr/local/include -I/usr/local/php4-200208020733/ext/xml/expat  -DLINUX=2 -DMOD_SSL=207101 -DEAPI -DUSE_EXPAT -I/usr/local/php4-200208020733/TSRM -g -O2  -prefer-pic -c /usr/local/php4-200208020733/ext/gettext/gettext.c -o ext/gettext/gettext.lo 
/usr/local/php4-200208020733/ext/gettext/gettext.c:210:93: too many arguments for macro "ngettext"
/usr/local/php4-200208020733/ext/gettext/gettext.c:238:115: too many arguments for macro "dngettext"
make: *** [ext/gettext/gettext.lo] Error 1
 [2002-09-11 13:27 UTC] iliaa@php.net
Please try using this CVS snapshot:

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

I've just compiled PHP 4.3.0-dev with gettext support, with gettext version 0.11.5 and it worked flawlesly.
 [2002-09-12 10:25 UTC] achaux at ucar dot edu
Make successful, thanks iliia
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Oct 08 15:01:27 2024 UTC