From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2d588e17d6e3290e,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!wn14feed!worldnet.att.net!207.35.177.252!nf3.bellglobal.com!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail Message-ID: <40FE8763.8080509@sympatico.ca> From: David Marceau User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040704 Debian/1.7-4 X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Compiler Florist sous OS X References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 21 Jul 2004 11:10:27 -0400 NNTP-Posting-Host: 64.230.146.236 X-Complaints-To: abuse@sympatico.ca X-Trace: news20.bellglobal.com 1090422722 64.230.146.236 (Wed, 21 Jul 2004 11:12:02 EDT) NNTP-Posting-Date: Wed, 21 Jul 2004 11:12:02 EDT Organization: Bell Sympatico Xref: g2news1.google.com comp.lang.ada:2321 Date: 2004-07-21T11:10:27-04:00 List-Id: 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