php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16894 PHP4.20 & sapi_apache2.c compiling
Submitted: 2002-04-29 02:38 UTC Modified: 2002-04-29 04:14 UTC
From: frantisek dot hraska at hupro dot sk Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.2.0 OS: Solaris8 / Intel
Private report: No CVE-ID: None
 [2002-04-29 02:38 UTC] frantisek dot hraska at hupro dot sk
I had downloaded Apache 2.0.35 and PHP 4.2.0.; for configuring PHP I had used option with-apxs2. During "make" I've got following messages:
Making all in apache2filter
/bin/sh /export/home/hraskaf/php-4.2.0/libtool --silent --mode=compile gcc  -I. -I/export/home/hrasc
In file included from sapi_apache2.c:32:
/usr/apache/include/ap_config.h:1266: warning: `XtOffsetOf' redefined
/export/home/hraskaf/php-4.2.0/main/php.h:346: warning: this is the location of the previous definin
In file included from /usr/apache2/include/util_filter.h:61,
                 from sapi_apache2.c:33:
/usr/apache2/include/httpd.h:1423: conflicting types for `ap_os_is_path_absolute'
/usr/apache/include/os-inline.c:29: previous declaration of `ap_os_is_path_absolute'
In file included from sapi_apache2.c:35:
/usr/apache/include/http_config.h:154: parse error before `configfile_t'
/usr/apache/include/http_config.h:154: warning: no semicolon at end of struct or union
/usr/apache/include/http_config.h:156: warning: data definition has no type or storage class
/usr/apache/include/http_config.h:175: parse error before `}'
/usr/apache/include/http_config.h:175: warning: data definition has no type or storage class
/usr/apache/include/http_config.h:224: parse error before `pool'
/usr/apache/include/http_config.h:225: parse error before `*'
/usr/apache/include/http_config.h:226: parse error before `*'
/usr/apache/include/http_config.h:227: parse error before `*'
/usr/apache/include/http_config.h:228: parse error before `*'
/usr/apache/include/http_config.h:274: parse error before `pool'
/usr/apache/include/http_config.h:275: parse error before `pool'
/usr/apache/include/http_config.h:332: parse error before `*'
/usr/apache/include/http_config.h:371: parse error before `*'
/usr/apache/include/http_config.h:372: parse error before `*'
/usr/apache/include/http_config.h:373: parse error before `*'
/usr/apache/include/http_config.h:374: parse error before `*'
/usr/apache/include/http_config.h:381: parse error before `*'
/usr/apache/include/http_config.h:395: parse error before `*'
In file included from sapi_apache2.c:37:
/usr/apache/include/http_core.h:131: parse error before `*'
/usr/apache/include/http_core.h:153: parse error before `*'
/usr/apache/include/http_core.h:153: warning: data definition has no type or storage class
In file included from sapi_apache2.c:38:
/usr/apache/include/http_protocol.h:137: parse error before `*'
/usr/apache/include/http_protocol.h:138: parse error before `*'
In file included from sapi_apache2.c:39:
/usr/apache/include/http_log.h:107: parse error before `pool'
/usr/apache/include/http_log.h:125: parse error before `*'
/usr/apache/include/http_log.h:138: parse error before `pool'
/usr/apache/include/http_log.h:138: warning: no semicolon at end of struct or union
/usr/apache/include/http_log.h:146: parse error before `}'
/usr/apache/include/http_log.h:146: warning: data definition has no type or storage class
/usr/apache/include/http_log.h:148: parse error before `*'
/usr/apache/include/http_log.h:148: parse error before `*'
/usr/apache/include/http_log.h:148: warning: data definition has no type or storage class
/usr/apache/include/http_log.h:149: parse error before `*'
In file included from sapi_apache2.c:41:
/usr/apache/include/util_script.h:73: parse error before `*'
/usr/apache/include/util_script.h:78: parse error before `BUFF'
/usr/apache/include/util_script.h:84: parse error before `child_info'
sapi_apache2.c: In function `php_apache_sapi_log_message':
sapi_apache2.c:215: `APLOG_STARTUP' undeclared (first use in this function)
sapi_apache2.c:215: (Each undeclared identifier is reported only once
sapi_apache2.c:215: for each function it appears in.)
sapi_apache2.c:220: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
sapi_apache2.c: In function `php_input_filter':
sapi_apache2.c:278: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
sapi_apache2.c: In function `php_output_filter':
sapi_apache2.c:358: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
sapi_apache2.c: In function `php_add_filter':
sapi_apache2.c:460: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
sapi_apache2.c: In function `php_register_hook':
sapi_apache2.c:514: `APR_HOOK_MIDDLE' undeclared (first use in this function)
sapi_apache2.c: At top level:
sapi_apache2.c:522: `STANDARD20_MODULE_STUFF' undeclared here (not in a function)
sapi_apache2.c:522: initializer element is not constant
sapi_apache2.c:522: (near initialization for `php4_module.version')
sapi_apache2.c:523: warning: initialization makes integer from pointer without a cast
sapi_apache2.c:524: warning: initialization makes integer from pointer without a cast
sapi_apache2.c:527: warning: initialization from incompatible pointer type
sapi_apache2.c:529: warning: initialization makes integer from pointer without a cast
*** Error code 1
make: Fatal error: Command failed for target `sapi_apache2.lo'


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-29 02:59 UTC] frantisek dot hraska at hupro dot sk
I had used with-apxs and with-apxs2 TOGETHER; using only with-apxs2 the error didn't occured.
 [2002-04-29 04:14 UTC] mfischer@php.net
Right, you should only use one at a time.c
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 11:01:30 2024 UTC