I am trying to make php 5.0.4 for Solaris 10 and I keep getting this error
when I run ...

 ./configure --with-mysql=/usr/local/mysql
 --with-apxs2=/usr/local/apache2/bin/apxs

.....
.....

make

.....
.....

P_ATOM_INC -I/export/home/chris/pkgs/php-5.0.4/include
-I/export/home/chris/pkgs/php-5.0.4/main -I/export/home/chris/pkgs/php-5.0.4
-I/usr/local/include/libxml2 -I/usr/local/mysql/include/mysql
-I/export/home/chris/pkgs/php-5.0.4/TSRM
-I/export/home/chris/pkgs/php-5.0.4/Zend  -D_POSIX_PTHREAD_SEMANTICS  -g -O2
  -c /export/home/chris/pkgs/php-5.0.4/sapi/apache2handler/mod_php5.c -o
sapi/apache2handler/mod_php5.lo
In file included from /usr/local/apache2/include/httpd.h:43,
                 from
       /export/home/chris/pkgs/php-5.0.4/sapi/apache2handler/php_apache.h:24,
                 from
       /export/home/chris/pkgs/php-5.0.4/sapi/apache2handler/mod_php5.c:26:
/usr/local/apache2/include/ap_config.h:26:23: apr_hooks.h: No such file or
directory
/usr/local/apache2/include/ap_config.h:27:32: apr_optional_hooks.h: No such
file or directory
In file included from
/export/home/chris/pkgs/php-5.0.4/sapi/apache2handler/php_apache.h:24,
                 from
       /export/home/chris/pkgs/php-5.0.4/sapi/apache2handler/mod_php5.c:26:
/usr/local/apache2/include/httpd.h:54:25: apr_buckets.h: No such file or
directory
/usr/local/apache2/include/httpd.h:723:21: apr_uri.h: No such file or
directory
In file included from
/export/home/chris/pkgs/php-5.0.4/sapi/apache2handler/php_apache.h:24,
                 from
       /export/home/chris/pkgs/php-5.0.4/sapi/apache2handler/mod_php5.c:26:
/usr/local/apache2/include/httpd.h:925: error: parse error before
"apr_uri_t"
/usr/local/apache2/include/httpd.h:925: warning: no semicolon at end of
struct or union
/usr/local/apache2/include/httpd.h:975: error: parse error before '}' token
/usr/local/apache2/include/httpd.h:1085: error: parse error before
"APR_RING_ENTRY"
/usr/local/apache2/include/httpd.h:1085: warning: no semicolon at end of
struct or union
/usr/local/apache2/include/httpd.h:1095: error: parse error before '*' token
/usr/local/apache2/include/httpd.h:1095: warning: data definition has no
type or storage class
/usr/local/apache2/include/httpd.h:1098: error: parse error before '}' token
/usr/local/apache2/include/httpd.h:1199: error: parse error before
"apr_bucket_brigade"
/usr/local/apache2/include/httpd.h:1199: warning: no semicolon at end of
struct or union
/usr/local/apache2/include/httpd.h:1204: error: parse error before '}' token
/usr/local/apache2/include/httpd.h:1204: warning: data definition has no
type or storage class
/usr/local/apache2/include/httpd.h:1207: error: parse error before
"apr_bucket_brigade"
/usr/local/apache2/include/httpd.h:1207: warning: no semicolon at end of
struct or union
/usr/local/apache2/include/httpd.h:1208: warning: data definition has no
type or storage class
/usr/local/apache2/include/httpd.h:1209: error: parse error before '}' token
/usr/local/apache2/include/httpd.h:1209: warning: data definition has no
type or storage class
/usr/local/apache2/include/httpd.h:1218: error: parse error before
"core_output_filter_ctx_t"
/usr/local/apache2/include/httpd.h:1218: warning: no semicolon at end of
struct or union
/usr/local/apache2/include/httpd.h:1219: warning: data definition has no
type or storage class
/usr/local/apache2/include/httpd.h:1220: error: parse error before '}' token
/usr/local/apache2/include/httpd.h:1220: warning: data definition has no
type or storage class
In file included from
/export/home/chris/pkgs/php-5.0.4/sapi/apache2handler/php_apache.h:25,
                 from
       /export/home/chris/pkgs/php-5.0.4/sapi/apache2handler/mod_php5.c:26:
/usr/local/apache2/include/http_config.h:29:23: apr_hooks.h: No such file or
directory
In file included from
/export/home/chris/pkgs/php-5.0.4/sapi/apache2handler/php_apache.h:25,
                 from
       /export/home/chris/pkgs/php-5.0.4/sapi/apache2handler/mod_php5.c:26:
/usr/local/apache2/include/http_config.h:975: error: parse error before
"int"
In file included from /usr/local/apache2/include/http_core.h:30,
                 from
       /export/home/chris/pkgs/php-5.0.4/sapi/apache2handler/php_apache.h:26,
                 from
       /export/home/chris/pkgs/php-5.0.4/sapi/apache2handler/mod_php5.c:26:
/usr/local/apr/include/apr-1/apr_hash.h:77: error: parse error before '*'
token
/usr/local/apr/include/apr-1/apr_hash.h:77: warning: data definition has no
type or storage class
/usr/local/apr/include/apr-1/apr_hash.h:85: error: parse error before '*'
token
/usr/local/apr/include/apr-1/apr_hash.h:86: warning: data definition has no
type or storage class
/usr/local/apr/include/apr-1/apr_hash.h:95: error: parse error before '*'
token
/usr/local/apr/include/apr-1/apr_hash.h:96: error: parse error before '*'
token
/usr/local/apr/include/apr-1/apr_hash.h:96: warning: data definition has no
type or storage class
/usr/local/apr/include/apr-1/apr_hash.h:106: error: parse error before '*'
token
/usr/local/apr/include/apr-1/apr_hash.h:116: error: parse error before '*'
token
/usr/local/apr/include/apr-1/apr_hash.h:147: error: parse error before
"apr_hash_t"
/usr/local/apr/include/apr-1/apr_hash.h:174: error: parse error before '*'
token
/usr/local/apr/include/apr-1/apr_hash.h:185: error: parse error before '*'
token
/usr/local/apr/include/apr-1/apr_hash.h:186: error: parse error before '*'
token
/usr/local/apr/include/apr-1/apr_hash.h:187: warning: data definition has no
type or storage class
/usr/local/apr/include/apr-1/apr_hash.h:203: error: parse error before '*'
token
/usr/local/apr/include/apr-1/apr_hash.h:204: error: parse error before '*'
token
/usr/local/apr/include/apr-1/apr_hash.h:211: error: `apr_hash_merge'
declared as function returning a function
/usr/local/apr/include/apr-1/apr_hash.h:212: error: parse error before
"const"
/usr/local/apr/include/apr-1/apr_hash.h:217: error: parse error before '*'
token
In file included from
/export/home/chris/pkgs/php-5.0.4/sapi/apache2handler/php_apache.h:26,
                 from
       /export/home/chris/pkgs/php-5.0.4/sapi/apache2handler/mod_php5.c:26:
/usr/local/apache2/include/http_core.h:31:26: apr_optional.h: No such file
or directory
In file included from /usr/local/apache2/include/http_core.h:32,
                 from
       /export/home/chris/pkgs/php-5.0.4/sapi/apache2handler/php_apache.h:26,
                 from
       /export/home/chris/pkgs/php-5.0.4/sapi/apache2handler/mod_php5.c:26:
/usr/local/apache2/include/util_filter.h:26:25: apr_buckets.h: No such file
or directory
In file included from /usr/local/apache2/include/http_core.h:32,
                 from
       /export/home/chris/pkgs/php-5.0.4/sapi/apache2handler/php_apache.h:26,
                 from
       /export/home/chris/pkgs/php-5.0.4/sapi/apache2handler/mod_php5.c:26:
/usr/local/apache2/include/util_filter.h:137: error: parse error before
"apr_bucket_brigade"
/usr/local/apache2/include/util_filter.h:139: error: parse error before
"apr_bucket_brigade"
/usr/local/apache2/include/util_filter.h:296: error: parse error before
"apr_bucket_brigade"
/usr/local/apache2/include/util_filter.h:310: error: parse error before
"apr_bucket_brigade"
/usr/local/apache2/include/util_filter.h:492: error: parse error before
"apr_bucket_brigade"
/usr/local/apache2/include/util_filter.h:503: error: parse error before '*'
token
/usr/local/apache2/include/util_filter.h:511: error: parse error before
"apr_bucket_brigade"
/usr/local/apache2/include/util_filter.h:548: error: parse error before
"apr_bucket_brigade"
/usr/local/apache2/include/util_filter.h:559: error: parse error before
"apr_bucket_brigade"
In file included from
/export/home/chris/pkgs/php-5.0.4/sapi/apache2handler/php_apache.h:26,
                 from
       /export/home/chris/pkgs/php-5.0.4/sapi/apache2handler/mod_php5.c:26:
/usr/local/apache2/include/http_core.h:633: error: parse error before
"apr_hash_t"
/usr/local/apache2/include/http_core.h:633: warning: no semicolon at end of
struct or union
/usr/local/apache2/include/http_core.h:634: warning: data definition has no
type or storage class
/usr/local/apache2/include/http_core.h:640: error: parse error before
"ap_mgmt_value"
/usr/local/apache2/include/http_core.h:640: warning: no semicolon at end of
struct or union
/usr/local/apache2/include/http_core.h:641: warning: data definition has no
type or storage class
/usr/local/apache2/include/http_core.h:662: error: parse error before "int"
/usr/local/apache2/include/http_core.h:680: error: parse error before
"ap_ident_lookup"
In file included from
/export/home/chris/pkgs/php-5.0.4/sapi/apache2handler/mod_php5.c:26:
/export/home/chris/pkgs/php-5.0.4/sapi/apache2handler/php_apache.h:38:
error: parse error before "apr_bucket_brigade"
/export/home/chris/pkgs/php-5.0.4/sapi/apache2handler/php_apache.h:38:
warning: no semicolon at end of struct or union
/export/home/chris/pkgs/php-5.0.4/sapi/apache2handler/php_apache.h:47:
error: parse error before '}' token
/export/home/chris/pkgs/php-5.0.4/sapi/apache2handler/php_apache.h:47:
warning: data definition has no type or storage class
make: *** [sapi/apache2handler/mod_php5.lo] Error 1
#


Any suggestions would be great!

Thanks,

Chris Edwards

Reply via email to