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. Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com ______________________________________________________________________ OpenPKG http://openpkg.org User Communication List openpkg-users@openpkg.org