Operating System - HP-UX
1847702 Members
5345 Online
110265 Solutions
New Discussion

Re: PHP compilation error with HP UX 11

 
brutkiewicz
Occasional Contributor

PHP compilation error with HP UX 11

Hello,

I try to compile PHP 4.2.3

Here is my configuration:
HP-UX 11 64 bits
Php 4.2.3
Apache 1.3.27
gcc 3.2
bison 1.35
flex 2.5

The configure step ends correctly BUT the make step arise the following error:

All idea is welcome! thanks!

Making all in Zend
Making all in main
Making all in ext
Making all in ctype
Making all in mysql
Making all in libmysql
gcc -I. -I/u02/apache/php-4.2.3/ext/mysql/libmysql -I/u02/apache/php-4.2
.3/main -I/u02/apache/php-4.2.3 -I/u02/apache/php-4.2.3/Zend -I/u02/apache/php-4
.2.3/ext/mysql/libmysql -I/u02/apache/php-4.2.3/ext/xml/expat -I/u02/apache/php
-4.2.3/TSRM -g -O2 -c libmysql.c && touch libmysql.lo
In file included from global.h:353,
from libmysql.c:5:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1
7 REPLIES 7
Paul Sperry
Honored Contributor

Re: PHP compilation error with HP UX 11

Rajeev  Shukla
Honored Contributor

Re: PHP compilation error with HP UX 11

Hi There is some problem with the GCC version and also you need to install binutils. Here is the versions of applications you need to install
binutils 2.11.2
bison 1.29d
gcc 2.95.2
flex 2.5


And then compile
everything should be fine

Cheers
Rajeev
benoit Bruckert
Honored Contributor

Re: PHP compilation error with HP UX 11

Hi,
You can also disable mysql if you don't need it !
./configure --disable-mysql ....
I compiled once with gcc 3.1 And it was OK, I never did it with 3.2, but as said Rajeev, with 2.95.2, no pb !
hth
benoit

_____
"Toutes les passions, comme le nom l'indique,
viennent de ce que l'on subit au lieu de gouverner."
Emile Chartier, dit Alain, Minerve ou De la sagesse
Une application mal pansée aboutit à une usine à gaze (GHG)
brutkiewicz
Occasional Contributor

Re: PHP compilation error with HP UX 11

Hello and thanks for your answers!

Do you know where can I download the binaries of gcc 2.95.2 ?

Thank you,

Gilles.
Rajeev  Shukla
Honored Contributor

Re: PHP compilation error with HP UX 11

you can download the gcc 2.95.2 from
http://hpux.cict.fr/
site.

cheers
Rajeev
brutkiewicz
Occasional Contributor

Re: PHP compilation error with HP UX 11

Thank you again,
The progress is effective but.....
here is the new error which occurs

Any idea?

Thank you again

Making all in Zend
Making all in main
Making all in ext
Making all in ctype
Making all in mysql
Making all in libmysql
Making all in pcre
Making all in pcrelib
Making all in posix
Making all in session
Making all in standard
Making all in xml
Making all in expat
Making all in sapi
Making all in cgi
Making all in TSRM
Making all in regex
Making all in .
/bin/sh /u02/apache/php-4.2.3/libtool --silent --mode=link
gcc -I. -I/u0
2/apache/php-4.2.3/ -I/u02/apache/php-4.2.3/main -I/u02/apache/php-4.2.3
/usr/in
clude -I/u02/apache/php-4.2.3/Zend -I/u02/apache/php-4.2.3/ext/mysql/libmysq
l -I
/u02/apache/php-4.2.3/ext/xml/expat -I/u02/apache/php-4.2.3/TSRM -g -O2 -
o ph
p -export-dynamic stub.lo libphp4.la
/usr/ccs/bin/ld: /usr/include: Not a valid object file (invalid system id)
collect2: ld returned 1 exit status
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

Rajeev  Shukla
Honored Contributor

Re: PHP compilation error with HP UX 11

Could you tell me what syntax you are using to configure.
Here is what i followed and works. Before that include all installed software like gcc,bison,binutils,flex in your path. And follow these steps..
#export INFORMIXDIR=
#export PATH=
#export INFORMIXSERVER=
#gunzip apache_1.3.26.tar.gz
#tar xvf apache_1.3.26.tar
#cd apache_1.3.26
#./configure --prefix=/opt/apache
#cd ../
#gunzip php-4.1.2.tar.gz
#tar xvf php-4.1.2.tar
#cd php-4.1.2
#./configure --with-informix=/usr/informix --with-apache=../apache_1.3.26
#make
#make install
#cd ../apache_1.3.26
#./configure --prefix=/opt/apache
--activate-module=src/modules/php4/libphp4.a
#make
#make install
#cd ../php-4.1.2
#cp php.ini-dist /usr/local/lib/php.ini
edit srm.conf and add an entry
AddType application/x-httpd-php .php