php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22543 after configure, making error
Submitted: 2003-03-04 22:12 UTC Modified: 2003-03-10 01:17 UTC
From: srman at bcline dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.3.1 OS: Sun Solaris 5.8
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: srman at bcline dot com
New email:
PHP Version: OS:

 

 [2003-03-04 22:12 UTC] srman at bcline dot com
/usr/local/bin> gcc -v
Reading specs from ./../lib/gcc-lib/sparc-sun-solaris2.6/3.0.3/specs
Configured with: ../configure --with-as=/usr/local/bin/as --with-ld=/usr/local/bin/ld : (reconfigured) ../configure --with-as=/usr/local/bin/as --with-ld=/usr/local/bin/ld
Thread model: posix
gcc version 3.0.3

/usr/local/bin> flex -V
flex version 2.5.4

/usr/local/bin> autoconf -V
autoconf (GNU Autoconf) 2.57
Written by David J. MacKenzie and Akim Demaille.

/usr/local/bin> make -v
GNU Make 3.80

/seagate/php/php-4.3.1> CC=gcc ./configure --with-oci8=/usr/local/oracle8/u01/app/oracle/product/8.1.7 --with-nsapi=/usr/local/server63 --enable-tack-vars=yes --enable-libgcc
....
....
Thank you for using PHP.

/seagate/php/php-4.3.1> make
/bin/sh libtool --silent --mode=compile gcc  -Iext/ctype/ -I/seagate/php/php-4.3.1/ext/ctype/ -DPHP_ATOM_INC -I/seagate/php/php-4.3.1/include -I/seagate/php/php-4.3.1/main -I/seagate/php/php-4.3.1 -I/usr/local/server63/plugins/include -I/seagate/php/php-4.3.1/Zend -I/usr/local/oracle8/u01/app/oracle/product/8.1.7/rdbms/public -I/usr/local/oracle8/u01/app/oracle/product/8.1.7/rdbms/demo -I/seagate/php/php-4.3.1/ext/xml/expat  -D_POSIX_PTHREAD_SEMANTICS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/seagate/php/php-4.3.1/TSRM -DTHREAD=1  -g -O2 -pthreads -DZTS  -prefer-pic -c /seagate/php/php-4.3.1/ext/ctype/ctype.c -o ext/ctype/ctype.lo
In file included from /seagate/php/php-4.3.1/main/php_streams.h:28,
                 from /seagate/php/php-4.3.1/main/php.h:354,
                 from /seagate/php/php-4.3.1/ext/ctype/ctype.c:23:
/usr/include/sys/stat.h:258: parse error before "blksize_t"
/usr/include/sys/stat.h:262: parse error before '}' token
/usr/include/sys/stat.h:318: parse error before "blksize_t"
/usr/include/sys/stat.h:319: conflicting types for `st_blocks'
/usr/include/sys/stat.h:259: previous declaration of `st_blocks'
/usr/include/sys/stat.h:322: parse error before '}' token
In file included from /seagate/php/php-4.3.1/main/php.h:354,
                 from /seagate/php/php-4.3.1/ext/ctype/ctype.c:23:
/seagate/php/php-4.3.1/main/php_streams.h:110: field `sb' has incomplete type
/seagate/php/php-4.3.1/main/php_streams.h:113: confused by earlier errors, bailing out
*** Error code 1
make: Fatal error: Command failed for target `ext/ctype/ctype.lo'
/seagate/php/php-4.3.1> 

I can't solve this problem!
plz tell me why it is...
srman@bcline.com

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-04 23:10 UTC] srman at bcline dot com
Thanks...
But, the problem still occurs...

/seagate/php/php4-STABLE-200303050430> make
/bin/sh /seagate/php/php4-STABLE-200303050430/libtool --silent --preserve-dup-deps --mode=compile /seagate/php/php4-STABLE-200303050430/meta_ccld  -Iext/ctype/ -I/seagate/php/php4-STABLE-200303050430/ext/ctype/ -DPHP_ATOM_INC -I/seagate/php/php4-STABLE-200303050430/include -I/seagate/php/php4-STABLE-200303050430/main -I/seagate/php/php4-STABLE-200303050430 -I/usr/local/server63/plugins/include -I/seagate/php/php4-STABLE-200303050430/Zend -I/usr/local/oracle8/u01/app/oracle/product/8.1.7/rdbms/public -I/usr/local/oracle8/u01/app/oracle/product/8.1.7/rdbms/demo -I/seagate/php/php4-STABLE-200303050430/ext/xml/expat  -D_POSIX_PTHREAD_SEMANTICS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/seagate/php/php4-STABLE-200303050430/TSRM -DTHREAD=1  -g -O2 -pthreads -DZTS  -prefer-pic -c /seagate/php/php4-STABLE-200303050430/ext/ctype/ctype.c -o ext/ctype/ctype.lo
In file included from /seagate/php/php4-STABLE-200303050430/main/php_streams.h:28,
                 from /seagate/php/php4-STABLE-200303050430/main/php.h:354,
                 from /seagate/php/php4-STABLE-200303050430/ext/ctype/ctype.c:23:
/usr/include/sys/stat.h:258: parse error before "blksize_t"
/usr/include/sys/stat.h:262: parse error before '}' token
/usr/include/sys/stat.h:318: parse error before "blksize_t"
/usr/include/sys/stat.h:319: conflicting types for `st_blocks'
/usr/include/sys/stat.h:259: previous declaration of `st_blocks'
/usr/include/sys/stat.h:322: parse error before '}' token
In file included from /seagate/php/php4-STABLE-200303050430/main/php.h:354,
                 from /seagate/php/php4-STABLE-200303050430/ext/ctype/ctype.c:23:
/seagate/php/php4-STABLE-200303050430/main/php_streams.h:110: field `sb' has incomplete type
/seagate/php/php4-STABLE-200303050430/main/php_streams.h:113: confused by earlier errors, bailing out
make: *** [ext/ctype/ctype.lo] Error 1
 [2003-03-05 06:34 UTC] sniper@php.net
You really should upgrade to GCC 3.2 series.
And don't forget to upgrade the binutils too.


 [2003-03-10 01:17 UTC] srman at bcline dot com
As your recommanded, i upgraded with gcc3.2.2
So, It works well.
Thanks a lot!!!
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 15 01:01:35 2025 UTC