php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25573 php compilation error on Sun SPARC Solaris 7
Submitted: 2003-09-17 09:46 UTC Modified: 2003-09-18 10:30 UTC
From: wzaccone at telcordia dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.3.2 OS: Sun Sparc Solaris 7 and 8
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: wzaccone at telcordia dot com
New email:
PHP Version: OS:

 

 [2003-09-17 09:46 UTC] wzaccone at telcordia dot com
Description:
------------
php 4.3.2 fails to compile using gcc on Sun SPARC Solaris 7.
compiles ok on Solaris 8. but not Solaris 7. is there a workaround??  is this fixed in 4.3.3?? 
output follows below; tried to capture the old build commands before the error occured.. 
Warren



Actual result:
--------------
bison -y  /FREE_2.4/NMA_WEB/NMA.r131_09-13-2003/install_apache_php/php-4.3.2/ext/standard/parsedate.y
mv y.tab.c /FREE_2.4/NMA_WEB/NMA.r131_09-13-2003/install_apache_php/php-4.3.2/ext/standard/parsedate.c
/bin/sh /FREE_2.4/NMA_WEB/NMA.r131_09-13-2003/install_apache_php/php-4.3.2/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/standard/ -I/FREE_2.4/NMA_WEB/NMA.r131_09-13-2003/install_apache_php/php-4.3.2/ext/standard/ -DPHP_ATOM_INC -I/FREE_2.4/NMA_WEB/NMA.r131_09-13-2003/install_apache_php/php-4.3.2/include -I/FREE_2.4/NMA_WEB/NMA.r131_09-13-2003/install_apache_php/php-4.3.2/main -I/FREE_2.4/NMA_WEB/NMA.r131_09-13-2003/install_apache_php/php-4.3.2 -I/FREE_2.4/NMA_WEB/NMA.r131_09-13-2003/install_apache_php/php-4.3.2/Zend -I/FREE_2.4/NMA_WEB/NMA.r131_09-13-2003/install_apache_php/php-4.3.2/ext/xml/expat  -D_POSIX_PTHREAD_SEMANTICS -I/FREE_2.4/NMA_WEB/NMA.r131_09-13-2003/install_apache_php/php-4.3.2/TSRM  -g -O2  -prefer-pic -c /FREE_2.4/NMA_WEB/NMA.r131_09-13-2003/install_apache_php/php-4.3.2/ext/standard/parsedate.c -o ext/standard/parsedate.lo 
/usr/local/share/bison.simple: In function `php_gd_parse':
/usr/local/share/bison.simple:219: number of arguments doesn't match prototype
/usr/local/share/bison.simple:153: prototype declaration
/FREE_2.4/NMA_WEB/NMA.r131_09-13-2003/install_apache_php/php-4.3.2/ext/standard/parsedate.y: In function `php_parse_date':
/FREE_2.4/NMA_WEB/NMA.r131_09-13-2003/install_apache_php/php-4.3.2/ext/standard/parsedate.y:933: too many arguments to function `php_gd_parse'
*** Error code 1
make: Fatal error: Command failed for target `ext/standard/parsedate.lo'
/bin/sh /FREE_2.4/NMA_WEB/NMA.r131_09-13-2003/install_apache_php/php-4.3.2/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/standard/ -I/FREE_2.4/NMA_WEB/NMA.r131_09-13-2003/install_apache_php/php-4.3.2/ext/standard/ -DPHP_ATOM_INC -I/FREE_2.4/NMA_WEB/NMA.r131_09-13-2003/install_apache_php/php-4.3.2/include -I/FREE_2.4/NMA_WEB/NMA.r131_09-13-2003/install_apache_php/php-4.3.2/main -I/FREE_2.4/NMA_WEB/NMA.r131_09-13-2003/install_apache_php/php-4.3.2 -I/FREE_2.4/NMA_WEB/NMA.r131_09-13-2003/install_apache_php/php-4.3.2/Zend -I/FREE_2.4/NMA_WEB/NMA.r131_09-13-2003/install_apache_php/php-4.3.2/ext/xml/expat  -D_POSIX_PTHREAD_SEMANTICS -I/FREE_2.4/NMA_WEB/NMA.r131_09-13-2003/install_apache_php/php-4.3.2/TSRM  -g -O2  -prefer-pic -c /FREE_2.4/NMA_WEB/NMA.r131_09-13-2003/install_apache_php/php-4.3.2/ext/standard/parsedate.c -o ext/standard/parsedate.lo 
/usr/local/share/bison.simple: In function `php_gd_parse':
/usr/local/share/bison.simple:219: number of arguments doesn't match prototype
/usr/local/share/bison.simple:153: prototype declaration
/FREE_2.4/NMA_WEB/NMA.r131_09-13-2003/install_apache_php/php-4.3.2/ext/standard/parsedate.y: In function `php_parse_date':
/FREE_2.4/NMA_WEB/NMA.r131_09-13-2003/install_apache_php/php-4.3.2/ext/standard/parsedate.y:933: too many arguments to function `php_gd_parse'
*** Error code 1
make: Fatal error: Command failed for target `ext/standard/parsedate.lo'


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-17 10:30 UTC] jay@php.net
What versions of bison and gcc are you using? 
 
J 
 [2003-09-17 10:41 UTC] wzaccone at telcordia dot com
it also fails on Solaris 8 as well.

gcc -v
Reading specs from /usr/local.28/bin/../lib/gcc-lib/sparc-sun-solaris2.8/3.0.1/s
pecs
Configured with: ../configure --with-as=/usr/local/bin/as --with-ld=/usr/local/b
in/ld --enable-libgcj
Thread model: posix
gcc version 3.0.1
which bison
/usr/local.28/bin/bison
bison -V
GNU Bison version 1.28

             uname -a
SunOS titcher4 5.8 Generic_108528-23 sun4u sparc SUNW,Ultra-Enterprise
 [2003-09-17 11:34 UTC] jay@php.net
It compiles fine here using Solaris 8, gcc 2.95 and bison 
1.28. (This is using the latest CVS.) 
 
Can you try using 4.3.3 or the latest CVS snapshot? 
 
The gcc version might make a difference, too. I haven't 
used 3.0.1 on Solaris, though, so I can't say for certain. 
 
J 
 [2003-09-17 19:51 UTC] wzaccone at telcordia dot com
this evening, I successfully installed PHP 4.3.3 on a Solaris 8 system using gcc 3.2.2 but with *NO Bison* installed on the system.. we are planning to run the 4.3.3 install tonight on a system with Bison installed and I will report back the results soon.
 [2003-09-18 09:42 UTC] wzaccone at telcordia dot com
good news.. php release 4.3.3 compiles successfully with bison 1,28 using gcc 3.0.1  and gcc 3.2.2 on Solaris 8. it looks the compile problem exists in 4.3.2  and was fixed in 4.3.3 based on our testing. we will use 4.3.3.
 [2003-09-18 10:30 UTC] iliaa@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Sep 12 03:01:28 2024 UTC