php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40592 undeclared constant causes build failure. bug not present in v5.2.0
Submitted: 2007-02-22 15:33 UTC Modified: 2007-02-23 03:18 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: fluor_druid at hotmail dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5.2.1 OS: OpenBSD 4.0 stable
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: fluor_druid at hotmail dot com
New email:
PHP Version: OS:

 

 [2007-02-22 15:33 UTC] fluor_druid at hotmail dot com
Description:
------------
I'm no wiz with this, so this output is the best I can 
supply to give you guys a hint of what's going on when I do 
make after configure. it was configured with only --
prefix=..., the exact same way I configured and compiled 
version 5.2.0 on the same OS just some weeks earlier - no 
changes has been made to my system.

/bin/sh /usr/opt/php-5.2.1/libtool --silent --preserve-dup-
deps --mode=compile gcc  -Iext/posix/ -I/usr/opt/php-5.2.1/
ext/posix/ -DPHP_ATOM_INC -I/usr/opt/php-5.2.1/include -I/
usr/opt/php-5.2.1/main -I/usr/opt/php-5.2.1 -I/usr/local/
include/libxml2 -I/usr/opt/php-5.2.1/ext/date/lib -I/usr/
local/include -I/usr/opt/php-5.2.1/TSRM -I/usr/opt/
php-5.2.1/Zend    -I/usr/local/include -g -O2  -c /usr/opt/
php-5.2.1/ext/posix/posix.c -o ext/posix/posix.lo
/usr/opt/php-5.2.1/ext/posix/posix.c: In function 
`zif_posix_getgrgid':
/usr/opt/php-5.2.1/ext/posix/posix.c:889: error: 
`_SC_GETGR_R_SIZE_MAX' undeclared (first use in this 
function)
/usr/opt/php-5.2.1/ext/posix/posix.c:889: error: (Each 
undeclared identifier is reported only once
/usr/opt/php-5.2.1/ext/posix/posix.c:889: error: for each 
function it appears in.)
*** Error code 1


Expected result:
----------------
That the package would compile without problems, as the 
earlier 5.2.0 version did with identical configuration and 
same OS.

Actual result:
--------------
Failure as described above.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-22 15:37 UTC] fluor_druid at hotmail dot com
Description:
------------
I'm no wiz with this, so this output is the best I can 
supply to give you guys a hint of what's going on when I do 
make after configure. it was configured with only --
prefix=somepath, the exact same way I configured and 
compiled 
version 5.2.0 on the same system just some weeks earlier - 
no 
changes has been made to my system since i built 5.2.0.
I suspect this problem is due OpenBSD not being 100% POSIX 
compliant.

--- snip ---
/bin/sh /usr/opt/php-5.2.1/libtool --silent --preserve-dup-
deps --mode=compile gcc  -Iext/posix/ -I/usr/opt/php-5.2.1/
ext/posix/ -DPHP_ATOM_INC -I/usr/opt/php-5.2.1/include -I/
usr/opt/php-5.2.1/main -I/usr/opt/php-5.2.1 -I/usr/local/
include/libxml2 -I/usr/opt/php-5.2.1/ext/date/lib -I/usr/
local/include -I/usr/opt/php-5.2.1/TSRM -I/usr/opt/
php-5.2.1/Zend    -I/usr/local/include -g -O2  -c /usr/opt/
php-5.2.1/ext/posix/posix.c -o ext/posix/posix.lo
/usr/opt/php-5.2.1/ext/posix/posix.c: In function 
`zif_posix_getgrgid':
/usr/opt/php-5.2.1/ext/posix/posix.c:889: error: 
`_SC_GETGR_R_SIZE_MAX' undeclared (first use in this 
function)
/usr/opt/php-5.2.1/ext/posix/posix.c:889: error: (Each 
undeclared identifier is reported only once
/usr/opt/php-5.2.1/ext/posix/posix.c:889: error: for each 
function it appears in.)
*** Error code 1

Expected result:
----------------
That the package would compile without problems, as the 
earlier 5.2.0 version did with identical configuration and 
same OS.

Actual result:
--------------
Failure as described above.
 [2007-02-22 15:50 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip


 [2007-02-23 03:18 UTC] fluor_druid at hotmail dot com
Builds perfectly. Thanks.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 28 15:00:03 2025 UTC