Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to use mod_php with apache
when i compile using: "./configure --with-apxs2=/usr/bin/apxs --with-mysql --with-xml" i get this error:
Code:
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c: At top level:
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:575: error: parse error before '*' token
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c: In function `php_register_hook':
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:577: error: `APR_HOOK_MIDDLE' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c: At top level:
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:582: error: syntax error before "module"
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:582: error: conflicting types for `php4_module'
/root/php-4.3.9/sapi/apache2handler/php_apache.h:29: error: previous declaration of `php4_module'
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:583: error: `STANDARD20_MODULE_STUFF' undeclared here (not in a function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:583: error: initializer element is not constant
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:583: error: (near initialization for `php4_module.version')
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:584: warning: initialization makes integer from pointer without a cast
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:585: warning: initialization makes integer from pointer without a cast
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:588: warning: initialization from incompatible pointer type
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:590: warning: initialization makes integer from pointer without a cast
make: *** [sapi/apache2handler/sapi_apache2.lo] Error 1
T -I/root/php-4.3.9/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic -c /root/php-4.3.9/Zend/zend_execute.c -o Zend/zend_execute.lo
/bin/sh /root/php-4.3.9/libtool --silent --preserve-dup-deps --mode=compile /root/php-4.3.9/meta_ccld -DLINUX=22 -DEAPI -DTARGET="apache" -DHAVE_SET_DUMPABLE -DDB_DBM_HSEARCH=1 -DDEV_RANDOM=/dev/random -DUSE_HSREGEX -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/apache-1.3 -Isapi/apache2handler/ -I/root/php-4.3.9/sapi/apache2handler/ -DPHP_ATOM_INC -I/root/php-4.3.9/include -I/root/php-4.3.9/main -I/root/php-4.3.9 -I/root/php-4.3.9/Zend -I/root/php-4.3.9/ext/xml/expat -D_REENTRANT -I/root/php-4.3.9/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic -c /root/php-4.3.9/sapi/apache2handler/sapi_apache2.c -o sapi/apache2handler/sapi_apache2.lo
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:38:25: apr_strings.h: No such file or directory
In file included from /root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:39:
/usr/include/apache-1.3/ap_config.h:1131:1: warning: "closesocket" redefined
In file included from /root/php-4.3.9/ext/standard/fsock.h:38,
from /root/php-4.3.9/ext/standard/php_standard.h:44,
from /root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:33:
/root/php-4.3.9/main/php_network.h:32:1: warning: this is the location of the previous definition
In file included from /root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:39:
/usr/include/apache-1.3/ap_config.h:1376:1: warning: "XtOffsetOf" redefined
In file included from /root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:25:
/root/php-4.3.9/main/php.h:431:1: warning: this is the location of the previous definition
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:40:25: util_filter.h: No such file or directory
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:50:20: ap_mpm.h: No such file or directory
In file included from /root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:52:
/root/php-4.3.9/sapi/apache2handler/php_apache.h:29: error: parse error before "php4_module"
/root/php-4.3.9/sapi/apache2handler/php_apache.h:29: warning: data definition has no type or storage class
/root/php-4.3.9/sapi/apache2handler/php_apache.h:38: error: parse error before "apr_bucket_brigade"
/root/php-4.3.9/sapi/apache2handler/php_apache.h:38: warning: no semicolon at end of struct or union
/root/php-4.3.9/sapi/apache2handler/php_apache.h:47: error: parse error before '}' token
/root/php-4.3.9/sapi/apache2handler/php_apache.h:47: warning: data definition has no type or storage class
/root/php-4.3.9/sapi/apache2handler/php_apache.h:49: error: parse error before '*' token
/root/php-4.3.9/sapi/apache2handler/php_apache.h:50: error: parse error before '*' token
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c: In function `php_apache_sapi_ub_write':
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:71: error: `ctx' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:71: error: (Each undeclared identifier is reported only once
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:71: error: for each function it appears in.)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c: In function `php_apache_sapi_header_handler':
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:86: error: `ctx' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:105: warning: assignment makes pointer from integer without a cast
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c: In function `php_apache_sapi_send_headers':
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:121: error: `ctx' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c: In function `php_apache_sapi_read_post':
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:131: error: `apr_size_t' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:131: error: parse error before "len"
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:132: error: `ctx' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:134: error: `apr_bucket_brigade' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:134: error: `brigade' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:138: error: `len' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:146: error: structure has no member named `input_filters'
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:146: error: `AP_MODE_READBYTES' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:146: error: `APR_BLOCK_READ' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:146: error: `APR_SUCCESS' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:149: error: `tlen' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c: In function `php_apache_sapi_get_stat':
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:163: error: `ctx' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c: In function `php_apache_sapi_read_cookies':
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:188: error: `ctx' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:191: warning: assignment makes pointer from integer without a cast
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c: In function `php_apache_sapi_getenv':
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:200: error: `ctx' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:203: warning: assignment makes pointer from integer without a cast
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c: In function `php_apache_sapi_register_variables':
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:211: error: `ctx' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:212: error: syntax error before '*' token
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:216: error: `apr_table_entry_t' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:216: error: `elts' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:216: error: parse error before ')' token
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:216: error: `arr' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c: In function `php_apache_sapi_flush':
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:233: error: `ctx' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c: In function `php_apache_sapi_log_message':
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:259: error: `ctx' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:270: error: `APLOG_STARTUP' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c: In function `php_apache_sapi_log_message_ex':
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:279: error: `APLOG_STARTUP' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:279: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c: At top level:
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:326: error: parse error before "php_apache_server_shutdown"
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c: In function `php_apache_server_shutdown':
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:333: error: `APR_SUCCESS' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c: At top level:
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:336: error: parse error before '*' token
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c: In function `php_apache_add_version':
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:340: error: `p' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:340: error: too many arguments to function `ap_add_version_component'
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c: At top level:
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:344: error: parse error before '*' token
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:362: error: parse error before '*' token
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c: In function `php_apache_server_startup':
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:369: error: `s' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:376: error: `apr_pool_cleanup_null' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:389: error: `pconf' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c: At top level:
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:395: error: parse error before "php_server_context_cleanup"
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c: In function `php_server_context_cleanup':
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:399: error: `APR_SUCCESS' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c: At top level:
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:402: error: parse error before "php_struct"
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c: In function `php_apache_request_ctor':
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:408: error: `tsrm_ls' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:408: error: `r' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:428: warning: assignment makes pointer from integer without a cast
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:430: error: `ctx' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c: In function `php_handler':
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:445: error: `ctx' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:447: error: `apr_bucket_brigade' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:447: error: `brigade' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:448: error: `apr_bucket' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:448: error: `bucket' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:449: error: `apr_status_t' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:449: error: parse error before "rv"
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:453: error: request for member `module_index' in something not a structure or union
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:458: error: structure has no member named `protection'
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:458: error: `APR_UEXECUTE' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:474: error: structure has no member named `filetype'
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:481: error: structure has no member named `filetype'
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:481: error: `APR_DIR' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:503: warning: assignment makes pointer from integer without a cast
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:508: error: `apr_pool_cleanup_null' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:511: error: structure has no member named `bucket_alloc'
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:522: error: structure has no member named `mtime'
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:560: error: structure has no member named `bucket_alloc'
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:563: error: `rv' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:563: error: structure has no member named `output_filters'
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:564: error: `APR_SUCCESS' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c: At top level:
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:575: error: parse error before '*' token
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c: In function `php_register_hook':
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:577: error: `APR_HOOK_MIDDLE' undeclared (first use in this function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c: At top level:
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:582: error: syntax error before "module"
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:582: error: conflicting types for `php4_module'
/root/php-4.3.9/sapi/apache2handler/php_apache.h:29: error: previous declaration of `php4_module'
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:583: error: `STANDARD20_MODULE_STUFF' undeclared here (not in a function)
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:583: error: initializer element is not constant
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:583: error: (near initialization for `php4_module.version')
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:584: warning: initialization makes integer from pointer without a cast
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:585: warning: initialization makes integer from pointer without a cast
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:588: warning: initialization from incompatible pointer type
/root/php-4.3.9/sapi/apache2handler/sapi_apache2.c:590: warning: initialization makes integer from pointer without a cast
make: *** [sapi/apache2handler/sapi_apache2.lo] Error 1
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.