Ralf S. Engelschall wrote:
On Fri, Feb 23, 2007, Victor G. Bolshakov wrote:

Victor G. Bolshakov wrote:
I have very strange problems with php under 2-STABLE-20061018 on Solaris
10 11/06 (Sparc)
I install OpenPKG CORE from BIN and also build it by myself. Than build
php as stand alone application and as apache module, but all i got
"process terminated by SIGSEGV (Segmentation Fault)" while run "php
./info.php" with "phpinfo(INFO_MODULES);" in info.php. Running "php
./info.php" with "phpinfo();" in info.php work.

Are there any known problems with php and OpenPKG under Solaris 10 11/06?
Today i reinstall Solaris 10 11/06 with latest Recommended Patch Cluster
(Feb/21/07) with additional patch 124922-02,
install latest stable snapshot of OpenPKG (2.20070221) and build php with
default configuration - all without successes - php crashed with
"Segmentation Fault (core dumped)".

I also try to install latest current version of OpenPKG - all CORE packages
and build php from current and stable - without successes.

Other applications works well - Apache, Python, MySQL, Subversion and so on.

Are there anybody with worked php on Solaris 10 11/06 under OpenPKG ?

This has nothing to do with the Solaris patches as it looks. It also
segfaulted for me under an older Solaris 10 version. But I figured out
the problem. Seems like GCC 4.1 under Solaris 10 with optimization
turned _ON_ incorrectly builds PHP (it segfaults in at least this
'phpinfo(INFO_MODULES);' call). This has to be something like a
platform specific compiler bug. As a workaround I've now disabled
compile-time optimizations under Solaris 10 for the PHP package. See
http://cvs.openpkg.org/chngview?cn=34180 for more details. With the
latest "php" package from CURRENT the problem should be now gone for
you, too.

For standalone php new package from current work well - default and with 
additional modules.
I use
        php::with_iconv = yes
        php::with_mbregex = yes
        php::with_mbstring = yes
        php::with_mysql = yes
        php::with_pcre = yes
        php::with_xml = yes


But when i buld apache with mod_php (from current) i have got "child pid 29582 exit 
signal Segmentation Fault (11)".
I try default package build and build with additional modules.

I think that i need to disable optimization not only for php but for apache and 
may be other packages, php depend on.

I will try to build apache+php and so on without optimization.

P.S. Are there any plans for configuration file placed in <openpkg>/etc with 
default build params just like in FreeBSD?
______________________________________________________________________
OpenPKG                                             http://openpkg.org
User Communication List                      openpkg-users@openpkg.org

Reply via email to