From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8705 invoked by alias); 25 Feb 2011 21:42:16 -0000 Received: (qmail 8697 invoked by uid 22791); 25 Feb 2011 21:42:16 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,TW_BF,TW_FN X-Spam-Check-By: sourceware.org Received: from mo-p00-ob.rzone.de (HELO mo-p00-ob.rzone.de) (81.169.146.161) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 25 Feb 2011 21:42:10 +0000 X-RZG-AUTH: :OWBKeEOpdv5IqX5p1lt9Z7beEJpc6xv/Wr5VKX3pzmKMZEAxjX1/MI6bzJPYQg== X-RZG-CLASS-ID: mo00 Received: from [192.168.189.23] (dslb-084-056-049-004.pools.arcor-ip.net [84.56.49.4]) by post.strato.de (fruni mo33) (RZmta 25.5) with ESMTPA id c01f90n1PLerwE ; Fri, 25 Feb 2011 22:42:01 +0100 (MET) Message-ID: <4D682228.3060407@linkitup.de> Date: Fri, 25 Feb 2011 21:42:00 -0000 From: Uli Link User-Agent: Mozilla/5.0 (X11; U; AIX 5.2; en-US; rv:1.9.1.17) Gecko/20110124 SeaMonkey/2.0.12 MIME-Version: 1.0 To: libffi-discuss@sourceware.org CC: usmc_1811@sbcglobal.net, dwitte@gmail.com Subject: Building 3.0.10rc5 on AIX 5.2 or newer Content-Type: multipart/mixed; boundary="------------070300090003070406030305" 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 X-SW-Source: 2011/txt/msg00093.txt.bz2 This is a multi-part message in MIME format. --------------070300090003070406030305 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 389 I forgot about a slight difference between AIX 5.1 and earlier and AIX 5.2 and later: AIX 5.2 introduced the C99 runtime and headers, so ffi.h.in needs a further patch to compile with IBM XLC on AIX 5.2 or later which has LLONG_MAX. Sorry, I only tested on my Mozilla build host running AIX 5.1 :-( AIX native preprocessor needs non-integer literals properly suffixed. -- Uli Link --------------070300090003070406030305 Content-Type: text/plain; name="libffi-ffi_h_in.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="libffi-ffi_h_in.patch" Content-length: 1007 diff -U 8 -p libffi-3.0.10rc5.org/include/ffi.h.in libffi-3.0.10rc5/include/ffi.h.in --- libffi-3.0.10rc5.org/include/ffi.h.in 2011-02-13 14:05:35.000000000 +0100 +++ libffi-3.0.10rc5/include/ffi.h.in 2011-02-25 22:14:10.000000000 +0100 @@ -81,21 +81,25 @@ extern "C" { #define FFI_64_BIT_MAX 9223372036854775807 #ifdef LONG_LONG_MAX # define FFI_LONG_LONG_MAX LONG_LONG_MAX #else # ifdef LLONG_MAX # define FFI_LONG_LONG_MAX LLONG_MAX +# ifdef _AIX52 /* or newer has C99 LLONG_MAX */ +# undef FFI_64_BIT_MAX +# define FFI_64_BIT_MAX 9223372036854775807LL +# endif /* _AIX52 or newer */ # else # ifdef __GNUC__ # define FFI_LONG_LONG_MAX __LONG_LONG_MAX__ # endif -# ifdef _AIX +# ifdef _AIX /* AIX 5.1 and earlier have LONGLONG_MAX */ # ifndef __PPC64__ # if defined (__IBMC__) || defined (__IBMCPP__) # define FFI_LONG_LONG_MAX LONGLONG_MAX # endif # endif /* __PPC64__ */ # undef FFI_64_BIT_MAX # define FFI_64_BIT_MAX 9223372036854775807LL # endif --------------070300090003070406030305--