Re: screen during compile....

Jake (jake@ams.com)
Tue, 8 Apr 1997 11:58:04 -0500 (CDT)

On Tue, 8 Apr 1997, Ing. Osvaldo Rojas Glez. wrote:

>
>
> My problen is the next:

You should say. "THis is my next problem."

>
> I compile radius 1.26 in SunOS cuk 5.5.1 Generic sun4m sparc
> SUNW,SPARCstation-LX

Okay

>
> I use the appropriate Makefile to compile the ascend Radius
> daemon on my system:

Okay

> cuk % pwd
> cuk % radius-1.16-ascend/ascendd
> cuk % vi Makefile

>
> .....................................................
>
> # SunOs:
> CFLAGS= -DOSUN
> CC= gcc
> # Pick your compiler
> #
> CC= gcc # set the GCC compiler to ANSI mode
>
> ...................................................
>
> The error it give me on the screen during compile is the next:
>
> Cuk[101] %make all
> gcc -O -DNOSHADOW -DOSUN -DBINARY_FILTERS -DASCEND_SECRET -DASCEND_LOGOUT
> -c ./radiusd.c
> In file included from ./radiusd.c:77:
> protos.h:30: conflicting types for `gettimeofday'
> /usr/include/sys/time.h:263: previous declaration of `gettimeofday'
> ./radiusd.c:114: warning: redefinition of `ulong'
> /usr/local/lib/gcc-lib/sparc-sun-solaris/2.7.2/include/sys/types.h:223:
> warning: `ulong' previously declared here
> *** Error code 1
> make: Fatal error: Command failed for target `radiusd.o'

It looks like "gettimeofday" in the file radiusd.c is not used right based
on what is in the protos.h file

Also, "ulong" seems to have been redefined after already being defined in
YOUR types.h file

It would seem that the version of radius you are compiling expects a
different version of the OS or a different set of libs.

Does that seem right to anyone else? And how does he now fix that?

~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
Jake Messinger 713-772-6690 jake@ams.com
Advanced Medical Systems, Inc. jake@uh.edu
Houston, Texas http://www.ams.com/~jake
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
(Betcha can't do this on an Apple ][, ][c, or ][e)