Bug #76517 [Com]: --with-gettext= causes configure to misjudges there is no getcwd

From: Date: Fri, 13 Jul 2018 00:20:21 +0000
Subject: Bug #76517 [Com]: --with-gettext= causes configure to misjudges there is no getcwd
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-216294@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76517&edit=1

 ID:                 76517
 Comment by:         shinji dot igarashi at gmail dot com
 Reported by:        manabu dot matsui at gmail dot com
 Summary:            --with-gettext= causes configure to misjudges there
                     is no getcwd
 Status:             Open
 Type:               Bug
 Package:            *Compile Issues
 Operating System:   MacOS 10.13.5
 PHP Version:        7.2.7
 Block user comment: N
 Private report:     N

 New Comment:

https://github.com/php/php-src/pull/3381

This PR fixes the problem.


Previous Comments:
------------------------------------------------------------------------
[2018-06-22 05:50:14] manabu dot matsui at gmail dot com

Description:
------------
Configure misjudges that there is no getcwd if --with-gettext=/usr/local/opt/gettext is specified.
(gettext is installed by homebrew)

command to run configure:
./configure --disable-all --with-gettext=/usr/local/opt/gettext

output of configure:
...
checking for getcwd... no
...

in config.log:
configure:78929: checking for getcwd
configure:78929: cc -o conftest -g -O2 -fvisibility=hidden  -no-cpp-precomp  conftest.c -lintl -lm 
>&5
ld: library not found for -lintl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:78929: $? = 1
configure: failed program was:
...


Since libintl.a is included in gettext, I think that either one is necessary.

* Remove the -lintl option
* Indicate the location of the intl library with the -L option



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=76517&edit=1


Thread (4 messages)

« previous php.bugs (#216294) next »