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

From: Date: Sun, 05 Aug 2018 18:44:09 +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-216614@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: petk@php.net 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: Patch has been applied via http://git.php.net/?p=php-src.git;a=commit;h=0f557756dd3bb7a6390894e04f9ca25333c88d67 Thank you. Previous Comments: ------------------------------------------------------------------------ [2018-07-13 00:20:20] shinji dot igarashi at gmail dot com https://github.com/php/php-src/pull/3381 This PR fixes the problem. ------------------------------------------------------------------------ [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

« previous php.bugs (#216614) next »