Compiling Apache on Solaris2.5.1 w/SUNpro C compiler

Compiling Apache on Solaris2.5.1 w/SUNpro C compiler

Post by Joe Swif » Tue, 09 Dec 1997 04:00:00



Greetings

I am attempting to compile apache 1.2.4 on a Solaris 2.5.1 system.  I
have ran into some problems and am forced to assume that there are
some compatibility issure with the SUNpro C compiler.  I have made
miniumal changer to Configuration. (Only added the "cc" compiler info.)
I also had to add a tyoedef to conf.c:

typedef int rlim_t;

I run into some "argument mismatch" errors on http_logs.c and
http_protocol.c and some syntax errors in the later.  Heres the
errors for http_protocol.c:

# make
cc -c -Iregex  -O2 -DSOLARIS2   http_protocol.c
"http_protocol.c", line 607: major: argument mismatch
"http_protocol.c", line 607: minor: argument mismatch
"http_protocol.c", line 650: major: argument mismatch
"http_protocol.c", line 650: minor: argument mismatch
"http_protocol.c", line 651: major: argument mismatch
"http_protocol.c", line 651: minor: argument mismatch
"http_protocol.c", line 1652: va_start: argument mismatch
"http_protocol.c", line 1668: va_start: argument mismatch
"http_protocol.c", line 607: syntax error before or at: int
"http_protocol.c", line 625: undefined symbol: len
"http_protocol.c", line 650: syntax error before or at: )
"http_protocol.c", line 651: syntax error before or at: )
"http_protocol.c", line 654: cannot recover from previous errors
*** Error code 10

Could someone tell me what changes need to be made for Apache to
compile with the SUNpro C compiler?

 
 
 

Compiling Apache on Solaris2.5.1 w/SUNpro C compiler

Post by Marc Slemk » Tue, 09 Dec 1997 04:00:00



Quote:>Greetings
>I am attempting to compile apache 1.2.4 on a Solaris 2.5.1 system.  I
>have ran into some problems and am forced to assume that there are
>some compatibility issure with the SUNpro C compiler.  I have made
>miniumal changer to Configuration. (Only added the "cc" compiler info.)
>I also had to add a tyoedef to conf.c:

What version of the compiler?  It works fine with:


cc: WorkShop Compilers 4.2 30 Oct 1996 C 4.2
usage: cc [ options] files.  Use 'cc -flags' for details

It appears that you are using an old version of the compiler
that bogusly uses some reserved words like "major" and doesn't
properly deal with variable arguments.  I think there is a
PR in the database somewhere (http://bugs.apache.org)...
erm... PR#941, at:

        http://bugs.apache.org/index/full/941

It includes a patch to make 1.2.1 compile on Solaris using broken
versions of SC; I am doubtful that they will be integrated into
Apache because this is clearly a broken (non-ANSI) compiler.

 
 
 

Compiling Apache on Solaris2.5.1 w/SUNpro C compiler

Post by Joe Swif » Tue, 09 Dec 1997 04:00:00



> I am attempting to compile apache 1.2.4 on a Solaris 2.5.1 system.  I
> have ran into some problems and am forced to assume that there are
> some compatibility issure with the SUNpro C compiler.  I have made
> miniumal changer to Configuration. (Only added the "cc" compiler info.)
> I also had to add a tyoedef to conf.c:

> typedef int rlim_t;

> I run into some "argument mismatch" errors on http_logs.c and
> http_protocol.c and some syntax errors in the later.  Heres the
> errors for http_protocol.c:

> # make
> cc -c -Iregex  -O2 -DSOLARIS2   http_protocol.c

[deleted]

After posting this article I discovered the bugs database at Apache
and found an entry that described the problem I'm having. The database
entry is:

bugs.apache.org/index/full/941

 
 
 

Compiling Apache on Solaris2.5.1 w/SUNpro C compiler

Post by Neil Griffi » Thu, 11 Dec 1997 04:00:00




Quote:> Greetings

> I am attempting to compile apache 1.2.4 on a Solaris 2.5.1 system.  I
> have ran into some problems and am forced to assume that there are
> some compatibility issure with the SUNpro C compiler.  I have made
> miniumal changer to Configuration. (Only added the "cc" compiler info.)
> I also had to add a tyoedef to conf.c:

We have the 'C Development Set  (CDS) SPARCompilers 2.0.1 03 Sep 1992'
installed on 2.5.1 and Apache 1.2.4 compiled OK as supplied (apart from
setting cc), but with a number of warnings, mainly about ANSI C explicit
casts.

ng

 
 
 

1. help on compiling apache 1.3b3 on Solaris2.5.1

Dear,

    Can someone help me on how do compile apache 1.3b3 in Solaris 2.5.1, I
have follow the instruction also don't get it work.
     I have installed gcc 2.7.3 and glibc, and gmake too. but when I try to
execute the configure file it return me that I don't have an ANSI C compile.

    Please help. Thanks.

Stenny.

2. Mounting msdos filesystem

3. Busted GNU compilers for Solaris2.5.1 box

4. shell-script killing a process

5. about compiler Gcc for solaris2.5.1?

6. sound server with streaming

7. Compiling PGP22 on Solaris2.3 with SUNPro cc

8. 'Toolkit for Linux' won't recognize CDROM

9. Solaris2.6 TCP/IP faces Solaris2.5.1.

10. Losing space from Solaris2.4 to Solaris2.5.1?

11. Does anyone have ssh binaries for Solaris2.5.1 or Solaris2.6?

12. DNS search between Solaris2.5.1 and Solaris2.6

13. Solaris2.3 - Solaris2.5.1 captive accounts