Sponsored Content
Top Forums Web Development apache2 & two php versions, how to use specific version Post 302310872 by thegeek on Monday 27th of April 2009 09:12:17 AM
Old 04-27-2009
I still face the same error, i downloaded the source from php.net.

1. Source Extracted:
I extracted the source fresh from the tar ball.

2. configure
configured it as,
Code:
./configure --with-apxs2=/usr/bin/apxs

3. make
while executing make, the following is the last part of the error.

Code:
/bin/sh /root/sathiya/php-5.2.9/libtool --silent --preserve-dup-deps --mode=compile /root/sathiya/php-5.2.9/meta_ccld  -IZend/ -I/root/sathiya/php-5.2.9/Zend/ -DPHP_ATOM_INC -I/root/sathiya/php-5.2.9/include -I/root/sathiya/php-5.2.9/main -I/root/sathiya/php-5.2.9 -I/usr/include/libxml2 -I/root/sathiya/php-5.2.9/ext/date/lib -I/root/sathiya/php-5.2.9/TSRM -I/root/sathiya/php-5.2.9/Zend  -D_REENTRANT  -I/usr/include -g -O2 -pthread -DZTS  -prefer-non-pic -c /root/sathiya/php-5.2.9/Zend/zend_object_handlers.c -o Zend/zend_object_handlers.lo
/bin/sh /root/sathiya/php-5.2.9/libtool --silent --preserve-dup-deps --mode=compile /root/sathiya/php-5.2.9/meta_ccld  -IZend/ -I/root/sathiya/php-5.2.9/Zend/ -DPHP_ATOM_INC -I/root/sathiya/php-5.2.9/include -I/root/sathiya/php-5.2.9/main -I/root/sathiya/php-5.2.9 -I/usr/include/libxml2 -I/root/sathiya/php-5.2.9/ext/date/lib -I/root/sathiya/php-5.2.9/TSRM -I/root/sathiya/php-5.2.9/Zend  -D_REENTRANT  -I/usr/include -g -O2 -pthread -DZTS  -prefer-non-pic -c /root/sathiya/php-5.2.9/Zend/zend_objects_API.c -o Zend/zend_objects_API.lo
/bin/sh /root/sathiya/php-5.2.9/libtool --silent --preserve-dup-deps --mode=compile /root/sathiya/php-5.2.9/meta_ccld  -IZend/ -I/root/sathiya/php-5.2.9/Zend/ -DPHP_ATOM_INC -I/root/sathiya/php-5.2.9/include -I/root/sathiya/php-5.2.9/main -I/root/sathiya/php-5.2.9 -I/usr/include/libxml2 -I/root/sathiya/php-5.2.9/ext/date/lib -I/root/sathiya/php-5.2.9/TSRM -I/root/sathiya/php-5.2.9/Zend  -D_REENTRANT  -I/usr/include -g -O2 -pthread -DZTS  -prefer-non-pic -c /root/sathiya/php-5.2.9/Zend/zend_default_classes.c -o Zend/zend_default_classes.lo
/bin/sh /root/sathiya/php-5.2.9/libtool --silent --preserve-dup-deps --mode=compile /root/sathiya/php-5.2.9/meta_ccld  -IZend/ -I/root/sathiya/php-5.2.9/Zend/ -DPHP_ATOM_INC -I/root/sathiya/php-5.2.9/include -I/root/sathiya/php-5.2.9/main -I/root/sathiya/php-5.2.9 -I/usr/include/libxml2 -I/root/sathiya/php-5.2.9/ext/date/lib -I/root/sathiya/php-5.2.9/TSRM -I/root/sathiya/php-5.2.9/Zend  -D_REENTRANT  -I/usr/include -g -O2 -pthread -DZTS  -prefer-non-pic -c /root/sathiya/php-5.2.9/Zend/zend_execute.c -o Zend/zend_execute.lo
/bin/sh /root/sathiya/php-5.2.9/libtool --silent --preserve-dup-deps --mode=compile /root/sathiya/php-5.2.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/sathiya/php-5.2.9/sapi/apache2handler/ -DPHP_ATOM_INC -I/root/sathiya/php-5.2.9/include -I/root/sathiya/php-5.2.9/main -I/root/sathiya/php-5.2.9 -I/usr/include/libxml2 -I/root/sathiya/php-5.2.9/ext/date/lib -I/root/sathiya/php-5.2.9/TSRM -I/root/sathiya/php-5.2.9/Zend  -D_REENTRANT  -I/usr/include -g -O2 -pthread -DZTS  -prefer-non-pic -c /root/sathiya/php-5.2.9/sapi/apache2handler/mod_php5.c -o sapi/apache2handler/mod_php5.lo
In file included from /root/sathiya/php-5.2.9/sapi/apache2handler/mod_php5.c:26:
/root/sathiya/php-5.2.9/sapi/apache2handler/php_apache.h:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'php5_module'
/root/sathiya/php-5.2.9/sapi/apache2handler/php_apache.h:38: error: expected specifier-qualifier-list before 'apr_bucket_brigade'
/root/sathiya/php-5.2.9/sapi/apache2handler/php_apache.h:51: error: expected ')' before '*' token
/root/sathiya/php-5.2.9/sapi/apache2handler/php_apache.h:52: error: expected ')' before '*' token
/root/sathiya/php-5.2.9/sapi/apache2handler/php_apache.h:56: error: expected ')' before '*' token
/root/sathiya/php-5.2.9/sapi/apache2handler/mod_php5.c:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'module'
make: *** [sapi/apache2handler/mod_php5.lo] Error 1

 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

What is the difference : SunOS & Solaris Version.

Sorry I think someone already pointed out this but I couldn't find it. Please tell me what is the difference between SunOS Version and Solaris Version. What is the purpose of maintaining these two things ? Thanks (2 Replies)
Discussion started by: champion
2 Replies

2. Shell Programming and Scripting

Awk: Version && nextfile

How can I find which version of Awk is installed? OpSystem is HPUX 11.x I am getting an error when trying to use the keyword nextfile and I dont know why! (Well, I can only assume that I have am using a version of Awk that does not support nextfile. However, according to O'Reilly, nextfile is... (3 Replies)
Discussion started by: google
3 Replies

3. SCO

SCO & Informix SE version 7

hi, I need to download Informix SE version 7 for SCO but i could'nt find the link. please if someone can send me the link. thinks. (1 Reply)
Discussion started by: whisper
1 Replies

4. Shell Programming and Scripting

PHP read large string & split in multidimensional arrays & assign fieldnames & write into MYSQL

Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP. I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
Discussion started by: lowmaster
0 Replies

5. UNIX for Dummies Questions & Answers

How to compare 2 files & get specific value & replace it in other file.

Hiiii Friends I have 2 files with huge data. I want to compare this 2 files & if they hav same set of vales in specific rows & columns i need to get that value from one file & replace it in other. For example: I have few set data of both files here: a.dat: PDE-W 2009 12 16 5 29 11.11 ... (10 Replies)
Discussion started by: reva
10 Replies

6. AIX

Does anyone know the version of make on AIX 5.1 & 5.3?

Could you tell me the version of default make on AIX 5.1 & 5.3? (2 Replies)
Discussion started by: redraiment
2 Replies

7. Programming

pythonqt scriptint & orting to lower version

I am facing some problems in deploying my application for lower version of qt. Basically i want to generate scripts for my application and I have chosen pythonqt for this purpose. Pythonqt has the problem with lower version of Qt (Qt 4.5.2) and also with Higher version of Qt (Qt 4.7). So I... (1 Reply)
Discussion started by: sujandasmahapat
1 Replies

8. Solaris

Please Help me about php&apache2 onSol10

Ok. I'm have Apache2 build on Solaris10 release 10/9 and I installed Mysql that could work. but I install php5 by pkgadd this packet install in /usr/local/php and i edit httpd.conf Insert "LoadModule php5_module libexec/libphp5.so" after edited httpd.conf so i restart httpd by... (1 Reply)
Discussion started by: infjustice
1 Replies

9. Web Development

php showing 2 versions

Fedora core 5 upgraded PHP php -v PHP 5.3.8 (cli) (built: Sep 30 2011 05:55:57) Copyright (c) 1997-2011 The PHP Group but if I also created a <?php phpinfo() ?> doc and it reports as 5.1.6 still something missing somewhere? (1 Reply)
Discussion started by: ippy98
1 Replies
All times are GMT -4. The time now is 08:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy