www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kartik Subbarao <Kartik_Subba...@hp.com>
Subject config/567: Proper CFLAGS, OPTIM, not being set for HP-UX in Configure
Date Sat, 10 May 1997 21:10:02 GMT

>Number:         567
>Category:       config
>Synopsis:       Proper CFLAGS, OPTIM, not being set for HP-UX in Configure
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache (Apache HTTP Project)
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Sat May 10 14:10:01 1997
>Originator:     Kartik_Subbarao@hp.com
>Organization:
apache
>Release:        1.2b10
>Environment:
Any HP-UX system
>Description:
There are two problems here. Configure isn't adding the "-Aa -D_HPUX_SOURCE"
flags like it's supposed to when cc is the compiler. Also, Configure doesn't 
set OPTIM properly for the HP-UX C compiler syntax ("+O2" instead of "-O2", 
even "-O" would work).

Running a make, after running Configure on an HP-UX 10.X system, yields:

---------------------------------------------------------------------------------
        cc -c   -O2 -DHPUX10   alloc.c
cc: warning 422: Unknown option "2" ignored.
cc: "conf.h", line 544: error 1000: Unexpected symbol: "size_t".
cc: "conf.h", line 544: warning 5: "const" will become a keyword.
cc: "conf.h", line 544: error 1000: Unexpected symbol: "char".
cc: "conf.h", line 544: error 1000: Unexpected symbol: "...".
cc: "conf.h", line 545: warning 5: "const" will become a keyword.
cc: "conf.h", line 545: error 1000: Unexpected symbol: "const".
cc: "conf.h", line 545: error 1000: Unexpected symbol: "va_list".
cc: "/usr/include/sys/dirent.h", line 32: error 1000: Unexpected symbol: "ino_t".
cc: "conf.h", line 646: error 1000: Unexpected symbol: "Sigfunc".
cc: "alloc.h", line 77: error 1000: Unexpected symbol: "*".
cc: error 2017: Cannot recover from earlier errors, terminating.
*** Error exit code 1

Stop.
---------------------------------------------------------------------------------
>How-To-Repeat:
Run Configure, and then run make, on any HP-UX system.
>Fix:
1. Delete or comment out the OPTIM=-O2 line in Configuration and Configuration.tmpl

2. Add OPTIM=+O2 to the *-hp-hpux*) and *-hp-hpux10.*) case sections in Configure.

3. Make sure that the CC variable is set properly before the above case section
   executes, so that the if [ "$CC" = "cc" ] will evaluate and set CFLAGS
   properly
>Audit-Trail:
>Unformatted:



Mime
View raw message