Operating System - HP-UX
1758622 Members
2066 Online
108874 Solutions
New Discussion юеВ

Re: Apache-1.3.9 compile problem on HP-UX 11.00

 
Sloth Karl
New Member

Apache-1.3.9 compile problem on HP-UX 11.00

I'm trying to compile Apache-1.3.9 on a HP-9000A server running HP-UX 11.00
using the HP C compiler. I get the following error:

cc: "/usr/include/dlfcn.h", line 17: error 1681: Must use +e or -Ae for long
long in ANSI mode.

TIA.

Karl Sloth
3 REPLIES 3
Anthony Goonetilleke_1
Regular Advisor

Re: Apache-1.3.9 compile problem on HP-UX 11.00

If you are getting the error
cc: "/usr/include/dlfcn.h", line 17: error 1681: Must use +e or -Ae for long
long in ANSI mode.

The newer HP-UX C compiler does not have the -Ae flag to get around this you
can try do something like this

set the CCOPTS environment variable to "-w +e"
If you are using csh/tcsh
edit .cshrc and put
setenv CCOPTS "-w +e"

or if you are using sh/ksh
edit .profile
CCOPTS="-w +e"; export CCOPTS

This might work...
Yu-hsin Seah_2
Advisor

Re: Apache-1.3.9 compile problem on HP-UX 11.00

AFAIK, -Ae option has always been there, even on 11.00.

The Ansi/C product provides this option, but the default C-compiler does not.

I would check what the version of your "cc" is as there are known bugs
(basically with the way some command line options of cc are parsed) which _may_
cause this problem. It doesn't seem to occur on my compiler version on 11.0
which is:

B3901BA B.11.01.06 HP C/ANSI C Developer's Bundle for
HP-UX 11.00 (S800)

Hope that helps a little...

Re: Apache-1.3.9 compile problem on HP-UX 11.00

export CFLAGS="-Ae" && ./configure