You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Roger Williams <ro...@roger.jp> on 2002/04/10 01:27:12 UTC

Apache 2.0.35 and php 4.1.2

Hello,
  Im trying to compile php 4.1.2 as a dso for apache 2.0.35 on freebsd 4.5
stable and get the error below.  Someone said to use apxs2, but i do not see
it on my system.  Can anyone point me in a direction to resolve this
issue...please.

Thanks
Roger

<snip>
/bin/sh /usr/local/php-4.1.2/libtool --silent --mode=compile
gcc  -I. -I/usr/local/php-4.1.2/sapi/apache -I/usr/local/php-4.1.2/main -I/u
sr/local/php-4.1.2 -I/var/www/include -I/usr/local/php-4.1.2/Zend -I/usr/loc
al/mysql/include -I/usr/local/php-4.1.2/ext/xml/expat  -I/usr/local/php-4.1.
2/TSRM -g -O2 -prefer-pic  -c sapi_apache.c
sapi_apache.c: In function `apache_php_module_main':
sapi_apache.c:81: `NOT_FOUND' undeclared (first use in this function)
sapi_apache.c:81: (Each undeclared identifier is reported only once
sapi_apache.c:81: for each function it appears in.)
*** Error code 1

Stop in /usr/local/php-4.1.2/sapi/apache.
*** Error code

</snip>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: Apache 2.0.35 and php 4.1.2

Posted by Roger Williams <ro...@roger.jp>.
I tried your suggestions and i got a little further but still crashed.  I
get the following error.  HAs any one seen it?

Thanks,
Roger

<snip>
Making all in apache2filter
/bin/sh /usr/local/php-4.1.2/libtool --silent --mode=compile
/usr/local/php-4.1.2/meta_ccld  -I. -I/usr/local/php-4.1.2/sapi/apache2filte
r -I/usr/local/php-4.1.2/main -I/usr/local/php-4.1.2 -I/var/www/include -I/u
sr/local/php-4.1.2/Zend -I/usr/local/mysql/include -I/usr/local/php-4.1.2/ex
t/xml/expat  -D_REENTRANT -D_THREAD_SAFE -I/usr/local/php-4.1.2/TSRM -g -O2 
-pthread -DZTS -prefer-pic  -c sapi_apache2.c
sapi_apache2.c: In function `php_apache_sapi_ub_write':
sapi_apache2.c:58: too few arguments to function `apr_brigade_create'
sapi_apache2.c:61: too few arguments to function
`apr_bucket_transient_create'
sapi_apache2.c: In function `php_apache_sapi_register_variables':
sapi_apache2.c:148: warning: initialization discards qualifiers from pointer
target type
sapi_apache2.c: In function `php_apache_sapi_flush':
sapi_apache2.c:171: too few arguments to function `apr_brigade_create'
sapi_apache2.c:172: too few arguments to function `apr_bucket_flush_create'
sapi_apache2.c: In function `php_input_filter':
sapi_apache2.c:245: too few arguments to function `apr_brigade_create'
sapi_apache2.c:247: incompatible type for argument 4 of `ap_get_brigade'
sapi_apache2.c:247: too few arguments to function `ap_get_brigade'
sapi_apache2.c: In function `php_output_filter':
sapi_apache2.c:311: too few arguments to function `apr_brigade_create'
sapi_apache2.c:366: too few arguments to function
`apr_bucket_transient_create'
sapi_apache2.c:375: too few arguments to function `apr_bucket_eos_create'
sapi_apache2.c: In function `php_register_hook':
sapi_apache2.c:407: `AP_FTYPE_CONTENT' undeclared (first use in this
function)
sapi_apache2.c:407: (Each undeclared identifier is reported only once
sapi_apache2.c:407: for each function it appears in.)
sapi_apache2.c:408: warning: passing arg 2 of `ap_register_input_filter'
from incompatible pointer type
*** Error code 1

Stop in /usr/local/php-4.1.2/sapi/apache2filter.
*** Error code 1

Stop in /usr/local/php-4.1.2/sapi/apache2filter.
*** Error code 1

Stop in /usr/local/php-4.1.2/sapi.
*** Error code 1
</snip>

-----Original Message-----
From: Richard Pyne [mailto:rpyne@kinfolk.org]
Sent: Tuesday, April 09, 2002 7:37 PM
To: users@httpd.apache.org
Subject: Re: Apache 2.0.35 and php 4.1.2


I have sucessfully built PHP for Apache 2  on Linux using

./configure  --prefix=/usr/local/php4.1.2
\--with-axps2=/usr/local/apache2/bin/apxs --with-psql --with-mysql
make
make install

Apache was built before with

./configure  --enable-ssl --with-ssl=/usr/local/openssl --enable-info \
--enable-so --enable-usertrack --prefix=/usr/local/apache2 --enable-rewrite
make
make install

The builds run with no errors. I believe what you may be missing is the
--enable-so on the Apache configuration.

But when I add (as described in php-4.1.2/sapi/apache2filter/README)

<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>

to my httpd.conf file, Apache dies on startup with this message in the
error_log:

[alert] Child 27723 returned a Fatal error... Apache is exiting!

Commenting out the <Files *.php> section allows everything to run okay
(except PHP stuff).

--Richard

On Tuesday 09 April 2002 05:27 pm, you wrote:
> Hello,
>   Im trying to compile php 4.1.2 as a dso for apache 2.0.35 on freebsd 4.5
> stable and get the error below.  Someone said to use apxs2, but i do not
> see it on my system.  Can anyone point me in a direction to resolve this
> issue...please.
>
> Thanks
> Roger
>
> <snip>
> /bin/sh /usr/local/php-4.1.2/libtool --silent --mode=compile
> gcc  -I. -I/usr/local/php-4.1.2/sapi/apache -I/usr/local/php-4.1.2/main
> -I/u sr/local/php-4.1.2 -I/var/www/include -I/usr/local/php-4.1.2/Zend
> -I/usr/loc al/mysql/include -I/usr/local/php-4.1.2/ext/xml/expat
> -I/usr/local/php-4.1. 2/TSRM -g -O2 -prefer-pic  -c sapi_apache.c
> sapi_apache.c: In function `apache_php_module_main':
> sapi_apache.c:81: `NOT_FOUND' undeclared (first use in this function)
> sapi_apache.c:81: (Each undeclared identifier is reported only once
> sapi_apache.c:81: for each function it appears in.)
> *** Error code 1
>
> Stop in /usr/local/php-4.1.2/sapi/apache.
> *** Error code
>
> </snip>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org

--
Richard B. Pyne
rpyne@kinfolk.org

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: Apache 2.0.35 and php 4.1.2

Posted by Richard Pyne <rp...@kinfolk.org>.
I have sucessfully built PHP for Apache 2  on Linux using 

./configure  --prefix=/usr/local/php4.1.2 
\--with-axps2=/usr/local/apache2/bin/apxs --with-psql --with-mysql
make
make install

Apache was built before with 

./configure  --enable-ssl --with-ssl=/usr/local/openssl --enable-info \ 
--enable-so --enable-usertrack --prefix=/usr/local/apache2 --enable-rewrite
make
make install

The builds run with no errors. I believe what you may be missing is the 
--enable-so on the Apache configuration.

But when I add (as described in php-4.1.2/sapi/apache2filter/README)

<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>

to my httpd.conf file, Apache dies on startup with this message in the 
error_log:

[alert] Child 27723 returned a Fatal error... Apache is exiting!

Commenting out the <Files *.php> section allows everything to run okay 
(except PHP stuff).

--Richard

On Tuesday 09 April 2002 05:27 pm, you wrote:
> Hello,
>   Im trying to compile php 4.1.2 as a dso for apache 2.0.35 on freebsd 4.5
> stable and get the error below.  Someone said to use apxs2, but i do not
> see it on my system.  Can anyone point me in a direction to resolve this
> issue...please.
>
> Thanks
> Roger
>
> <snip>
> /bin/sh /usr/local/php-4.1.2/libtool --silent --mode=compile
> gcc  -I. -I/usr/local/php-4.1.2/sapi/apache -I/usr/local/php-4.1.2/main
> -I/u sr/local/php-4.1.2 -I/var/www/include -I/usr/local/php-4.1.2/Zend
> -I/usr/loc al/mysql/include -I/usr/local/php-4.1.2/ext/xml/expat 
> -I/usr/local/php-4.1. 2/TSRM -g -O2 -prefer-pic  -c sapi_apache.c
> sapi_apache.c: In function `apache_php_module_main':
> sapi_apache.c:81: `NOT_FOUND' undeclared (first use in this function)
> sapi_apache.c:81: (Each undeclared identifier is reported only once
> sapi_apache.c:81: for each function it appears in.)
> *** Error code 1
>
> Stop in /usr/local/php-4.1.2/sapi/apache.
> *** Error code
>
> </snip>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org

-- 
Richard B. Pyne
rpyne@kinfolk.org

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: Apache 2.0.35 and php 4.1.2

Posted by Lew Payne <le...@lppi.com>.
| Im trying to compile php 4.1.2 as a dso for apache 2.0.35
| on freebsd 4.5 stable and get the error below. 

Assuming you have the "ports" collection installed,
you should simply build everything from ports...

# Build Apache...
cd /usr/ports/www/apache13
make; make install; make clean

# Build PHP4...
cd /usr/ports/www/mod_php4
make; make install; make clean

# Here's an example of other things...
#
# Build FastCGI (if needed)
cd /usr/ports/www/mod_fastcgi
make; make install; make clean
#
# Build mod_perl (if needed)
cd /usr/ports/www/mod_perl
make; make install; make clean
#
# Build mod_gzip (if needed)
cd /usr/ports/www/mod_gzip
make; make install; make clean


Regards,
Lew Payne


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org