php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17331 Make fails trying to redefine XtOffsetOf in the SAPI module
Submitted: 2002-05-21 04:12 UTC Modified: 2002-05-22 09:15 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: steve dot miller at consultant dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.2.1 OS: Suse Linux 7.2
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: steve dot miller at consultant dot com
New email:
PHP Version: OS:

 

 [2002-05-21 04:12 UTC] steve dot miller at consultant dot com
PHP 4.2.1 and Apache 1.3.19

httpd -l returns mod_so.c in the list.

./configure --with-oci8 --with-oracle --with-apxs=/usr/local/httpd/bin

configure completes successfully.

make fails with errors in the SAPI module.

php.h tries to redefine XtOffsetOf when you are compiling with apxs.  

mentions main/php.h and also os.h and some other header files.

I will post some more information when available.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-21 05:24 UTC] derick@php.net
Setting the status to feedback until more info is available
 [2002-05-21 08:44 UTC] sniper@php.net
I doubt it's because of that _warning_. It's something else.
And this is fixed in CVS (4.3.0-dev) btw.

--Jani


 [2002-05-21 15:33 UTC] steve dot miller at highmead dot ltd dot uk
Section of make process that generates error.

Making all in sapi 
make[1]: Entering directory `/usr/local/php/sapi' 
Making all in apache 
make[2]: Entering directory `/usr/local/php/sapi/apache' 
make[3]: Entering directory `/usr/local/php/sapi/apache' 
/bin/sh /usr/local/php/libtool --silent --mode=compile gcc  -I. 
-I/usr/local/php/sapi/apache -I/usr/local/php/main 
-I/usr/local/php -I/usr/local/httpd/include 
-I/usr/local/php/Zend -I/usr/local/php/ext/mysql/libmysql 
-I/u01/oracle/product/8.1.6/rdbms/public -I/u01/oracle/product/8.1.6/rdbms/demo 
-I/u01/oracle/product/8.1.6/network/public -I/usr/local/php/ext/xml/expat  
-DLINUX=22 -DUSE_HSREGEX -I/usr/local/php/TSRM -g -O2 -prefer-pic -c sapi_apache.c 
In file included from /usr/local/php/main/httpd.h:72,
                 from sapi_apache.c:32: 
/usr/local/php/main/ap_config.h:114: os.h: No such file or directory 
In file included from /usr/local/php/main/httpd.h:72,
                 from sapi_apache.c:32: 
/usr/local/php/main/ap_config.h:1386: warning: `XtOffsetOf' redefined 
/usr/local/php/main/php.h:346: warning: this is the location of the previous definition 
make[3]: *** [sapi_apache.lo] Error 1 
make[3]: Leaving directory `/usr/local/php/sapi/apache' 
make[2]: *** [all-recursive] Error 1 
make[2]: Leaving directory `/usr/local/php/sapi/apache' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory `/usr/local/php/sapi' 
make: *** [all-recursive] Error 1 
koln:/usr/local/php #
 [2002-05-22 09:15 UTC] sniper@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.

Like I said, this is fixed in HEAD.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Oct 18 05:01:28 2024 UTC