Edit report at https://bugs.php.net/bug.php?id=63104&edit=1
ID: 63104
User updated by: maduma at pt dot lu
Reported by: maduma at pt dot lu
Summary: php fail to build with --enable-intl
Status: Open
Type: Bug
Package: Compile Failure
Operating System: Solaris 11
PHP Version: 5.4.7
Block user comment: N
Private report: N
New Comment:
It seems that the build use g++ compiler for c++ and cc for c compiler
I've now defined cc and CC env variable
cc=/opt/solarisstudio12.3/bin/cc CXX=/opt/solarisstudio12.3/bin/CC \
./configure --prefix=/usr/php/5.4 --sysconfdir=/etc/php/5.4 \
--mandir=/usr/php/5.4/man --with-config-file-path=/etc/php/5.4 \
--enable-intl
The build failed also in the linker
/bin/sh /root/php/php-5.4.7/libtool --silent --preserve-dup-deps --mode=link cc -export-dynamic
-I/usr/include -O -xs -xstrconst -zlazyload -xmemalign=8s ext/date/php_date.lo ... -lstdc++
-lrt -lm -lnsl -lsocket -lxml2 -lz -lm -lsocket -lnsl -lxml2 -lz -lm -lsocket -lnsl -lCrun -lCstd
-lm -licui18n -licuuc -licudata -lm -licuio -lxml2 -lz -lm -lsocket -lnsl -lxml2 -lz -lm -lsocket
-lnsl -lxml2 -lz -lm -lsocket -lnsl -lxml2 -lz -lm -lsocket -lnsl -o sapi/cli/php
ld: fatal: library -lstdc++: not found
ld: fatal: file processing errors. No output written to sapi/cli/php
Why do the we need stdc++ (g++ related) !
I just removed -lstdc++ and it working now.
Need to test it now
Previous Comments:
------------------------------------------------------------------------
[2012-09-18 07:14:41] maduma at pt dot lu
root@build-sparc:~# icu-config --version
4.6
------------------------------------------------------------------------
[2012-09-18 03:26:38] laruence@php.net
what's your icu version?
$icu-config --version
------------------------------------------------------------------------
[2012-09-17 21:19:10] maduma at pt dot lu
Description:
------------
compiler: solarisstudio 12.3
os: solaris 11
arch: sparc
icu: 4.6
./configure --prefix=/usr/php/5.4 --sysconfdir=/etc/php/5.4 \
--mandir=/usr/php/5.4/man --with-config-file-path=/etc/php/5.4 \
--enable-intl
...
/bin/sh /root/php/php-5.4.7/libtool --silent --preserve-dup-deps --mode=link cc -export-dynamic
-I/usr/include -O ... -lnsl -o sapi/cli/php
Undefined first referenced
symbol in file
_ZN6icu_4911Formattable7setDateEd ext/intl/msgformat/msgformat_helpers.o
_ZTVN6icu_4913FieldPositionE ext/intl/msgformat/msgformat_helpers.o
_ZN6icu_4911Formattable7setLongEi ext/intl/msgformat/msgformat_helpers.o
_ZN6icu_4913UnicodeStringD1Ev ext/intl/msgformat/msgformat_helpers.o
_ZN6icu_4913UnicodeStringC1Ev ext/intl/msgformat/msgformat_helpers.o
_ZNK6icu_4911Formattable7getTypeEv ext/intl/msgformat/msgformat_helpers.o
_ZNK6icu_4913MessageFormat6formatEPKNS_11FormattableEiRNS_13UnicodeStringERNS_13FieldPositionER10UErrorCode
ext/intl/msgformat/msgformat_helpers.o
_ZN6icu_4913UnicodeStringC1EPKt ext/intl/msgformat/msgformat_helpers.o
_ZN6icu_4911Formattable9setStringERKNS_13UnicodeStringE ext/intl/msgformat/msgformat_helpers.o
_ZN6icu_4913UnicodeStringC1EPKti ext/intl/msgformat/msgformat_helpers.o
_ZN6icu_4913UnicodeStringaSERKS0_ ext/intl/msgformat/msgformat_helpers.o
_ZNK6icu_4913UnicodeString7extractEPtiR10UErrorCode ext/intl/msgformat/msgformat_helpers.o
_ZN6icu_497UMemorynaEj ext/intl/msgformat/msgformat_helpers.o
_ZN6icu_4911FormattableC1Ev ext/intl/msgformat/msgformat_helpers.o
_Unwind_Resume ext/intl/msgformat/msgformat_helpers.o (symbol belongs to
implicit dependency /usr/lib/libgcc_s.so.1)
_ZN6icu_497UMemorydaEPv ext/intl/msgformat/msgformat_helpers.o
_ZN6icu_4911Formattable9setDoubleEd ext/intl/msgformat/msgformat_helpers.o
_ZN6icu_4913FieldPositionD1Ev ext/intl/msgformat/msgformat_helpers.o
_ZN6icu_4911Formattable8setInt64Ex ext/intl/msgformat/msgformat_helpers.o
ld: fatal: symbol referencing errors. No output written to sapi/cli/php
make[1]: *** [sapi/cli/php] Error 2
make[1]: Leaving directory `/root/php/php-5.4.7'
make: *** [compile] Error 2
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63104&edit=1