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:
I have Apache set up properly and Oracle Application Server also up and running. I ran the .configure file w/no problems:
But, when I run make, I get the following error:
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
I googled the error, but came across several conflicting solutions that weren't useful. Any help would be greatly appreciated. Thanks in advance!!!
Kelly
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:
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
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
I googled the error, but came across several conflicting solutions that weren't useful. Any help would be greatly appreciated. Thanks in advance!!!
Kelly