PHP & Apache

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ksbrace
Forum Newbie
Posts: 2
Joined: Thu Nov 18, 2004 12:48 pm

PHP & Apache

Post by ksbrace »

Hello,
I'm in the process of setting up Apache, PHP on Redhat using Oracle. I was attempting to follow along an install tutorial from Oracle's Tech pages:
http://www.oracle.com/technology/tech/o ... linux.html
I have Apache set up properly and Oracle Application Server also up and running. I ran the .configure file w/no problems:

їcode]
./configure --with-oci8=$ORACLE_HOME \
--with-apxs=/oracle/app1/oracle/product/1.0.2/Apache/Apache/bin/apxs \
--enable-sigchild
ї/code]
But, when I run make, I get the following error:
їb]
oracleas@ias:/oracle/php-4.3.9 > make
/bin/sh /oracle/php-4.3.9/libtool --silent --preserve-dup-deps --mode=compile gcc -DSOLARIS2=260 -DMOD_SSL=206104 -DMOD_PERL -DUSE_PERL_SSI -DEAPI -DUSE_EXPAT -I/oracle/app1/oracle/product/1.0.2/Apache/Apache/include -Isapi/apache/ -I/oracle/php-4.3.9/sapi/apache/ -DPHP_ATOM_INC -I/oracle/php-4.3.9/include -I/oracle/php-4.3.9/main -I/oracle/php-4.3.9 -I/oracle/php-4.3.9/Zend -I/oracle/app1/oracle/product/1.0.2/rdbms/public -I/oracle/app1/oracle/product/1.0.2/rdbms/demo -I/oracle/php-4.3.9/ext/xml/expat -I/oracle/php-4.3.9/TSRM -g -O2 -prefer-pic -c /oracle/php-4.3.9/sapi/apache/sapi_apache.c -o sapi/apache/sapi_apache.lo
In file included from /oracle/app1/oracle/product/1.0.2/Apache/Apache/include/ap_config.h:1204,
from /oracle/app1/oracle/product/1.0.2/Apache/Apache/include/httpd.h:72,
from /oracle/php-4.3.9/sapi/apache/php_apache_http.h:22,
from /oracle/php-4.3.9/sapi/apache/sapi_apache.c:24:
/usr/include/unistd.h:735: conflicting types for `gethostname'
/oracle/app1/oracle/product/1.0.2/Apache/Apache/include/ap_config.h:190: previous declaration of `gethostname'
make: *** їsapi/apache/sapi_apache.lo] Error 1
ї/b]

I googled the error, but came across several conflicting solutions that weren't useful. Any help would be greatly appreciated. Thanks in advance!!!
Kelly
Post Reply