From apwww@hyperreal.org Tue Aug 26 23:27:03 1997 Received: (from apwww@localhost) by hyperreal.org (8.8.5/8.8.5) id XAA22898; Tue, 26 Aug 1997 23:27:03 -0700 (PDT) Message-Id: <199708270627.XAA22898@hyperreal.org> Date: Tue, 26 Aug 1997 23:27:03 -0700 (PDT) From: Kevin Davies Reply-To: kfd@gil.com.au To: apbugs@hyperreal.org Subject: Problem: Compile fails for apache using gcc X-Send-Pr-Version: 3.2 >Number: 1063 >Category: os-hpux >Synopsis: Problem: Compile fails for apache using gcc >Confidential: no >Severity: critical >Priority: medium >Responsible: apache >State: closed >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Tue Aug 26 23:30:01 1997 >Originator: kfd@gil.com.au >Organization: >Release: 1.2.4 >Environment: uname -a= HP-UX iccu5 B.10.20 U 9000/861 gcc --version=2.7.2.1 make --version=GNU Make version 3.75 ./Configure gives... +configured for HP-UX 10 platform + setting C compiler to gcc + setting C compiler optimization-level to -O2 >Description: make gives... gcc -c -O2 -DHPUX10 alloc.c In file included from /usr/include/sys/stat.h:25, from conf.h:568, from httpd.h:59, from alloc.c:61: /usr/include/sys/_stat_body.h:22: parse error before `blkcnt_t' /usr/include/sys/_stat_body.h:22: warning: no semicolon at end of struct or union /usr/include/sys/_stat_body.h:23: parse error before `:' /usr/include/sys/_stat_body.h:24: parse error before `:' /usr/include/sys/_stat_body.h:25: parse error before `:' /usr/include/sys/_stat_body.h:53: parse error before `}' In file included from alloc.c:61: httpd.h:516: field `finfo' has incomplete type make: *** [alloc.o] Error 1 >How-To-Repeat: >Fix: If you are unable to help could you point me in the right direction... ie people who have ported to HPUX 10 before. %0 >Audit-Trail: State-Changed-From-To: open-analyzed State-Changed-By: marc State-Changed-When: Tue Aug 26 23:51:36 PDT 1997 State-Changed-Why: Try removing the: typedef int rlim_t; line from the HPUX section of conf.h From: Marc Slemko To: Kevin Subject: Re: os-hpux/1063: Problem: Compile fails for apache using gcc Date: Wed, 27 Aug 1997 01:22:26 -0600 (MDT) Then it is probably a gcc installation problem, and we can't really help with that. It is a problem with the system header files that gcc can't parse. It compiles fine using gcc 2.7.2.2.f.2 on: HP-UX hinton B.10.20 A 9000/777 2009667036 two-user license for me. On Wed, 27 Aug 1997, Kevin wrote: > Dear Marc, > > Thanks for the suggesiton but no change... same compiler error. > > ---------- > > From: Marc Slemko > > To: apache-bugdb@apache.org; kfd@gil.com.au; marc@apache.org > > Subject: Re: os-hpux/1063: Problem: Compile fails for apache using gcc > > Date: Wednesday, 27 August 1997 16:51 > > > > Synopsis: Problem: Compile fails for apache using gcc > > > > State-Changed-From-To: open-analyzed > > State-Changed-By: marc > > State-Changed-When: Tue Aug 26 23:51:36 PDT 1997 > > State-Changed-Why: > > Try removing the: > > > > typedef int rlim_t; > > > > line from the HPUX section of conf.h > > > From: Marc Slemko To: Kevin Subject: Re: os-hpux/1063: Problem: Compile fails for apache using gcc Date: Wed, 27 Aug 1997 09:42:03 -0600 (MDT) On Wed, 27 Aug 1997, Kevin wrote: > Actually Marc, > > Take a look at this and see if you can see the problem? > Can I re-write it? Not really. You don't want to be messing around with your system header files; it probably isn't a problem with them, but a problem with the manner in which gcc was compiled and installed. The only thing I could suggest would be adding a typedef int blkcnt_t; to the HPUX section of conf.h. If that doesn't work, there isn't much we could do. You could try installing a newer version of gcc, being sure to follow every step of the instructions closely. State-Changed-From-To: analyzed-closed State-Changed-By: marc State-Changed-When: Thu Aug 28 09:00:43 PDT 1997 State-Changed-Why: Compiler problem. From: Marc Slemko To: Apache bugs database , kfd@gil.com.au Subject: os-hpux/1063 Date: Thu, 28 Aug 1997 10:00:40 -0600 (MDT) ---------- Forwarded message ---------- Date: Thu, 28 Aug 1997 07:31:01 -0400 From: "Frank J. Faubert, Jr." To: Marc Slemko Subject: Re: Apache 1.2.4 fails compile on HPUX 10.20 series 800 Hi Marc, This is a huge known problem with the gcc compiler binary distribution on HP-UX 10.20. The binary distribution is for 10.10 and doesn't work correctly on 10.20. It can be fixed by re-building the compiler from the source. BTW: This isn't anything apache specific, it happens with *any* program that includes -Frank >Unformatted: >Last-Modified: Thu Aug 28 09:00:43 PDT 1997