comp.lang.ada
 help / color / mirror / Atom feed
* Re: Compiler Florist sous OS X
       [not found] <m2oem95z8c.fsf@mac.scrogneugneu.org>
@ 2004-07-21 15:10 ` David Marceau
  0 siblings, 0 replies; only message in thread
From: David Marceau @ 2004-07-21 15:10 UTC (permalink / raw)


Eric Jacoboni wrote:
> In file included from /usr/include/libkern/OSByteOrder.h:35,
>                  from /usr/include/mach/ndr.h:93,
>                  from /usr/include/mach/clock_priv.h:7,
>                  from /usr/include/mach/mach_interface.h:37,
>                  from /usr/include/mach/mach.h:62,
>                  from /usr/include/sys/event.h:154,
>                  from /usr/include/sys/select.h:71,
>                  from pconfig.h:36,
>                  from c-posix-signals.c:78:
> /usr/include/libkern/ppc/OSByteOrder.h:42: error: syntax error before "uint16_t"
Il y a un #define qui est vide presentement qui mene a avoir un "syntax error" 
et l'indice est OSByteOrder.h.

/usr/include/libkern/ppc/OSByteOrder.h ---> byte order pour ppc
Big Endian ou Small Endian...C'est interessant puisque ppc peut vraiment 
executer en big ou little mais big est le default.
Dans votre cas Endian devrait etre big --->PPC == big endian i.e. big-endian 
platforms (PPC, 390, zSeries, pSeries, iSeries)(PPC-32, PPC-64, S390-31, 
S390-64, SPARC-32, SPARC-64)

La reponse se trouve ici:
http://forums.macosxhints.com/archive/index.php/t-19270
En sommaire:
/* for G3/G4 */
#NETWIBDEF_SYSARCH=powerpc

/* for a G5 */
#NETWIBDEF_SYSARCH=powerpc64

gcc -O2 -Wall -DHAVE_SOCKADDR_SA_LEN -fno-strict-aliasing OSByteOrder.h
"-ansi" ne devrait pas etre utilise

Ma perspective:
Meme avec la reponse que je t'ai donne ici...Je te conseil de
find / -name "*.h" -print|grep (ENDIAN|endian|BYTEORDER)
et le bon define et .h se devoilera pour savoir exactement ce qui se passe :)
Tu vas trouver genre comme...
#undef	LITTLENDIAN	/* Byte order 1234, low-order byte first */
#define	BIGENDIAN	/* Byte order 4321, high-order first */
#undef	MIXEDENDIAN	/* Byte order 2143, on some 16-bit cpus */

Sante bonheur
David Marceau



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-07-21 15:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <m2oem95z8c.fsf@mac.scrogneugneu.org>
2004-07-21 15:10 ` Compiler Florist sous OS X David Marceau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox