From owner-freebsd-apache@FreeBSD.ORG Sat May 11 18:00:59 2013 Return-Path: Delivered-To: apache@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 212CCBB8 for ; Sat, 11 May 2013 18:00:59 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) by mx1.freebsd.org (Postfix) with ESMTP id D6DF31E6 for ; Sat, 11 May 2013 18:00:58 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id r4BI0vra079629 for apache@FreeBSD.org; Sat, 11 May 2013 18:00:57 GMT (envelope-from kientzle@freebsd.org) Received: from [192.168.2.123] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id 4qmkh5kmbuvd9xsus8thunzkj6; for apache@FreeBSD.org; Sat, 11 May 2013 18:00:57 +0000 (UTC) (envelope-from kientzle@freebsd.org) From: Tim Kientzle Content-Type: multipart/signed; boundary="Apple-Mail=_56BC8D65-269D-48F1-83DA-EF7987518268"; protocol="application/pgp-signature"; micalg=pgp-sha1 Subject: devel/apr1 on FreeBSD/ARM/clang Date: Sat, 11 May 2013 11:00:55 -0700 Message-Id: To: apache@freebsd.org Mime-Version: 1.0 (Apple Message framework v1283) X-Mailer: Apple Mail (2.1283) X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 May 2013 18:00:59 -0000 --Apple-Mail=_56BC8D65-269D-48F1-83DA-EF7987518268 Content-Type: multipart/mixed; boundary="Apple-Mail=_1D10DD3C-2B78-4F25-B78D-DF32B020C7E6" --Apple-Mail=_1D10DD3C-2B78-4F25-B78D-DF32B020C7E6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Flattered as I am that my little ARM board is being compared to a Cray, = I'd much rather that devel/apr1 actually built. ;-) The attached patch file fixes devel/apr1 when built on = FreeBSD/ARM/clang. I have not tested it with GCC or Clang/OABI, though = since this just changes the logic to use the same offsetof calculation = as Linux, I presume it works on GCC as well: --Apple-Mail=_1D10DD3C-2B78-4F25-B78D-DF32B020C7E6 Content-Disposition: attachment; filename=patch-apr__include__apr_general.h Content-Type: application/octet-stream; name="patch-apr__include__apr_general.h" Content-Transfer-Encoding: 7bit --- ./apr-1.4.6/include/apr_general.h.orig 2011-11-04 02:54:27.000000000 +0000 +++ ./apr-1.4.6/include/apr_general.h 2013-05-11 02:30:23.000000000 +0000 @@ -76,7 +76,7 @@ * @return offset */ -#if defined(CRAY) || (defined(__arm) && !defined(LINUX)) +#if defined(CRAY) #ifdef __STDC__ #define APR_OFFSET(p_type,field) _Offsetof(p_type,field) #else --Apple-Mail=_1D10DD3C-2B78-4F25-B78D-DF32B020C7E6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii A more suitable patch for upstream would probably add !defined(FreeBSD) = instead. Tim --Apple-Mail=_1D10DD3C-2B78-4F25-B78D-DF32B020C7E6-- --Apple-Mail=_56BC8D65-269D-48F1-83DA-EF7987518268 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.18 (Darwin) iQEcBAEBAgAGBQJRjodZAAoJEGMNyGo0rfFBvJQH/1ndneB+fDu03vxOt5LNRruL sjnwd0UVwsC3jsmE54U1WtYXLt6Il4HLcFRnMkknyRhEpJQDsIzuQWjYK0M3LcQC MRAO+jyk3o+mAm1jZeXfRoG1QnyspR5Otrl5tE5botfxFOl6iDni3CMAzeNSofgh FBAY/CUjfV09uNHGUqQ7kSgJauE2Z9EY9vLE3YPH7aD/AoGROU1Hmh6vlhdSALRy 6tMW2OHCxLP8hessE8Rq0/nicUBMunf/wrqm0iyjhACz+LH1lqJcv6nOXGrGpWSd 2S3n1bQMSSRKXl7cLVlqr2oxvZhnb99Ec9Apidp7Q18gD7fPFvNzValPbNovSi0= =oeOj -----END PGP SIGNATURE----- --Apple-Mail=_56BC8D65-269D-48F1-83DA-EF7987518268--