Mailing List Archive

Sun's CC barfs on Apache 1.0
As I posted before, the Sun preprocessor does *not* like line 652 in
mod_include.c:

#if defined(BSD) && BSD > 199305

"mod_include.c", line 652: (in preprocessor if): syntax error
*** Error code 2
make: Fatal error: Command failed for target `mod_include.o'

I *guess* I don't see this as a showstopper, since gcc doesn't mind it
and I'll be using that for building the solaris binary, but it should be
noted in the "Known Bugs" page and we should try and address this.
Putting parens around the inequality doesn't help either.

Brian

--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
brian@organic.com brian@hyperreal.com http://www.[hyperreal,organic].com/
Re: Sun's CC barfs on Apache 1.0 [ In reply to ]
> As I posted before, the Sun preprocessor does *not* like line 652 in
> mod_include.c:
>
> #if defined(BSD) && BSD > 199305
>
> "mod_include.c", line 652: (in preprocessor if): syntax error
> *** Error code 2
> make: Fatal error: Command failed for target `mod_include.o'
>

The cpp on this sun box (solaris 5.4)

ucbcc: SC3.0 15 Dec 1993
ld: Software Generation Utilities (SGU) SunOS/ELF (LK-1.4 (S/I))
cpp: Software Generation Utilities (SGU) SunOS/SVR4

will eat it fine, and this construct below works on the older boxes
as well.

#ifdef BSD
#if BSD > 199305
..
Blah..
..
#endif
#endif

(cause if BSD is not defined and it barfs on

#if defined() && > 199305

is not a valid exprt. Actually on some boxes (cray) this works also:

#if defined(BSD) && ((1+BSD+1) > (199305+2))

ran into this one some time ago.)

Dw.