From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29957 invoked by alias); 17 Apr 2014 17:03:46 -0000 Mailing-List: contact libffi-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libffi-discuss-owner@sourceware.org Received: (qmail 29930 invoked by uid 89); 17 Apr 2014 17:03:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: elasmtp-banded.atl.sa.earthlink.net Received: from elasmtp-banded.atl.sa.earthlink.net (HELO elasmtp-banded.atl.sa.earthlink.net) (209.86.89.70) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 17 Apr 2014 17:03:44 +0000 Received: from [216.201.167.98] (helo=[10.8.1.31]) by elasmtp-banded.atl.sa.earthlink.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.67) (envelope-from ) id 1Wapiw-0001TC-51 for libffi-discuss@sourceware.org; Thu, 17 Apr 2014 13:03:42 -0400 From: Trenton Henry Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: maybe a bug in 3.0.13 for osx 32bit builds Message-Id: <5A568FBC-5222-4207-A7EF-225B7DFC76AF@earthlink.net> Date: Thu, 17 Apr 2014 17:03:00 -0000 To: libffi-discuss@sourceware.org Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) X-ELNK-Trace: 43d30aa2b01f0f999ef193a6bfc3dd48e30b9aace7b65f5497398f8767cc4d462601a10902912494350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-SW-Source: 2014/txt/msg00052.txt.bz2 I am compiling the ffi code for osx directly into my application (as = opposed to linking it as a library). I'm trying to build exclusively for = 32bit, on 10.9.=20 For the osx builds using the sources for libffi-3.0.13: ffi64.c starts with #if !defined(__i386__) && defined(__x86_64__) as expected ffi.c starts with #if !defined(__i386__) && defined(__x86_64__) but shouldn't it be #if defined(__i386__) && !defined(__x86_64__) Also, darwin.S starts with #if !defined(__i386__) && defined(__x86_64__) ... #ifndef __x86_64__ Shouldn't it also be #if defined(__i386__) && !defined(__x86_64__) Anyhow I made these minor changes and I got it to build and work fine. = I'm just not certain what I did is right. It seems to make sense, but = probably I failed to set something up right. Thanks! -Trenton Henry