On Tue, 6 Jan 2004 [EMAIL PROTECTED] wrote:

> I get the following compilation errors when building 4.4.0 RC2 on Solaris
> 2.51 x86 because int64_t and int32_t are not defined in any system headers.
> glxext.h defines them #ifdef __UNIXOS2__.  I guess this condition also
> needs to include Solaris 2.5.1 and earlier (Solaris 8 (on SPARC at least)
> defines them but I don't know about versions in-between).  Can somebody
> please provide a patch for this, or let me know how I can do this (but the
> former is probably just as easy).  I hacked out the #ifdef __UNIXOS2__ to
> test that this would solve the problem.

> making all in lib/GL/mesa/src/X...
> rm -f fakeglx.o
> gcc -c -O2 -fno-strength-reduce  -DNO_ASM -Wall -Wpointer-arith  -ansi
> -pedantic  -I../../../../../extras/Mesa/src
> -I../../../../../extras/Mesa/src/X
> -I../../../../../extras/Mesa/include            -I../../../include
> -I../../../../../exports/include/X11   -I../../../../..
> -I../../../../../exports/include   -Dsun -Di386 -DSVR4 -D__EXTENSIONS__
> -D__i386     -DMALLOC_0_RETURNS_NULL        -fPIC fakeglx.c
> In file included from ../../../../../exports/include/GL/glx.h:117,
>                  from ../../../../../extras/Mesa/src/X/glxheader.h:59,
>                  from fakeglx.c:44:
> ../../../../../extras/Mesa/include/GL/glxext.h:615: parse error before
> `int64_t'
> ../../../../../extras/Mesa/include/GL/glxext.h:616: parse error before
> `int32_t'
> ../../../../../extras/Mesa/include/GL/glxext.h:617: parse error before `*'
> ../../../../../extras/Mesa/include/GL/glxext.h:617: parse error before
> `int64_t'
> ../../../../../extras/Mesa/include/GL/glxext.h:617: warning: type defaults
> to `int' in declaration of `int64_t'
> ../../../../../extras/Mesa/include/GL/glxext.h:617: `int64_t' declared as
> function returning a function
> *** Error code 1
> make: Fatal error: Command failed for target `fakeglx.o'
> Current working directory
> /proj3/ere/work/lindsayh/XFree86/RC2/xc/lib/GL/mesa/src/X

Instead of hacking out __UNIXOS2__, try compiling _without_ -ansi.
Because of the ever increasing use of C99'isms, we can no longer expect
the code to comply with ANSI C.

Marc.

+----------------------------------+-----------------------------------+
|  Marc Aurele La France           |  work:   1-780-492-9310           |
|  Computing and Network Services  |  fax:    1-780-492-1729           |
|  352 General Services Building   |  email:  [EMAIL PROTECTED]          |
|  University of Alberta           +-----------------------------------+
|  Edmonton, Alberta               |                                   |
|  T6G 2H1                         |     Standard disclaimers apply    |
|  CANADA                          |                                   |
+----------------------------------+-----------------------------------+
XFree86 developer and VP.  ATI driver and X server internals.

_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to