Bug #63104 [Opn]: php fail to build with --enable-intl

From: Date: Wed, 19 Sep 2012 08:03:59 +0000
Subject: Bug #63104 [Opn]: php fail to build with --enable-intl
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-173553@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=63104&edit=1

 ID:                 63104
 Updated by:         laruence@php.net
 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:

I can not reproduce it:
$php -m | grep intl
intl

$php -r 'proc_open("ls");'
PHP Warning:  proc_open() expects at least 3 parameters, 1 given in Command line 
code on line 1


Previous Comments:
------------------------------------------------------------------------
[2012-09-19 07:46:30] maduma at pt dot lu

Still have problems with intl extention. When i compile 5.4 with intl the proc_open() function is
not defined anymore

# --with-intl
/usr/php/5.4/bin/php -r 'proc_open();'
PHP Fatal error:  Call to undefined function proc_open() in Command line code on line 1

# without intl
/usr/php/5.4/bin/php -r 'proc_open();'
PHP Warning:  proc_open() expects at least 3 parameters, 0 given in Command line code on line 1

------------------------------------------------------------------------
[2012-09-18 11:09:26] maduma at pt dot lu

Need also to create libCstd.so and libCrun.so link

ln -s /usr/lib/libCstd.so.1 /usr/lib/libCstd.so
ln -s /usr/lib/libCrun.so.1 /usr/lib/libCrun.so

------------------------------------------------------------------------
[2012-09-18 07:52:33] maduma at pt dot lu

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

------------------------------------------------------------------------
[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

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=63104


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=63104&edit=1


Thread (13 messages)

« previous php.bugs (#173553) next »