Complete.Org: Mailing Lists: Archives: freeciv-dev: January 1999:
RE: [Freeciv-Dev] Compilation on Solaris
Home

RE: [Freeciv-Dev] Compilation on Solaris

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "'Mika Korhonen'" <mikak@xxxxxxxxxxxx>, <freeciv-dev@xxxxxxxxxxx>
Subject: RE: [Freeciv-Dev] Compilation on Solaris
From: "Todd Goodman" <tsg1@xxxxxxxxxxxxx>
Date: Mon, 25 Jan 1999 07:18:12 -0500

I have the same problem.  It looks like the X11R6.4 release falls
back on the default int declaration for some of the functions in
the header files.

The freeciv -Wall compiler (which I believe to be a good thing)
causes the compiler to complain about this.

> -----Original Message-----
> From: owner-freeciv-dev@xxxxxxxxxxxx
> [mailto:owner-freeciv-dev@xxxxxxxxxxxx]On Behalf Of Mika Korhonen
> Sent: Monday, January 25, 1999 4:39 AM
> To: freeciv-dev@xxxxxxxxxxx
> Subject: [Freeciv-Dev] Compilation on Solaris
> 
> 
> 
>       
> While compiling I get tons of these warnings: 
> ...
> /usr/openwin/include/X11/Xlib.h:3945: 
>       warning: type defaults to `int' in declaration of 
> `XStoreBuffer' 
> /usr/openwin/include/X11/Xlib.h:3953:
>       warning: type defaults to `int' in declaration of `XStoreBytes'
> /usr/openwin/include/X11/Xlib.h:3961: 
>       warning: type defaults to `int' in declaration of `XStoreColor' 
> ...
> 
> 
> Having a look in Xlib.h reveals:
>       extern XStoreBuffer(
>       #if NeedFunctionPrototypes
>           Display*            /* display */,
>           _Xconst char*       /* bytes */,
>           int                 /* nbytes */,
>           int                 /* buffer */
>       #endif
>       );
> 
> (tk10)(mikak)(106)(freeciv) uname -a
> SunOS tk10 5.6 Generic_105181-10 sun4u sparc SUNW,Ultra-2
> 
> (tk10)(mikak)(107)(freeciv) gcc -v
> Reading specs from 
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1/specs
> gcc version 2.8.1
> 
> Things work just fine but 99.5% of compiler output consists of those
> above. Obviously somewhere happens type conversions which gcc 
> is not happy
> with :) (Xlib version problems?)
> 
>       Mika    
> ______________________________________________________________
> _________________
> History tends to exaggerate.
>               -- Col. Green, "The Savage Curtain", stardate 5906.4
> 
> 


[Prev in Thread] Current Thread [Next in Thread]