ID:               28558
 Comment by:       laalit_seth at hotpop dot com
 Reported By:      j dot j dot d dot e dot lammerts at vanlanschot dot
                   com
 Status:           Open
 Bug Type:         Apache2 related
 Operating System: AIX 5.1 ML4
 PHP Version:      4.3.6
 New Comment:

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


Previous Comments:
------------------------------------------------------------------------

[2004-07-08 15:17:42] 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-08 12:58:06] [EMAIL PROTECTED]

What does 'httpd -v' output ? 


------------------------------------------------------------------------

[2004-05-28 16:56:44] 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-05-28 16:10:35] [EMAIL PROTECTED]

 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:00:13] 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



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=28558&edit=1

Reply via email to