Operating System - HP-UX
1829495 Members
1520 Online
109991 Solutions
New Discussion

Re: Compiling PHP on 11i with Netscape

 
SOLVED
Go to solution
Nick Brennan_1
Occasional Advisor

Compiling PHP on 11i with Netscape

I am trying to compile PHP 4.2.2 on 11i and enable the netscape api plugin, get an error when trying to run a gmake (the configure --with-nsapi etc works fine). Have the following installed:

binutils 2.11.2
bison 1.35
flex 2.5.4a
gcc 3.1
make 3.79.1

The gmake bombs out with the following error.

/usr/include/sys/socket.h:199: conflicting types for `socklen_t'
php.h:114: previous declaration of `socklen_t'
/usr/include/sys/socket.h:484: parse error before "sendfile"

Has anyone got any ideas what the problem is?

Thanks
Nick
/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"
gmake[2]: *** [main.lo] Error 1
4 REPLIES 4
Steven E. Protter
Exalted Contributor
Solution

Re: Compiling PHP on 11i with Netscape

Another possible solution:

http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=HPUXWSATW100101

http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B9415AA132701

PHP is included in both links above free. These are available in depot format, can be installed with swinstall.

You can install them, assuming you have prerequisites installed(it appears you do) and then customize the PHP setup after the fact.

It might be easier.

If you want to continue down your current path, I'd get the latest HP patch set install that and try again. This looks like there might be a problem with the HP insfrastructure.

swverify \* > /tmp/verify.dat

Look at the output and make sure your prerequisites are actually installed correctly, if you installed of SD-UX binaries.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Nick Brennan_1
Occasional Advisor

Re: Compiling PHP on 11i with Netscape

Thanks Steven, I'll check out the pre-req's to see if they're installed correctly.

Unfortunately the HP Apache bundle doesn't appear to come with a version of PHP that would be compatible with Netscape (makes sense really), so I'd still have to recompile PHP.

Maybe I'll just go with Apache instead! Thanks for your help.

Nick
Steven E. Protter
Exalted Contributor

Re: Compiling PHP on 11i with Netscape

No points needed. Just kibbutzing.

When I did a search at software.hp.com on PHP my links came up. That's kind of strange.

I'd go with the prerequisite check, that will spot the problem. Its just a tough detective job for you.

Good luck.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Mehdi_1
Regular Advisor

Re: Compiling PHP on 11i with Netscape

Hi Nick

I 've compiled Apache-1.3.27 with PHP-4.3 and Mysql support. The binary and source code for 11.00 and 11.20 paltforms are available from :

http://hpux.connect.org.uk/hppd/hpux/Networking/WWW/apache+php-1327.430/

I am hoping the binary for 11.00 works on 11i. I would appreciate if you or anyone else who has access to 11i test this for me please.

Thanks


Mehdi