From nobody@hyperreal.com Tue Jan 28 15:49:02 1997 Received: by taz.hyperreal.com (8.8.4/V2.0) id PAA04494; Tue, 28 Jan 1997 15:49:02 -0800 (PST) Message-Id: <199701282349.PAA04494@taz.hyperreal.com> Date: Tue, 28 Jan 1997 15:49:02 -0800 (PST) From: Alan Olsen Reply-To: alan@ctrl-alt-del.com To: apbugs@hyperreal.com Subject: Regex code does not build. Gives fatal compile errors. X-Send-Pr-Version: 3.2 >Number: 136 >Category: os-sunos >Synopsis: Regex code does not build. Gives fatal compile errors. >Confidential: no >Severity: critical >Priority: medium >Responsible: apache >State: closed >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Tue Jan 28 15:50:01 1997 >Last-Modified: Sun Apr 6 14:53:56 PDT 1997 >Originator: alan@ctrl-alt-del.com >Organization: >Release: 1.2b6 >Environment: Sun OS 4.1.4. Clean install. >Description: When the make command is issued, the following errors appear: viper% make (cd regex; make lib CC=cc AUX_CFLAGS='-O2 -DSUNOS4 -DUSEBCOPY ' RANLIB='ranlib') rm -f *.o sh ./mkh -i _REGEX_H_ regex2.h regcomp.c regerror.c regexec.c regfree.c >regex. tmp cmp -s regex.tmp regex.h 2>/dev/null || cp regex.tmp regex.h rm -f regex.tmp cc -I. -DPOSIX_MISTAKE -O2 -DSUNOS4 -DUSEBCOPY -target sun4 -c regcomp.c "./regex.h", line 13: syntax error at or near variable name "const" "./regex.h", line 23: syntax error at or near symbol * "./regex.h", line 23: regex_t declared as parameter to non-function "./regex.h", line 23: const declared as parameter to non-function "./regex.h", line 53: syntax error at or near type word "int" "./regex.h", line 53: const declared as parameter to non-function "./regex.h", line 57: syntax error at or near variable name "regex_t" "./regex.h", line 57: redeclaration of formal parameter, const "./regex.h", line 57: const declared as parameter to non-function "./regex.h", line 57: const declared as parameter to non-function "./regex.h", line 67: syntax error at or near symbol * "./regex.h", line 67: regex_t declared as parameter to non-function "./regcomp.ih", line 7: syntax error at or near word "register" "./regcomp.ih", line 8: syntax error at or near word "register" "./regcomp.ih", line 9: syntax error at or near word "register" "./regcomp.ih", line 10: syntax error at or near word "register" "./regcomp.ih", line 11: syntax error at or near word "register" "./regcomp.ih", line 12: syntax error at or near word "register" "./regcomp.ih", line 13: syntax error at or near word "register" "./regcomp.ih", line 14: syntax error at or near word "register" "./regcomp.ih", line 15: syntax error at or near word "register" "./regcomp.ih", line 16: syntax error at or near word "register" "./regcomp.ih", line 17: syntax error at or near word "register" "./regcomp.ih", line 18: syntax error at or near word "register" "./regcomp.ih", line 19: syntax error at or near type word "int" "./regcomp.ih", line 20: syntax error at or near word "register" "./regcomp.ih", line 21: syntax error at or near word "register" "./regcomp.ih", line 22: syntax error at or near word "register" "./regcomp.ih", line 23: syntax error at or near word "register" "./regcomp.ih", line 24: syntax error at or near word "register" "./regcomp.ih", line 25: syntax error at or near word "register" "./regcomp.ih", line 25: fatal error: too many errors *** Error code 1 make: Fatal error: Command failed for target `regcomp.o' Current working directory /export/tools/apache_1.2b6/src/regex *** Error code 1 make: Fatal error: Command failed for target `regex/libregex.a' viper% This is under a clean install of Sun OS 4.1.4 on a brand new Sparc. (There are no patches (that I know of) on this version of the kernel.) Changing the rule for WANTHSREGEX to "no" does not build, as the proper headers do not exist in the current libraries. >How-To-Repeat: Install a clean version of Sun OS 4.1.4. run ./Config. run make. watch it go boom. >Fix: Non >Audit-Trail: State-Changed-From-To: open-suspended State-Changed-By: fielding State-Changed-When: Thu Jan 30 18:17:00 PST 1997 State-Changed-Why: The stock SunOS 4.1.x compiler is not capable of compiling ANSI C. We recommend using the gcc compiler from Gnu, or the acc compiler that comes with some SunOS systems. State-Changed-From-To: suspended-closed State-Changed-By: marc State-Changed-When: Sun Apr 6 14:53:55 PDT 1997 State-Changed-Why: Since Apache will never compile with SunOS's compiler (ie. use gcc), and it is more a problem with SunOS than Apache so no point in keeping this PR suspended, may as well close. >Unformatted: