Operating System - HP-UX
1829118 Members
1815 Online
109986 Solutions
New Discussion

Apache 2.2.3 does not compile

 
SOLVED
Go to solution

Apache 2.2.3 does not compile

Hello

I'm trying to compile Apache 2.2.3 on our machines but I get a lot of errors and the compilation fail:

/tmp/apache/httpd-2.2.3/srclib/apr/libtool --silent --mode=compile cc -g -Ae +Z +DAportable -mt -DHPUX11 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_LARGEFILE64_SOURCE -I/tmp/apache/httpd-2.2.3/srclib/pcre -I. -I/tmp/apache/httpd-2.2.3/os/unix -I/tmp/apache/httpd-2.2.3/server/mpm/prefork -I/tmp/apache/httpd-2.2.3/modules/http -I/tmp/apache/httpd-2.2.3/modules/filters -I/tmp/apache/httpd-2.2.3/modules/proxy -I/tmp/apache/httpd-2.2.3/include -I/tmp/apache/httpd-2.2.3/modules/generators -I/tmp/apache/httpd-2.2.3/modules/mappers -I/tmp/apache/httpd-2.2.3/modules/database -I/tmp/apache/httpd-2.2.3/srclib/apr/include -I/tmp/apache/httpd-2.2.3/srclib/apr-util/include -I/tmp/apache/httpd-2.2.3/srclib/apr-util/xml/expat/lib -I/tmp/apache/httpd-2.2.3/modules/proxy/../generators -I/tmp/apache/httpd-2.2.3/modules/ssl -I/tmp/apache/httpd-2.2.3/modules/dav/main -prefer-non-pic -static -c exports.c && touch exports.lo

cc: "/tmp/apache/httpd-2.2.3/include/http_config.h", line 283: error 1000: Unexpected symbol: "ap_method_list_t".
cc: "/tmp/apache/httpd-2.2.3/include/http_config.h", line 296: error 1000: Unexpected symbol: "server_rec".
[...]
cc: "/tmp/apache/httpd-2.2.3/include/http_connection.h", line 94: error 1000: Unexpected symbol: "*".
cc: panic 2017: Cannot recover from earlier errors, terminating.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.


We have all the required compilers installed:

B3394BA B.11.11.02 HP-UX Developer's Toolkit for 11.11
B3901BA B.11.11.12 HP C/ANSI C Developer's Bundle for HP-UX (S800)
B3909DB B.11.11.90 HP-UX 11.11 Fortran 90 Compiler and associated products (S800)
B3913DB C.03.65 HP aC++ Compiler (S800)

This compilation worked at least one time on one machine, then I don't understand why it fail now.

Any Idea ?

thx
9 REPLIES 9
A. Clay Stephenson
Acclaimed Contributor

Re: Apache 2.2.3 does not compile

Did you build and install all the build-time dependencies?

When you moved the source code, did you copy the tarball and run ./configure again? If not the build had not been configured for the new target environment.

Apache is typically a straighforward build.
If it ain't broke, I can fix that.

Re: Apache 2.2.3 does not compile

To be sure that my archive was not "corrupted", I downloaded it again, then I configured it:
./configure --prefix=/opt/apache

Everything was OK

After this, I just tried to compile:

make

Could it be an updated of the compiler / linker ? We did one patches update the last week:

# swlist -l product BUNDLE_V5R18
# Initializing...
# Contacting target "predev"...
#
# Target: predev:/
#

# BUNDLE_V5R18 B.11.11 Patch Bundle
BUNDLE_V5R18.PHCO_31923 1.0 libc cumulative header file patch
BUNDLE_V5R18.PHSS_32977 B.11.11.36 Xserver cumulative patch
BUNDLE_V5R18.PHSS_31287 B.11.00.28 OpenGL 1.1 Dev (PA2.0 only)
BUNDLE_V5R18.PHSS_35381 1.0 ld(1) and linker tools cumulative patch
BUNDLE_V5R18.PHSS_33944 1.0 HP aC++ -AA runtime libraries (aCC A.03.71)
BUNDLE_V5R18.PHSS_32973 B.11.00.35 OpenGL Run (PA2.0 only)
BUNDLE_V5R18.PHSS_32972 B.11.00.35 3D Common Run (PA2.0 only)
BUNDLE_V5R18.PHSS_31286 B.11.00.28 Starbase/Hardcopy Dev (PA2.0 only)
BUNDLE_V5R18.PHSS_31283 B.11.00.28 PEX 5.1/Starbase/Hardcopy Run (PA2.0 only)
BUNDLE_V5R18.PHSS_30185 B.11.00.20 PEX 5.1 Run (PA2.0 only)
BUNDLE_V5R18.PHSS_30183 B.11.00.20 DDA Run (PA2.0 only)
BUNDLE_V5R18.PHKL_34805 1.0 JFS3.3 patch; mmap
BUNDLE_V5R18.PHKL_30398 1.0 KI FSS ID and KI_rfscall
BUNDLE_V5R18.PHKL_29243 1.0 vPar enablement, cumulative patch
BUNDLE_V5R18.PHCO_33205 1.0 mountall, Dev IDs enabler, iSCSI support
TY 007
Honored Contributor

Re: Apache 2.2.3 does not compile

TY 007
Honored Contributor
Solution

Re: Apache 2.2.3 does not compile

Hello,

>> We have all the required compilers installed:
>> B3394BA B.11.11.02 HP-UX Developer's Toolkit for 11.11
>> B3901BA B.11.11.12 HP C/ANSI C Developer's Bundle for HP-UX (S800)
>> B3909DB B.11.11.90 HP-UX 11.11 Fortran 90 Compiler and associated products (S800)
>> B3913DB C.03.65 HP aC++ Compiler (S800)

Is the following OS Patches installed?:
PHSS_33945 HP aC++ -AA runtime libraries (aCC A.03.76)
PHSS_34880 LIBCL patch
PHSS_35383 ld(1) and linker tools cumulative patch
PHSS_36086 ANSI C compiler B.11.11.16 cumulative patch
PHSS_36087 HP aC++ Compiler (A.03.77)
PHSS_36088 +O4/PBO Compiler B.11.11.16 cumulative patch
PHSS_36175 Fortran90 from B.11.11.70 to B.11.11.99.03

Thanks

Dennis Handly
Acclaimed Contributor

Re: Apache 2.2.3 does not compile

>I get a lot of errors and the compilation fail:
cc: ".../include/http_config.h", line 283: error 1000: Unexpected symbol: "ap_method_list_t".
cc: ".../include/http_config.h", line 296: error 1000: Unexpected symbol: "server_rec".

Can you show us what's on those lines?
They don't have the inline keyword do they?

Re: Apache 2.2.3 does not compile

Hello,

Attached, a file that contain all the errors and the .h concatenated.

For the patches, here is what we have currently installed:

PHSS_33944 1.0 HP aC++ -AA runtime libraries (aCC A.03.71)
PHSS_28303 1.0 LIBCL patch
PHSS_35381 1.0 ld(1) and linker tools cumulative patch

No Patches for ANSI C compiler, HP aC++ Compiler and Fortran90, only the bundle above.

No trace of +O4/PBO (patches or bundles)
Dennis Handly
Acclaimed Contributor

Re: Apache 2.2.3 does not compile

>a file that contain all the errors and the .h concatenated.

This just indicates you will need to do some header spelunking to find out where those types are defined. And possibly what -Ds are needed to include them.

If you have a system where it works, you can compile with -E and redirect stdout to capture a .i file. (If you had a real compiler, you could just use "-E -.i". ;-) And do it with the bad one to compare where those types are found.

You might also want to compile with -Wp,-hincl.out to get a hierarchical include tree, and then compare. (If you have more recent compilers, you can just use -H.)

If you need to do -D/#if spelunking, there are other options.

Re: Apache 2.2.3 does not compile

Hello,

We installed the compilers on a wks and I'm now able to compile and install Apache.
It seems it is a patch issue. I will compare the logs to identify what is missing on our compilers machines.

Thank you for your help
TY 007
Honored Contributor

Re: Apache 2.2.3 does not compile

Hello,

>> For the patches, here is what we have currently installed:
>> PHSS_33944 1.0 HP aC++ -AA runtime libraries (aCC A.03.71)
>> PHSS_28303 1.0 LIBCL patch
>> PHSS_35381 1.0 ld(1) and linker tools cumulative patch
>> It seems it is a patch issue

PHSS_33944 is superseded by PHSS_33945
PHSS_28303 is superseded by PHSS_34880
PHSS_35381 is superseded by PHSS_35383

These 3 superseded OS Patches does not require Server Reboot:
PHSS_33945 HP aC++ -AA runtime libraries (aCC A.03.76)
PHSS_34880 LIBCL patch
PHSS_35383 ld(1) and linker tools cumulative patch

Should update to above Latest OS Patches if possible

Thanks