From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Q1enq-0005Vb-HK for garchives@archives.gentoo.org; Mon, 21 Mar 2011 13:05:46 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F23E7E06B0; Mon, 21 Mar 2011 13:05:35 +0000 (UTC) Received: from mail-ey0-f181.google.com (mail-ey0-f181.google.com [209.85.215.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 5AF5EE0686 for ; Mon, 21 Mar 2011 13:04:45 +0000 (UTC) Received: by eyh5 with SMTP id 5so2022562eyh.40 for ; Mon, 21 Mar 2011 06:04:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:from :date:x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; bh=hPL/rKY/8jQQP5BxdQahlw6tHjtZbFd+NEmRrrcR1iI=; b=GKKo+sScbxzqYfWmQUlupLufi+RWzJ0zNckyKp1l31un971OMNDE6/mkjYl1L0shWM oC2comwKOnxJinTkjBcnARHUo8ClpS3I9Fu9D0UgeaFwJ7sm4x5FeA685I4KCXhRL8vJ 3k07oF4/p2yfrAy/7J1ilKC/p+AetlLcKmQuk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; b=rf0tmecmSJ7KRNnUQnqgPRwpx70fcUkMX6wAEZmIo5xmO85W6HRNQ7IVYuQEYoFFlI Yditj0OSx1Mm56Usiew8r5IIlxYQ9FQXRPvqMNIRy2MZI8ZzFm+6nXUQ4ttnhZXR+hOZ 3t2W/mxBvKx3zBELlm1oWQ3exn3ut7heX66eg= Received: by 10.213.22.6 with SMTP id l6mr2032889ebb.95.1300712684465; Mon, 21 Mar 2011 06:04:44 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Sender: vapierfilter@gmail.com Received: by 10.213.21.142 with HTTP; Mon, 21 Mar 2011 06:04:24 -0700 (PDT) In-Reply-To: <4D872A84.4020101@gentoo.org> References: <4D7F1633.1080104@gentoo.org> <201103161451.47198.vapier@gentoo.org> <4D8504EC.8060407@gentoo.org> <201103201439.18493.vapier@gentoo.org> <4D872A84.4020101@gentoo.org> From: Mike Frysinger Date: Mon, 21 Mar 2011 09:04:24 -0400 X-Google-Sender-Auth: EsKPznJmc7sW0UTdsG1sXlS1PE8 Message-ID: Subject: Re: [gentoo-dev] RFC: emboss.eclass as replacement for embassy.eclass To: gentoo-dev@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 1abcdbe5654a6b8b0df07f0c6f629a81 On Mon, Mar 21, 2011 at 6:37 AM, justin wrote: > During closer investigation I found that it alos changes data width and > similar. probably something which should be checked during configure. oh god, this is why it burns > AC_ARG_ENABLE(64, > =A0 AS_HELP_STRING([--enable-64], [64 bit pointers])) > if test "${enable_64}" =3D "yes" ; then > AC_MSG_CHECKING(for 64bit compilation support) > > dnl Test for Linux 64 bit > > if test "`uname`" =3D "Linux"; then > CPPFLAGS=3D"-DAJ_Linux64 $CPPFLAGS" > fi this all needs to be punted > exmaple header: > > > dnl Test for FreeBSD 64 bit > #if !defined(AJ_LinuxLF) && !defined(AJ_SolarisLF) && > !defined(AJ_IRIXLF) && !defined(AJ_AIXLF) && !defined(AJ_HPUXLF) && > !defined(AJ_MACOSXLF) && !defined(AJ_FreeBSDLF) && !defined(WIN32) > typedef int ajint; > typedef long ajlong; > typedef unsigned int ajuint; > typedef short ajshort; > typedef unsigned short ajushort; > typedef unsigned long ajulong; > #endif > > > #ifdef AJ_LinuxLF > #define HAVE64 > typedef int ajint; > typedef long long ajlong; > typedef unsigned int ajuint; > typedef short ajshort; > typedef unsigned short ajushort; > typedef unsigned long long ajulong; > #define ftell(a) ftello(a) > #define fseek(a,b,c) fseeko(a,b,c) > #endif so it wants to normalize aj* types to a specific size. it'd make more sense to include stdint.h and then do: typedef int32_t ajint; typedef int64_t ajlong; typedef uint32_t ajuint; typedef int16_t ajshort; typedef uint16_t ajushort; typedef uint64_t ajulong; this should work for *all* targets ftell vs ftello is a bit weirder. i'd say always call ftello() all the time and let the off_t types worry about 32 bit vs 64 bit. so in the configure script. do something like: AC_CHECK_FUNCS([ftello fseeko]) then in the header: #ifdef HAVE_FTELLO #define ftell(a) ftello(a) #endif #ifdef HAVE_FSEEKO #define fseek(a,b,c) fseeko(a,b,c) #endif and again, this should work for all targets, not just linux -mike