From: David Marceau <davidmarceau@sympatico.ca>
Subject: Re: Compiler Florist sous OS X
Date: Wed, 21 Jul 2004 11:10:27 -0400
Date: 2004-07-21T11:10:27-04:00 [thread overview]
Message-ID: <40FE8763.8080509@sympatico.ca> (raw)
In-Reply-To: <m2oem95z8c.fsf@mac.scrogneugneu.org>
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
parent reply other threads:[~2004-07-21 15:10 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <m2oem95z8c.fsf@mac.scrogneugneu.org>]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox