Received: (qmail 9352 invoked by uid 2012); 22 Dec 1998 16:39:25 -0000 Message-Id: <19981222163925.9351.qmail@hyperreal.org> Date: 22 Dec 1998 16:39:25 -0000 From: Fabien COELHO Reply-To: coelho@cri.ensmp.fr To: apbugs@hyperreal.org Subject: apache does not compile with gcc -ansi option. X-Send-Pr-Version: 3.2 >Number: 3577 >Category: os-solaris >Synopsis: apache does not compile with gcc -ansi option. >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Tue Dec 22 08:40:01 PST 1998 >Last-Modified: Tue Dec 22 09:01:34 PST 1998 >Originator: coelho@cri.ensmp.fr >Organization: >Release: 1.3.3 >Environment: SunOS palo-alto 5.6 Generic i86pc i386 gcc version 2.8.1 >Description: apache does not compile with gcc -ansi on solaris 2.6 intel. as all the source code looks pretty ansi (eg function declarations, void *...) I guess this is a potential portability bug. gcc -c -I../os/unix -I../include -DSOLARIS2=260 -ansi `../apaci` ap_signal.c ap_signal.c: In function `ap_signal': ap_signal.c:68: storage size of `act' isn't known ap_signal.c:68: storage size of `oact' isn't known make[3]: *** [ap_signal.o] Error 1 m >How-To-Repeat: CFLAGS=-ansi CC=gcc ./configure make >Fix: none. >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: marc State-Changed-When: Tue Dec 22 09:01:33 PST 1998 State-Changed-Why: It is complaining because sigaction isn't an ANSI feature. Since Solaris supports it, however, we use it. For platforms that don't support it, we define NO_USE_SIGACTION in ap_config.h so it isn't used. >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ] [If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request ] [from a developer. ] [Reply only with text; DO NOT SEND ATTACHMENTS! ]