From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ashish.is@lostca.se (Ashish SHUKLA) Newsgroups: gmane.emacs.bugs Subject: bug#14923: 24.3.50; Emacs compilation broken on FreeBSD SPARC/ARM platforms Date: Sun, 21 Jul 2013 18:24:32 +0530 Organization: alt.religion.emacs Message-ID: <86ppuc8453.fsf@chateau.d.if> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1374411444 31815 80.91.229.3 (21 Jul 2013 12:57:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Jul 2013 12:57:24 +0000 (UTC) To: 14923@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 21 14:57:25 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V0tCS-00074U-1B for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Jul 2013 14:57:20 +0200 Original-Received: from localhost ([::1]:56703 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V0tCR-0000xS-Ns for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Jul 2013 08:57:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V0tCK-0000xJ-9U for bug-gnu-emacs@gnu.org; Sun, 21 Jul 2013 08:57:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V0tCC-0007XG-Q5 for bug-gnu-emacs@gnu.org; Sun, 21 Jul 2013 08:57:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46449) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V0tCC-0007Wa-JB for bug-gnu-emacs@gnu.org; Sun, 21 Jul 2013 08:57:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V0tCB-00046X-Mn for bug-gnu-emacs@gnu.org; Sun, 21 Jul 2013 08:57:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: ashish.is@lostca.se (Ashish SHUKLA) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Jul 2013 12:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14923 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.137441137015610 (code B ref -1); Sun, 21 Jul 2013 12:57:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Jul 2013 12:56:10 +0000 Original-Received: from localhost ([127.0.0.1]:40765 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V0tBI-00043h-6K for submit@debbugs.gnu.org; Sun, 21 Jul 2013 08:56:09 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46447) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V0tBD-00043A-Ky for submit@debbugs.gnu.org; Sun, 21 Jul 2013 08:56:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V0tB5-00072H-Jc for submit@debbugs.gnu.org; Sun, 21 Jul 2013 08:55:58 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:55295) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V0tB5-00072D-GA for submit@debbugs.gnu.org; Sun, 21 Jul 2013 08:55:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48156) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V0tB2-0000St-Lk for bug-gnu-emacs@gnu.org; Sun, 21 Jul 2013 08:55:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V0tAz-00071T-Oq for bug-gnu-emacs@gnu.org; Sun, 21 Jul 2013 08:55:52 -0400 Original-Received: from arati.lostca.se ([144.76.32.53]:54916) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V0tAz-000715-7S for bug-gnu-emacs@gnu.org; Sun, 21 Jul 2013 08:55:49 -0400 Original-Received: from arati.lostca.se (localhost [127.0.0.1]) by arati.lostca.se (Postfix) with ESMTP id 4D1DF95F for ; Sun, 21 Jul 2013 12:53:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=lostca.se; h=from:to :subject:date:message-id:mime-version:content-type; s=howrah; bh=GtBKD3UZfewjU9PLYbXN28pqpwg=; b=iacu8zUJhVNvl8+l2raoU9TOqTB/ UonbT6JsCHAbA3/Q0GUr98LRyLMF1aBWP04vR+wtk4uy4nnhS/clDocgoqldXtjm Gv3tLk7HOz+zayptRlyS0LUhE1weyzlR9ea6NFb+TfoeezCxUTuCQNcVLGDALBJW TTCdRO2o1Gcb/y8= Original-Received: from chateau.d.if (localhost [IPv6:::1]) by arati.lostca.se (Postfix) with ESMTP id 9ACCA95E for ; Sun, 21 Jul 2013 12:53:41 +0000 (UTC) Original-Received: from chateau.d.if (localhost [IPv6:::1]); by chateau.d.if (OpenSMTPD) with ESMTP id fc0af92e; for ; Sun, 21 Jul 2013 18:24:39 +0530 (IST) X-Face: )vGQ9yK7Y$Flebu1C>(B\gYBm)[$zfKM+p&TT[[JWl6:]S>cc$%-z7-`46Zf0B*syL.C]oCq[upTG~zuS0.$"_%)|Q@$hA=9{3l{%u^h3jJ^Zl; t7 X-Uptime: 6:17PM up 32 mins, 5 users, load averages: 0.07, 0.02, 0.04 X-Operating-System: FreeBSD/FreeBSD 9.1-RELEASE-p4/amd64 X-OpenPGP-Fingerprint: F682 CDCC 39DC 0FEA E116 20B6 C746 CFA9 E74F A4B0 X-Attribution: =?UTF-8?Q?=E0=A4=86=E0=A4=B6=E0=A5=80=E0=A4=B7?= Organisation: alt.religion.emacs X-Hashcash: 1:20:130721:bug-gnu-emacs@gnu.org::jrhdUaTO4x8iJxOT:00000000000000000000000000000000000000002w1s User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (amd64-portbld-freebsd9.1) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJ1BMVEWpqal/f39tbW1jY2Md HR2goKCenp6UlJROTk7////9/f35+fnT09ORJdieAAACVklEQVQ4jXXUP2vbQBQA8AvUTkgz5OzY Z0iGWhpS6BSrkECn0mvx0MEJ6AjtYrfoBCVDlD8naJYmNlRfwZq8+mkKlIZaGpJSYmP7Q/XkJDrJ Td8i/H68u3vHPaPufwLdf32AMA4A6GcAgvAamY1pOJiDIFqicTwLswDhfr3uxfFtkAY/GFHPMwzD 8zpnACmIOnE6js7rQb+v4NJrG9od0C+QgpHMy5jBewV+UDSMWiw1Y4fWfyV7+NGFzDsYa3pth9LJ Q4XvXxFHcJRvHOmygn5NAEabnDcQQguarnfoiwSCJ99jmKKcphsZONmWsDK9Ro7cvZOCtQdg8nje egLhc2LNlkLmsezzTFUUy5w18ocox/f0LaLgJy0zO75zk+9pp85GAj36xjqhdI0y3tq2m4dqqcWX zQWBTz8L1irvolXV4J+3q7eCDgVnttjNq6X8H+9KOZsuNk1uCzx8pSp+E9HImfJOTLdcGqo+YKnG EIovizkEn48V7BO+ch2DXcD4ENSpWiU+q8hjjbgTBZCXnZtyj0Ws4Q1Q0B2WXFtYZo65Bbyeeldw RS6qFueM80LlLA29YlVwGRYvFD+kwI/0O+A2PlpOP9GwslUVciHuYGechuBTp922YiDZCrghTknm XSyOM+D3aoRZlo0Jb42zY7DN4p2x4AeZ+QAYutx1sHwTHzMT5cMNduQ9yW3GczN4KZ86kb0c9O8T yXDeFqpl2fryPEAYGXIlezAPXYh2NgVr/gvdoHIuDwuPwOhcWE8f8mmICq41eATkn8x0kuRTIKcB wE9+/QUtiiAnYcaN7wAAAABJRU5ErkJggg== X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:76548 Archived-At: --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Following compiler error is observed on SPARC platform when compiling Emacs= 24.3: #v+ cc -std=3Dgnu99 -c -I/usr/local/include -Demacs -I. -I/home/ashish/emacs-n= ox11/work/emacs-24.3/src -I../lib -I/home/ashish/emacs-nox11/work/emacs-24.= 3/src/../lib -MMD -MF deps/sysdep.d -MP -O2 -pipe -fno-st= rict-aliasing sysdep.c In file included from lisp.h:25, from sysdep.c:39: ../lib/stdalign.h:51:1: warning: "_Alignof" redefined In file included from /usr/include/string.h:36, from ./conf_post.h:189, from ./config.h:1671, from sysdep.c:20: /usr/include/sys/cdefs.h:240:1: warning: this is the location of the previo= us definition In file included from lisp.h:25, from sysdep.c:39: ../lib/stdalign.h:82:1: warning: "_Alignas" redefined In file included from /usr/include/string.h:36, from ./conf_post.h:189, from ./config.h:1671, from sysdep.c:20: /usr/include/sys/cdefs.h:239:1: warning: this is the location of the previo= us definition In file included from sysdep.c:89: frame.h:86: error: redefinition of 'struct frame' sysdep.c: In function 'list_system_processes': sysdep.c:2684: warning: comparison is always true due to limited range of d= ata type sysdep.c:2684: warning: comparison is always true due to limited range of d= ata type sysdep.c: In function 'system_process_attributes': sysdep.c:3264: warning: comparison is always true due to limited range of d= ata type sysdep.c:3264: warning: comparison is always true due to limited range of d= ata type sysdep.c:3272: warning: comparison is always true due to limited range of d= ata type sysdep.c:3272: warning: comparison is always true due to limited range of d= ata type sysdep.c:3312: warning: comparison is always true due to limited range of d= ata type sysdep.c:3312: warning: comparison is always true due to limited range of d= ata type sysdep.c:3313: warning: comparison is always true due to limited range of d= ata type sysdep.c:3313: warning: comparison is always true due to limited range of d= ata type sysdep.c:3314: warning: comparison is always true due to limited range of d= ata type sysdep.c:3314: warning: comparison is always true due to limited range of d= ata type sysdep.c:3322: warning: comparison is always true due to limited range of d= ata type sysdep.c:3322: warning: comparison is always true due to limited range of d= ata type sysdep.c:3346: warning: comparison is always true due to limited range of d= ata type sysdep.c:3346: warning: comparison is always true due to limited range of d= ata type gmake[1]: *** [sysdep.o] Error 1 #v- This happens because Emacs' and FreeBSD's system header files define a type `struct frame` which causes conflict. The attached diff file fixes this iss= ue by renaming the FreeBSD's type before it gets defined. Following is the output of `uname -a`: #v+ FreeBSD magnus 9.1-STABLE FreeBSD 9.1-STABLE #4 r252102: Sun Jun 23 10:25:5= 0 EDT 2013 root@magnus:/usr/obj/usr/src/sys/GENERIC sparc64 =3Dv- Thanks =2D-=20 Ashish SHUKLA =E2=80=9CCensorship is telling a man he can't have a steak just because a b= aby can't chew it.=E2=80=9D (patcito, identi.ca #62762642) Sent from my Emacs --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=patch-src_sysdep.c Content-Transfer-Encoding: quoted-printable Content-Description: diff file $FreeBSD$ =2D-- src/sysdep.c.orig +++ src/sysdep.c @@ -46,7 +46,15 @@ #endif =20 #ifdef __FreeBSD__ +#include +/* machine/frame.h in Sparc/ARM has 'struct frame' which conflicts with Em= acs' 'struct frame', so rename it */ +#if defined(__sparc__) || defined(__arm__) +#define frame freebsd_sparc_frame +#endif #include +#if defined(__sparc__) || defined(__arm__) +#undef frame +#endif #include #include #endif --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (FreeBSD) iQIcBAEBCgAGBQJR69oOAAoJEMdGz6nnT6SwgzUP/jDFtHFrnJXcrjgddvy9xYHj wl0Otp1xIU0ePb5unVbQ6KjOO7RnSnS7zaJNDuTDVUx9JnFPgKjV6Jl4AEM9S4cY belMiGHoNhZHJcKOgV0NJHBx2OYubAmhhmucvLGQrYPi4ECQp6b1t/mZ6hcGwZGt GGJK2trdb/8r2RTmwrLXMxoOlSMVBQ4icL8/3etMSVnvvTIqCk0WaIPlPPhB6kQy dFahIWLEkwlUBqSDZKDHtCG6o7ayHfCS6QdXi0+EtISZj2Moz/AHAv0q4wzJA9j0 ohfH8zGgk1Pg4YFt4C+SuUK0fVyWKooTEwHmSAylrsje7RL9l3+eF18aNdYC0SeZ 7zfvKTbDsyZmOxBpPFgSlq6WLn8Ky1I0PBQTqIwNoo1dyhE+FS/q8ZL0yt6U0r7J NESh4hqNwlo34pg67kmBvrWHIAGxhk6qIER6mpeSB8/5+10GX6Gg0MgPvPPspK9l ZR71pwAUMxfs4j0vnWZ78Fb9xtxjwtRNMwX5ubaGydYz4g8VSrfIovsIeYcZu5Jq qCF55gL+0MREdZAuwGsqZGPtq8Yl0Ed31tS26ASliIfnt/vVdBCZTi7gXUTYxXk3 UUzdd9H72U1aO1MhMcwRKvaxH7FvpG0P3g3ZrFoHNvkxe9WPI1aqOW+RNaerelVb D7gPcB7ujuOtOWJwp+gu =k1o2 -----END PGP SIGNATURE----- --==-=-=--