php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28558 Compile error
Submitted: 2004-05-28 16:00 UTC Modified: 2004-07-31 01:00 UTC
Votes:4
Avg. Score:4.5 ± 0.9
Reproduced:4 of 4 (100.0%)
Same Version:3 (75.0%)
Same OS:1 (25.0%)
From: j dot j dot d dot e dot lammerts at vanlanschot dot com Assigned:
Status: No Feedback Package: Apache2 related
PHP Version: 4.3.6 OS: AIX 5.1 ML4
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: j dot j dot d dot e dot lammerts at vanlanschot dot com
New email:
PHP Version: OS:

 

 [2004-05-28 16:00 UTC] j dot j dot d dot e dot lammerts at vanlanschot dot com
Description:
------------
Hi,

Trying to compile PHP against IBM HTTPServer 2.0.47 I get an error compiling sapi_apache.c :

        /bin/sh /home/USTJLA/php4-STABLE-200405180830/libtool --silent --preserve-dup-deps
 --mode=compile gcc  -I/usr/IBMIHS/include -Isapi/apache/ -I/home/USTJLA/php4-STABLE-20040
5180830/sapi/apache/ -DPHP_ATOM_INC -I/home/USTJLA/php4-STABLE-200405180830/include -I/hom
e/USTJLA/php4-STABLE-200405180830/main -I/home/USTJLA/php4-STABLE-200405180830 -I/home/UST
JLA/php4-STABLE-200405180830/Zend -I/usr/local/include -I/usr/opt/mysql/include -I/home/US
TJLA/php4-STABLE-200405180830/ext/xml/expat  -I/home/USTJLA/php4-STABLE-200405180830/TSRM 
 -g -O2  -prefer-pic -c /home/USTJLA/php4-STABLE-200405180830/sapi/apache/sapi_apache.c -o
 sapi/apache/sapi_apache.lo 
/home/USTJLA/php4-STABLE-200405180830/sapi/apache/sapi_apache.c: In function `apache_php_m
odule_main':
/home/USTJLA/php4-STABLE-200405180830/sapi/apache/sapi_apache.c:45: `NOT_FOUND' undeclared
 (first use in this function)
/home/USTJLA/php4-STABLE-200405180830/sapi/apache/sapi_apache.c:45: (Each undeclared ident
ifier is reported only once
/home/USTJLA/php4-STABLE-200405180830/sapi/apache/sapi_apache.c:45: for each function it a
ppears in.)
make: 1254-004 The error code from the last command is 1.


Does this ring a bell, somewhere ?

Thanks


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-05-28 16:10 UTC] iliaa@php.net
 IBM HTTPServer 2.0.47 sounds like Apache 2 not Apache 1 
which is what you are compiling php sapi for. Try using 
--with-apxs2 
 [2004-05-28 16:56 UTC] j dot j dot d dot e dot lammerts at vanlanschot dot com
You are correct IHS 2.0.47 is Apache 2.0.47.

When I try configuring with --with-apxs2 I get :

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking for member fd in BUFF *... no
checking for mod_charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS... expr: non-numeric a
rgument
configure: error: You have enabled Apache 2 support while your server is Apache 1.3.  Plea
se use the appropiate switch --with-apxs (without the 2)

Somehow the configurescript seems to think that I'm using 1.3, which I'm not.....
 [2004-07-08 12:58 UTC] sniper@php.net
What does 'httpd -v' output ? 

 [2004-07-08 15:17 UTC] j dot j dot d dot e dot lammerts at vanlanschot dot com
Hello Sniper,

The output of httpd -v is :

Server version: IBM_HTTP_Server/2.0.42.2-PQ85834 Apache/2.0.47
Server built:   Mar 31 2004 18:11:05

Hope this helps..
 [2004-07-09 10:35 UTC] laalit_seth at hotpop dot com
Hi,
I m facing the same problem on HP-UX 11.11 my httpd  -v results in 

# ./httpd -v
Server version: HP-UX_Apache-based_Web_Server/2.0.48
Server built:   Nov  5 2003 03:42:46

i m using configuring it as

./configure --enable-libgcc --with-apxs2=/opt/hpws/apache/bin/apxs --with-oracle=/opt/oracle1/product/8.1.7 --with-oci8=/opt/oracle1/product/8.1.7

fails in make stating
/opt/apal3/lib/PHP/php-4.3.4/sapi/apache/sapi_apache.c: In function `apache_php_module_main':
/opt/apal3/lib/PHP/php-4.3.4/sapi/apache/sapi_apache.c:45: error: `NOT_FOUND' undeclared (first use in this function)
/opt/apal3/lib/PHP/php-4.3.4/sapi/apache/sapi_apache.c:45: error: (Each undeclared identifier is reported only once
/opt/apal3/lib/PHP/php-4.3.4/sapi/apache/sapi_apache.c:45: error: for each function it appears in.)
gmake: *** [sapi/apache/sapi_apache.lo] Error 1

changing to apxs2 in above configure results in 
checking for Apache 2.0 handler-module support via DSO through APXS... expr: An integer value was expected.

configure: error: You have enabled Apache 2 support while your server is Apache 1.3.  Please use the appropiate switch --with-apxs (without the 2)

How can i resolve it. Is this resolved in 4.3.7 version.

Many Thanks
 [2004-07-22 18:03 UTC] StanislavB at training dot ru
Hi,

I have same problem on Redhat 7.3 and Apache 1.3.7.

Problem appears as described when I build PHP 4.38 or 5.0
 [2004-07-23 11:02 UTC] tony2001@php.net
Stanislav, try to upgrade Apache first.
1.3.7 is _VERY_ old version.
And don't forget to install apache-devel package.
 [2004-07-31 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2009-09-25 20:34 UTC] clyde_britton at yahoo dot com
Fixed this issue by sourcing the IHS environment variables --> 
   ". /usr/IBM/HTTPServer/bin/envvar"
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 13:01:27 2024 UTC