From nobody@hyperreal.com Sat May 10 14:09:11 1997 Received: (from nobody@localhost) by hyperreal.com (8.8.5/8.8.5) id OAA18427; Sat, 10 May 1997 14:09:11 -0700 (PDT) Message-Id: <199705102109.OAA18427@hyperreal.com> Date: Sat, 10 May 1997 14:09:11 -0700 (PDT) From: Kartik Subbarao Reply-To: Kartik_Subbarao@hp.com To: apbugs@hyperreal.com Subject: Proper CFLAGS, OPTIM, not being set for HP-UX in Configure X-Send-Pr-Version: 3.2 >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 >State: closed >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Sat May 10 14:10:01 1997 >Last-Modified: Sat May 10 14:55:26 PDT 1997 >Originator: Kartik_Subbarao@hp.com >Organization: >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: State-Changed-From-To: open-closed State-Changed-By: marc State-Changed-When: Sat May 10 14:55:25 PDT 1997 State-Changed-Why: Dupe of PR#445. Fixed in the latest development tree. You can download the latest snapshot from http://dev.apache.org/from-cvs/ and verify that it works for you. It does not set -O or +O2, but now it doesn't set -O2 when using cc on HPUX. Note that the current snapshot is broken and will not build; try it in a day or two. Thanks. >Unformatted: