Edit report at https://bugs.php.net/bug.php?id=61234&edit=1
ID: 61234 Comment by: stolen dot data dot net at gmail dot com Reported by: stolen dot data dot net at gmail dot com Summary: PHP 5.4.0 fails to build on OpenBSD 5.0; possibly related to --enable-mbstring Status: Open Type: Bug Package: Compile Failure Operating System: OpenBSD 5.0 PHP Version: 5.4.0 Block user comment: N Private report: N New Comment: Here's a temporary workaround to the problem in order to get 5.4.0 to compile with --enable-mbstring... diff for configure: --- configure.orig Wed Mar 28 00:01:42 2012 +++ configure Wed Mar 28 03:12:01 2012 @@ -21106,7 +21106,7 @@ ep_dir="`echo $ext_builddir/lib|$SED 's%/*[^/][^/]*/*$%%'`" - ep_realdir="`(cd \"$ep_dir\" && pwd)`" + ep_realdir="`(cd $ep_dir && pwd)`" ai_p="$ep_realdir/`basename \"$ext_builddir/lib\"`" fi @@ -59293,7 +59293,7 @@ ep_dir="`echo $ext_builddir/$dir|$SED 's%/*[^/][^/]*/*$%%'`" - ep_realdir="`(cd \"$ep_dir\" && pwd)`" + ep_realdir="`(cd $ep_dir && pwd)`" ai_p="$ep_realdir/`basename \"$ext_builddir/$dir\"`" fi Then supply missing include paths when calling configure: CFLAGS="-Iext/mbstring/oniguruma/ -Iext/mbstring/libmbfl/mbfl" CPPFLAGS="- Iext/mbstring/oniguruma/ -Iext/mbstring/libmbfl/mbfl" ./configure --your-usual- flags Previous Comments: ------------------------------------------------------------------------ [2012-03-02 21:46:29] stolen dot data dot net at gmail dot com ./configure[59443]: cd: /usr/opt/php-5.4.0/"ext/mbstring" - No such file or directory ./configure[59443]: cd: /usr/opt/php-5.4.0/"ext/mbstring" - No such file or directory ./configure[59443]: cd: /usr/opt/php-5.4.0/"ext/mbstring/libmbfl" - No such file or directory ------------------------------------------------------------------------ [2012-03-02 02:12:06] stolen dot data dot net at gmail dot com The problem with --enable-mbstring seems to be that a lot of files have been moved around in ext/mbstring/oniguruma/ and ext/mbstring/libmbfl/ breaking the paths for a number of includes. A stray quote appears to be the reason for the Makefile's failure when --enable-mbstring isn't supplied. ------------------------------------------------------------------------ [2012-03-02 01:28:03] stolen dot data dot net at gmail dot com Description: ------------ When supplying "--enable-mbstring" to configure: /bin/sh /usr/opt/php-5.4.0/libtool --silent --preserve-dup-deps --mode=compile cc -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/usr/opt/php-5.4.0/ext/mbstring/ -DPHP_ATOM_INC - I/usr/opt/php-5.4.0/include -I/usr/opt/php-5.4.0/main -I/usr/opt/php-5.4.0 - I/lib" -I/usr/opt/php-5.4.0/ext/date/lib -I/usr/opt/php-5.4.0/ext/ereg/regex - I/usr/local/include -I/usr/opt/php-5.4.0/ext/mbstring/oniguruma -I/oniguruma" - I/usr/opt/php-5.4.0/ext/mbstring/libmbfl -I/libmbfl" -I/usr/opt/php- 5.4.0/ext/mbstring/libmbfl/mbfl -I/mbfl" -I/usr/opt/php- 5.4.0/ext/sqlite3/libsqlite -I/usr/opt/php-5.4.0/TSRM -I/usr/opt/php-5.4.0/Zend -I/usr/local/include -g -O2 -fvisibility=hidden -c /usr/opt/php- 5.4.0/ext/mbstring/oniguruma/regparse.c -o ext/mbstring/oniguruma/regparse.lo /usr/opt/php-5.4.0/ext/mbstring/oniguruma/regparse.c: In function 'onig_parse_make_tree': /usr/opt/php-5.4.0/ext/mbstring/oniguruma/regparse.c:5279: warning: passing argument 3 of 'parse_regexp' discards qualifiers from pointer target type /bin/sh /usr/opt/php-5.4.0/libtool --silent --preserve-dup-deps --mode=compile cc -DNOT_RUBY -DONIG_ESCAPE_UCHAR_COLLISION=1 -DUChar=OnigUChar -DHAVE_CONFIG_H -Iext/mbstring/ -I/usr/opt/php-5.4.0/ext/mbstring/ -DPHP_ATOM_INC - I/usr/opt/php-5.4.0/include -I/usr/opt/php-5.4.0/main -I/usr/opt/php-5.4.0 - I/lib" -I/usr/opt/php-5.4.0/ext/date/lib -I/usr/opt/php-5.4.0/ext/ereg/regex - I/usr/local/include -I/usr/opt/php-5.4.0/ext/mbstring/oniguruma -I/oniguruma" - I/usr/opt/php-5.4.0/ext/mbstring/libmbfl -I/libmbfl" -I/usr/opt/php- 5.4.0/ext/mbstring/libmbfl/mbfl -I/mbfl" -I/usr/opt/php- 5.4.0/ext/sqlite3/libsqlite -I/usr/opt/php-5.4.0/TSRM -I/usr/opt/php-5.4.0/Zend -I/usr/local/include -g -O2 -fvisibility=hidden -c /usr/opt/php- 5.4.0/ext/mbstring/oniguruma/enc/unicode.c -o ext/mbstring/oniguruma/enc/unicode.lo /usr/opt/php-5.4.0/ext/mbstring/oniguruma/enc/unicode.c:30:20: error: regenc.h: No such file or directory /usr/opt/php-5.4.0/ext/mbstring/oniguruma/enc/unicode.c:68: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'CRAlnum' /usr/opt/php-5.4.0/ext/mbstring/oniguruma/enc/unicode.c:493: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'CRAlpha' /usr/opt/php-5.4.0/ext/mbstring/oniguruma/enc/unicode.c:900: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'CRBlank' /usr/opt/php-5.4.0/ext/mbstring/oniguruma/enc/unicode.c:920: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'CRCntrl' /usr/opt/php-5.4.0/ext/mbstring/oniguruma/enc/unicode.c:950: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'CRDigit' /usr/opt/php-5.4.0/ext/mbstring/oniguruma/enc/unicode.c:984: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'CRGraph' /usr/opt/php-5.4.0/ext/mbstring/oniguruma/enc/unicode.c:1400: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'CRLower' /usr/opt/php-5.4.0/ext/mbstring/oniguruma/enc/unicode.c:1835: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'CRPrint' /usr/opt/php-5.4.0/ext/mbstring/oniguruma/enc/unicode.c:2251: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'CRPunct' /usr/opt/php-5.4.0/ext/mbstring/oniguruma/enc/unicode.c:2348: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'CRSpace' /usr/opt/php-5.4.0/ext/mbstring/oniguruma/enc/unicode.c:2370: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'CRUpper' /usr/opt/php-5.4.0/ext/mbstring/oniguruma/enc/unicode.c:2802: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'CRXDigit' /usr/opt/php-5.4.0/ext/mbstring/oniguruma/enc/unicode.c:2813: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'CRASCII' /usr/opt/php-5.4.0/ext/mbstring/oniguruma/enc/unicode.c:2822: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'CRWord' /usr/opt/php-5.4.0/ext/mbstring/oniguruma/enc/unicode.c:3272: error: expected ')' before 'code' /usr/opt/php-5.4.0/ext/mbstring/oniguruma/enc/unicode.c:3343: error: expected ';', ',' or ')' before '*' token *** Error code 1 Stop in /usr/opt/php-5.4.0 (line 652 of Makefile). Without "--enable-mbstring": /bin/sh /usr/opt/php-5.4.0/libtool --silent --preserve-dup-deps --mode=compile cc -Iext/date/lib -Iext/date/ -I/usr/opt/php-5.4.0/ext/date/ -DPHP_ATOM_INC - I/usr/opt/php-5.4.0/include -I/usr/opt/php-5.4.0/main -I/usr/opt/php-5.4.0 - I/lib" -I/usr/opt/php-5.4.0/ext/date/lib -I/usr/opt/php-5.4.0/ext/ereg/regex - I/usr/local/include -I/usr/opt/php-5.4.0/ext/sqlite3/libsqlite -I/usr/opt/php- 5.4.0/TSRM -I/usr/opt/php-5.4.0/Zend -I/usr/local/include -g -O2 - fvisibility=hidden -c /usr/opt/php-5.4.0/ext/date/php_date.c -o ext/date/php_date.lo *** Error code 1 /bin/sh: no closing quote Stop in /usr/opt/php-5.4.0 (line 471 of Makefile). Expected result: ---------------- - Actual result: -------------- - ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=61234&edit=1