From:             stolen dot data dot net at gmail dot com
Operating system: OpenBSD 5.3 (possibly all BSDs)
PHP version:      5.5.0
Package:          Compile Failure
Bug Type:         Bug
Bug description:configure script (and compile) fails, perhaps due to BSD 
differences in SH

Description:
------------
This is a long-standing issue that dates back more than a year. I'm
"re-reporting" 
it in hopes that it will finally get attention instead of being
overlooked.

During ./configure, the following warnings - which later on cause the 
make/compilation phase to halt with errors - will show up:

./configure[21401]: cd: /usr/opt/php-5.5.0/"ext/date" - No such file or
directory

...

./configure[56997]: cd: /usr/opt/php-5.5.0/"ext/mbstring" - No such file or

directory
./configure[56997]: cd: /usr/opt/php-5.5.0/"ext/mbstring" - No such file or

directory
./configure[56997]: cd: /usr/opt/php-5.5.0/"ext/mbstring/libmbfl" - No such
file 
or directory

Backtracking from those line numbers we quickly find the problem, present
at both 
lines 21381 and 56850:

    ep_realdir="`(cd \"$ep_dir\" && pwd)`"

This exact line is present numerous times in the configure script, but for
some 
reason it fails on the three extension paths described above. It might be
caused 
by the line just before that prepares $ep_dir using SED.

The quick'n'dirty solution is to simply unquote $ep_dir by removing the two
\" in 
the subshell statement, but something proper would be preferred.



Also, no biggie, but there are some odd recurrences of inclusion paths
showing up 
during compiling. Each line separated:

-I/usr/opt/php-5.5.0/ext/date/lib
"-I/usr/opt/php-5.5.0/ext/date/lib
 -I/usr/opt/php-5.5.0/ext/ereg/regex
 -I/usr/local/include
 -I/usr/opt/php-5.5.0/ext/mbstring/oniguruma
 -I/usr/opt/php-5.5.0/ext/mbstring/oniguruma"
-I/usr/opt/php-5.5.0/ext/mbstring/libmbfl
-I/usr/opt/php-5.5.0/ext/mbstring/libmbfl
"-I/usr/opt/php-5.5.0/ext/mbstring/libmbfl/mbfl
 -I/usr/opt/php-5.5.0/ext/mbstring/libmbfl/mbfl"

Test script:
---------------
./configure
make

Expected result:
----------------
No path failures.

Actual result:
--------------
Described above.

-- 
Edit bug report at https://bugs.php.net/bug.php?id=65088&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=65088&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=65088&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=65088&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=65088&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=65088&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=65088&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=65088&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=65088&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=65088&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=65088&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=65088&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=65088&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=65088&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65088&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=65088&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=65088&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=65088&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65088&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=65088&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=65088&r=mysqlcfg

Reply via email to