Solaris x86 Version 7
Latest GNU dev. tools
Apache version httpd-2_0_16
PHP verson php-4.0.4pl1

Apache configure

./configure --enable-so \
--enable-module=most \
--enable-shared=max \
--prefix=/usr/local/apache2

PHP configure (chopped down)

./configure \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-config-file path=/usr/local/apache2/conf \
--disable-debug

Error:

In file included from sapi_apache2.c:44:
php_apache.h:24: parse error before ap_bucket_brigade'
php_apache.h:24: warning: no semicolon at end of struct or union
php_apache.h:32: parse error before
}'
php_apache.h:32: warning: data definition has no type or storage class
sapi_apache2.c: In function `php_apache_sapi_ub_write':
....[chop]

and so on ..
till make back up and says good night

-pete

    a year later

    I've got the same errors with Apache 2.0.35 and PHP 4.1.2 on a SOlaris 7 system.
    That kind of errors disappeared when I stopped to use --with-apache
    option configuring PHP.
    BUT this was not the final solution beacuse I've got a new problem when I "make" PHP

    Error code 1
    make: Fatal error: Command failed for target sapi_apache.lo'
    Current working directory /cineca/usr/awww/Apache2/php-4.1.2/sapi/apache
    *** Error code 1
    make: Fatal error: Command failed for target
    all-recursive'
    Current working directory /cineca/usr/awww/Apache2/php-4.1.2/sapi/apache
    Error code 1
    make: Fatal error: Command failed for target all-recursive'
    Current working directory /cineca/usr/awww/Apache2/php-4.1.2/sapi
    *** Error code 1
    make: Fatal error: Command failed for target
    all-recursive'

    I'm still looking for a solution

      Write a Reply...