Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP & Apache

Status
Not open for further replies.

ksbrace

Programmer
May 13, 2000
501
US
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:
Code:
./configure --with-oci8=$ORACLE_HOME \
          --with-apxs=/oracle/app1/oracle/product/1.0.2/Apache/Apache/bin/apxs \
          --enable-sigchild
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top