Operating System - HP-UX
1832806 Members
2946 Online
110045 Solutions
New Discussion

Re: Trying to build apache 1.3.28 from source and getting errors?

 
Doug Stuns
Occasional Advisor

Trying to build apache 1.3.28 from source and getting errors?

Following procedures to build Apache from source and getting the following errors?

svr240x3:root:local/src/apache_1.3.28 >make
===> src
===> src/regex
sh ./mkh -p regcomp.c >regcomp.ih
gcc -I. -I../os/unix -I../include -DHPUX11 -DUSE_HSREGEX `../apaci` -DPOSIX_MISTAKE -c regcomp.c
sh ./mkh -p engine.c >engine.ih
gcc -I. -I../os/unix -I../include -DHPUX11 -DUSE_HSREGEX `../apaci` -DPOSIX_MISTAKE -c regexec.c
gcc -I. -I../os/unix -I../include -DHPUX11 -DUSE_HSREGEX `../apaci` -DPOSIX_MISTAKE -c regerror.c
gcc -I. -I../os/unix -I../include -DHPUX11 -DUSE_HSREGEX `../apaci` -DPOSIX_MISTAKE -c regfree.c
rm -f libregex.a
ar cr libregex.a regcomp.o regexec.o regerror.o regfree.o
/bin/true libregex.a
<=== src/regex
===> src/os/unix
gcc -c -I../../os/unix -I../../include -DHPUX11 -DUSE_HSREGEX `../../apaci` os.c
In file included from ../../include/ap_config.h:1135,
from os.c:6:
/usr/include/sys/socket.h:484: syntax error before "sendfile"
/usr/include/sys/socket.h:485: syntax error before "bsize_t"
/usr/include/sys/socket.h:486: syntax error before "sendpath"
/usr/include/sys/socket.h:487: syntax error before "bsize_t"
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: Trying to build apache 1.3.28 from source and getting errors?

Okay, I love playing with compilers and stuff.

But not when HP has a perfectly good depot laying around.

Info:
http://www.hp.com/products1/unix/webservers/apache/index.html#1

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

Its easier.

Download it, swinstall -s /tmp/depot_name \*

You're done.

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
benoit Bruckert
Honored Contributor

Re: Trying to build apache 1.3.28 from source and getting errors?

Hi,
I compiled many times Apache on HP-UX, And sometime you have to build your own than using a depot (if you want a static built with php for example).
Concerning your trouble, i never try the 1.3.28 (i'm running the 1.3.27).
But what I can see is that my socket.h doesn't seems to be the same as yours (I don't have 484 lines).
which OS do you have ?
ssize_t is defined just before sendfile and sendpath, I think it's not defined in your includes. (this one is defined as long in types.h)

what options did you used in the configure script ?

More questions than answers, but hope it help.
Benoit
Une application mal pansée aboutit à une usine à gaze (GHG)
Steven Gillard_2
Honored Contributor

Re: Trying to build apache 1.3.28 from source and getting errors?

Yeah, there is a problem with including socket.h when compiling with gcc. Many others (including myself) have had this problem.

Try getting a later version of gcc from somewhere (it may have been fixed), or for a quick workaround see my response in this thread:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xa1766e9ec5043944b067f4a83cb409b5,00.html

Regards,
Steve