LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-04-2004, 04:53 PM   #1
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 351

Rep: Reputation: 31
Question Apache+PHP


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
how can i fix this??? I didnt find a solution

php-4.3.9
Apache 2.0.52
 
Old 11-05-2004, 01:11 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Was there nothing above that? I think the real error must have been before that.
 
Old 11-05-2004, 06:26 PM   #3
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 351

Original Poster
Rep: Reputation: 31
here are all the erros:

Code:
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

Last edited by JJX; 11-05-2004 at 06:29 PM.
 
Old 11-05-2004, 06:51 PM   #4
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
You're trying to compile Apache2 module using apxs for Apache1
I don't know how you installed Apache2 but you need to point apxs2 to the right file.
 
Old 11-06-2004, 12:49 AM   #5
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 351

Original Poster
Rep: Reputation: 31
I installed apache2 from deb pack.
I installed apache-dev for apxs

I just found "libapache2-mod-php4"

thx for the help.
btw, do you know in which package is apxs? I cant find apxs anywhere
 
Old 04-17-2007, 10:00 PM   #6
yazhou
LQ Newbie
 
Registered: Apr 2007
Posts: 1

Rep: Reputation: 0
check $ sudo yum list "secureweb*"

for the apxs stuff.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache 2, PHP 5, SuSE 9.2 - cannot run php files dickohead Linux - Networking 6 06-28-2006 10:25 AM
php apache or php cgi - php learner rblampain Linux - Security 3 12-17-2004 11:10 PM
slackware, apache and PHP from .tgz - problems with PHP szymon Slackware 2 09-06-2004 04:57 PM
reinstalled apache, php, still no php support SuSE 8.2 hindenbergbaby Linux - Software 1 10-14-2003 01:42 PM
php-nuke with apache php mysql c0c0deuz Linux - Software 0 03-30-2003 06:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration