#48200 [Opn->Asn]: Compilation fails on mbstring.c
| From: | jani@php.net | Date: | Sun, 10 May 2009 19:46:34 +0000 |
| Subject: | #48200 [Opn->Asn]: Compilation fails on mbstring.c | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-137131@lists.php.net to get a copy of this message | ||
ID: 48200
Updated by: jani@php.net
Reported By: dg at artegic dot de
-Status: Open
+Status: Assigned
Bug Type: mbstring related
Operating System: Solaris 10
PHP Version: 5.3.0RC2
-Assigned To:
+Assigned To: jani
New Comment:
This was missing from my build: --enable-zend-multibyte :)
I'll fix this asap.
Previous Comments:
------------------------------------------------------------------------
[2009-05-10 07:54:38] dg at artegic dot de
No problem compiling php5.2-200905100630, EVEN WITH CFLAGS="-i ..."
(I had to remove the mysql native driver).
Compiling php5.3-200905100630 WITH EMPTY CFLAGS (CFLAGS="") leads to
the same "undefined symbol" in mbstring.c error.
Compiling WITHOUT ANY CFLAGS didn't work either:
"/home/remote/compile/php5.3-200905100630/ext/mbstring/mbstring.c",
line 4757: undefined symbol: php_mb_encoding_detector
"/home/remote/compile/php5.3-200905100630/ext/mbstring/mbstring.c",
line 4757: warning: improper pointer/integer combination: op "="
"/home/remote/compile/php5.3-200905100630/ext/mbstring/mbstring.c",
line 4758: undefined symbol: php_mb_encoding_converter
"/home/remote/compile/php5.3-200905100630/ext/mbstring/mbstring.c",
line 4758: warning: improper pointer/integer combination: op "="
"/home/remote/compile/php5.3-200905100630/ext/mbstring/mbstring.c",
line 4759: undefined symbol: php_mb_oddlen
"/home/remote/compile/php5.3-200905100630/ext/mbstring/mbstring.c",
line 4759: warning: improper pointer/integer combination: op "="
"/home/remote/compile/php5.3-200905100630/ext/mbstring/mbstring.c",
line 4787: warning: argument #3 is incompatible with prototype:
------------------------------------------------------------------------
[2009-05-09 21:04:21] jani@php.net
Drop this first: CFLAGS="-i -zlazyload -w"
Then get the latest CVS snapshots of both PHP 5.2 and 5.3 branches
here:
http://snaps.php.net/ and test your configure line with both.
------------------------------------------------------------------------
[2009-05-09 11:48:05] dg at artegic dot de
Description:
------------
Compilation of mbstring.c fails on Sun C 5.9 SunOS_i386 Patch 124868-09
2009/04/14, independent of compiler settings i.e. "-fast"
Reproduce code:
---------------
CFLAGS="-i -zlazyload -w" \
./configure \
--prefix=/xxx \
--with-config-file-path=/xxx \
--enable-mysqlnd-threading \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-zlib \
--with-openssl=/xxx \
--with-apxs2=/xxx \
--with-curl \
--with-curlwrappers \
--with-pspell \
--with-tidy=/xxx \
--with-iconv \
--with-gd \
--with-jpeg-dir \
--enable-gd-native-ttf \
--with-freetype-dir=/xxx \
--enable-pcntl \
--enable-mbstring \
--enable-zend-multibyte \
--enable-zip \
--without-pear \
--without-sqlite \
--without-sqlite3 \
--without-cdb \
--disable-posix \
--disable-pdo \
--disable-cgi \
--disable-ipv6 \
--disable-json \
--disable-phar
Actual result:
--------------
/bin/sh /home/remote/compile/php5.3-200905090630/libtool --silent --
preserve-dup-deps --mode=compile cc -Iext/mbstring/ -
I/home/remote/compile/php5.3-200905090630/ext/mbstring/ -DPHP_ATOM_INC
-I/home/remote/compile/php5.3-200905090630/include -
I/home/remote/compile/php5.3-200905090630/main -
I/home/remote/compile/php5.3-200905090630 -
I/home/remote/compile/php5.3-200905090630/ext/ereg/regex -
I/usr/include/libxml2 -I/usr/sfw/include -I/usr/local/include -
I/home/remote/compile/php5.3-200905090630/ext/date/lib -
I/usr/sfw/include/freetype2 -I/home/remote/compile/php5.3-
200905090630/ext/mbstring/oniguruma -I/home/remote/compile/php5.3-
200905090630/ext/mbstring/libmbfl -I/home/remote/compile/php5.3-
200905090630/ext/mbstring/libmbfl/mbfl -I/usr/include/pspell -
I/home/remote/compile/php5.3-200905090630/TSRM -
I/home/remote/compile/php5.3-200905090630/Zend -
D_POSIX_PTHREAD_SEMANTICS -I/usr/include -i -zlazyload -w -DZTS -c
/home/remote/compile/php5.3-200905090630/ext/mbstring/mbstring.c -o
ext/mbstring/mbstring.lo
"/home/remote/compile/php5.3-200905090630/ext/mbstring/mbstring.c",
line 4757: undefined symbol: php_mb_encoding_detector
"/home/remote/compile/php5.3-200905090630/ext/mbstring/mbstring.c",
line 4758: undefined symbol: php_mb_encoding_converter
"/home/remote/compile/php5.3-200905090630/ext/mbstring/mbstring.c",
line 4759: undefined symbol: php_mb_oddlen
cc: acomp failed for /home/remote/compile/php5.3-
200905090630/ext/mbstring/mbstring.c
*** Error code 1
make: Fatal error: Command failed for target
`ext/mbstring/mbstring.lo'
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48200&edit=1