4 messages in net.java.dev.jna.usersRe: [jna-users] building trunk on a mac
FromSent OnAttachments
Tore HalsetNov 26, 2007 3:59 pm 
Timothy WallNov 26, 2007 4:39 pm 
Wayne MeissnerNov 26, 2007 8:02 pm 
Timothy WallNov 27, 2007 6:11 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] building trunk on a macActions...
From:Wayne Meissner (wmei@gmail.com)
Date:Nov 26, 2007 8:02:53 pm
List:net.java.dev.jna.users

Yep, the configure line for libffi should really have -arch i386 in CFLAGS/LDFLAGS.

On 27/11/2007, Timothy Wall <twal@dev.java.net> wrote:

Do you have the developer package installed (/Developer/SDKs/ MacOSX10.4u.sdk)? If not, the build might have to be tweaked to do a non-universal build (I run from a ppc 10.4 to do universal builds).

Also try doing 'ant clean native', in case a previous configure was interrupted. Since 10.5 is new, it's also possible Apple changed something in the headers which now makes autoconf croak.

On Nov 26, 2007, at 7:00 PM, Tore Halset wrote:

Hello.

I am trying to build trunk on a Core Duo iMac with OS X 10.5.1 and get the following error:

[exec] configure: error: C compiler cannot create executables [exec] See `config.log' for more details. [exec] checking for C compiler default output file name... [exec] make: *** [/Users/halset/projects/ext/jna/svn/trunk/ jnalib/build/native/libffi/.libs/libffi_convenience.a] Error 77

configure:7234: gcc -c -g -O2 conftest.c >&5 conftest.c: In function 'main': conftest.c:39: error: 'not' undeclared (first use in this function) conftest.c:39: error: (Each undeclared identifier is reported only once conftest.c:39: error: for each function it appears in.) conftest.c:39: error: syntax error before 'big' ..... | int | main () | { | #if BYTE_ORDER != BIG_ENDIAN | not big endian | #endif | | ; | return 0; | }

Anyone know where to go from here?

Regards, - Tore.