From unknown Mon Jun 23 07:47:42 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#5934 <5934@debbugs.gnu.org> To: bug#5934 <5934@debbugs.gnu.org> Subject: Status: 24.0.50; get rid of "unix" pre-defined macro when preprocessing Makefile Reply-To: bug#5934 <5934@debbugs.gnu.org> Date: Mon, 23 Jun 2025 14:47:42 +0000 retitle 5934 24.0.50; get rid of "unix" pre-defined macro when preprocessin= g Makefile reassign 5934 emacs submitter 5934 Miles Bader severity 5934 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 12 01:20:02 2010 Received: (at submit) by debbugs.gnu.org; 12 Apr 2010 05:20:03 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1C41-0001ey-Eo for submit@debbugs.gnu.org; Mon, 12 Apr 2010 01:20:02 -0400 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1BNT-0001O4-M5 for submit@debbugs.gnu.org; Mon, 12 Apr 2010 00:39:39 -0400 Received: from lists.gnu.org ([199.232.76.165]:44757) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1O1BMo-0003gn-Tm for submit@debbugs.gnu.org; Mon, 12 Apr 2010 00:35:22 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O1BMo-00042Y-30 for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2010 00:35:22 -0400 Received: from [140.186.70.92] (port=56012 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1BLO-0003vf-AK for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2010 00:35:21 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,URIBL_BLACK autolearn=no version=3.3.0 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O1BKY-0004au-DI for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2010 00:33:03 -0400 Received: from tyo201.gate.nec.co.jp ([202.32.8.193]:55958) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1BKX-0004aA-Or; Mon, 12 Apr 2010 00:33:02 -0400 Received: from relay41.aps.necel.com ([10.29.19.9]) by tyo201.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id o3C4WucA019646; Mon, 12 Apr 2010 13:32:56 +0900 (JST) Received: from relay41.aps.necel.com ([10.29.19.16] [10.29.19.16]) by relay41.aps.necel.com with ESMTP; Mon, 12 Apr 2010 13:32:56 +0900 Received: from dhlpc061 ([10.114.112.73] [10.114.112.73]) by relay41.aps.necel.com with ESMTP; Mon, 12 Apr 2010 13:32:56 +0900 Received: by dhlpc061 (Postfix, from userid 31295) id 9FF2352E21F; Mon, 12 Apr 2010 13:32:55 +0900 (JST) From: Miles Bader To: bug-gnu-emacs@gnu.org Subject: 24.0.50; get rid of "unix" pre-defined macro when preprocessing Makefile System-Type: x86_64-unknown-linux-gnu Blat: Foop Date: Mon, 12 Apr 2010 13:32:55 +0900 Message-ID: Lines: 159 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by eggs.gnu.org: Solaris 8 (1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.6 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 12 Apr 2010 01:19:59 -0400 Cc: emacs-devel@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Miles Bader List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.6 (----) Emacs uses the C preprocessor to process src/Makefile.in, and the CPP on many systems defines the token "unix" (to be "1") for historical reasons. This has bad results if some of the Makefile contents include that token; in particular, on my system, the definition of ALL_CFLAGS contains " -I/usr/include/gio-unix-2.0/", and due to the bogus predefined unix macro, this ends up as something that's not even legal compiler command-line syntax. Luckily, the "unix" macro isn't actually used by Makefile preprocessing, so it's simple enough to add that to the list of things which the Emacs configure script explicitly undefines when doing Makefile preprocessing. The following patch does this: diff --git a/configure.in b/configure.in index 515b779..a66f27e 100644 --- a/configure.in +++ b/configure.in @@ -3132,7 +3132,7 @@ test "${exec_prefix}" != NONE && # the C preprocessor to some helpful value like 1, or maybe the empty # string. Needless to say consequent macro substitutions are less # than conducive to the makefile finding the correct directory. -[cpp_undefs="`echo $srcdir $configuration $canonical | +[cpp_undefs="`echo $srcdir $configuration $canonical unix | sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"] Thanks, -Miles In GNU Emacs 24.0.50.12 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.0) of 2010-04-12 on dhlpc061 Windowing system distributor `The X.Org Foundation', version 11.0.10706000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ja_JP.UTF-8 value of $XMODIFIERS: @im=SCIM locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Shell-script Minor modes in effect: show-paren-mode: t recentf-mode: t rcirc-track-minor-mode: t minibuffer-electric-default-mode: t display-time-mode: t desktop-save-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-encryption-mode: t auto-compression-mode: t temp-buffer-resize-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-e C-a C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-x k C-x C-g = n i SPC n SPC n q K g g C-x C-v $ l s e C-g C-x C-v $ l s e / m s a t e r h m a s t e r / M a k e SPC h h C-y h c o n f i g u r e . i n C-s c p p C-s C-s C-s C-s > C-r m a k e f i l e . c C-a C-q C-q C-q C-q C-q C-q C-q C-q C-q C-q C-q C-q C-r c p p _ u d n e f s n d e f s C-r C-e C-b u n i x SPC C-x C-s C-x C-v M a k b s r c / C-e c C-x C-x C-r C-a C-x C-v M-p h SPC SPC . i n SPC C-g C-x k C-x C-v $ l b e / m a s t e r / C-x C-v s r c / M a SPC SPC . c C-s C-g C-x C-v M a SPC C-g C-s u n d e f C-s C-s C-s C-s C-s C-s C-a C-s - U C-s C-a C-x C-v M-n C-s C-s C-s C-x C-v M-h c o n f SPC . SPC C-s C-s C-a x r e p o r t - e m SPC Recent messages: Mark saved where search started x*DING* Mark saved where search started Note: file is write protected x*DING* Setting up indent for shell type bash setting up indent stuff Indentation variables are now local. Indentation setup for shell type bash Mark saved where search started Load-path shadows: /home/soft1/miles/.emacs.d/elpa/lua-mode-20070608/lua-mode hides /usr/local/share/emacs/site-lisp/lua-mode /usr/share/emacs22/site-lisp/dictionaries-common/ispell hides /usr/local/share/emacs/24.0.50/lisp/textmodes/ispell /usr/share/emacs22/site-lisp/dictionaries-common/flyspell hides /usr/local/share/emacs/24.0.50/lisp/textmodes/flyspell ~/src/elisp/timer hides /usr/local/share/emacs/24.0.50/lisp/emacs-lisp/timer Features: (shadow warnings emacsbug help-mode view multi-isearch autoconf autoconf-mode image-mode compface gnus-fun flow-fill pp sort gnus-cite smiley ansi-color mail-extr gnus-agent gnus-srvr nnvirtual gnus-async gnus-bcklg gnus-score score-mode gnus-dup qp gnus-ml disp-table gnus-topic gnus-nocem parse-time timezone gnus-cache pop3 byte-opt bytecomp byte-compile nnml nndraft nnmh copyright auth-source netrc nntp spam spam-stat gnus-uu yenc gnus-msg gnus-art mm-uu mml2015 epg-config mm-view smime password-cache dig mailcap gnus-sum nnoo gnus-group gnus-undo nnmail mail-source format-spec gnus-start gnus-spec gnus-int gnus-range gnus-win yow cookie1 info nxml-uchnm rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltok sh-script executable vc-arch face-remap vc-git dired make-mode vc-mcvs vc-cvs flyspell ispell cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs lua-mode-autoloads xml-rpc-autoloads package reporter server edmacro kmacro jka-compr uniquify paren recentf tree-widget rcirc time-date ring minibuf-eldef gnus gnus-ems nnheader gnus-util wid-edit time desktop cus-start cus-load advice help-fns advice-preload dabbrev easy-mmode derived message sendmail regexp-opt rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader japan-util tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind font-render-setting gtk x-toolkit x multi-tty emacs) -- What the fuck do white people have to be blue about!? Banana Republic ran out of Khakis? The Espresso Machine is jammed? Hootie and The Blowfish are breaking up??! Shit, white people oughtta understand, their job is to GIVE people the blues, not to get them! -- George Carlin From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 12 02:26:16 2010 Received: (at control) by debbugs.gnu.org; 12 Apr 2010 06:26:16 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1D67-0002A0-Gf for submit@debbugs.gnu.org; Mon, 12 Apr 2010 02:26:15 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1D65-00029u-1l for control@debbugs.gnu.org; Mon, 12 Apr 2010 02:26:13 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1O1D5z-0002vx-Nl; Mon, 12 Apr 2010 02:26:07 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19394.48383.665573.849317@fencepost.gnu.org> Date: Mon, 12 Apr 2010 02:26:07 -0400 From: Glenn Morris To: control Subject: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: magenta X-Ran: (v|eEK^K!CVW&ARn1w|5i|z7]N3t166=kUr-J'QBwEvBPk]->4LmI<3+O5iN0!C8nqk2T1 X-Debbugs-No-Ack: yes X-Spam-Score: -5.1 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.1 (-----) merge 5934 5857 reassign 5933 emacs,ns reassign 2423 emacs,w32 From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 12 09:59:25 2010 Received: (at control) by debbugs.gnu.org; 12 Apr 2010 13:59:25 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1KAe-0006ZK-Fo for submit@debbugs.gnu.org; Mon, 12 Apr 2010 09:59:24 -0400 Received: from pantheon-po33.its.yale.edu ([130.132.50.94]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1KAc-0006ZF-Nx for control@debbugs.gnu.org; Mon, 12 Apr 2010 09:59:23 -0400 Received: from furry (adsl-99-89-94-28.dsl.wlfrct.sbcglobal.net [99.89.94.28]) (authenticated bits=0) by pantheon-po33.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o3CDxHAR013048 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 12 Apr 2010 09:59:17 -0400 Received: by furry (Postfix, from userid 1000) id 4137BC055; Mon, 12 Apr 2010 09:59:17 -0400 (EDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: merge 5934 5857 Date: Mon, 12 Apr 2010 09:59:17 -0400 Message-ID: <87633wydoq.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) merge 5934 5857 thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 12 10:00:17 2010 Received: (at 5934) by debbugs.gnu.org; 12 Apr 2010 14:00:17 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1KBU-0006aJ-Oj for submit@debbugs.gnu.org; Mon, 12 Apr 2010 10:00:17 -0400 Received: from pantheon-po15.its.yale.edu ([130.132.50.71]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1KBS-0006Zm-Sw for 5934@debbugs.gnu.org; Mon, 12 Apr 2010 10:00:15 -0400 Received: from furry (adsl-99-89-94-28.dsl.wlfrct.sbcglobal.net [99.89.94.28]) (authenticated bits=0) by pantheon-po15.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o3CE02Dr027481 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 12 Apr 2010 10:00:03 -0400 Received: by furry (Postfix, from userid 1000) id C1018C055; Mon, 12 Apr 2010 10:00:02 -0400 (EDT) From: Chong Yidong To: Miles Bader Subject: Re: 24.0.50; get rid of "unix" pre-defined macro when preprocessing Makefile References: Date: Mon, 12 Apr 2010 10:00:02 -0400 In-Reply-To: (Miles Bader's message of "Mon, 12 Apr 2010 13:32:55 +0900") Message-ID: <87fx30py8t.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.95 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 5934 Cc: 5934@debbugs.gnu.org, emacs-devel@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Miles Bader writes: > Emacs uses the C preprocessor to process src/Makefile.in, and the CPP on > many systems defines the token "unix" (to be "1") for historical > reasons. > > This has bad results if some of the Makefile contents include that > token; in particular, on my system, the definition of ALL_CFLAGS > contains " -I/usr/include/gio-unix-2.0/", and due to the bogus > predefined unix macro, this ends up as something that's not even legal > compiler command-line syntax. > > Luckily, the "unix" macro isn't actually used by Makefile > preprocessing, so it's simple enough to add that to the list of things > which the Emacs configure script explicitly undefines when doing > Makefile preprocessing. > > The following patch does this: Looks good, could you check it into the trunk? From unknown Mon Jun 23 07:47:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 06 Jun 2010 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 27 22:38:03 2010 Received: (at control) by debbugs.gnu.org; 28 Aug 2010 02:38:04 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OpBIx-0003fC-8V for submit@debbugs.gnu.org; Fri, 27 Aug 2010 22:38:03 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OpBIv-0003ek-CN; Fri, 27 Aug 2010 22:38:01 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OpBKL-0006jL-Q5; Fri, 27 Aug 2010 22:39:29 -0400 To: Vincent Lefevre Subject: Re: bug#6932: Buggy src/Makefile generation References: <20100828001245.GA8219@prunille.vinc17.org> From: Glenn Morris X-Spook: plutonium Guantanamo Mantis Elvis John Kerry Freeh Ruby X-Ran: x2UJZBQ6fHACoKy`,`}bz\.\;>)7tllcAXOx@vIDYAD[;+t~3Vr,'bW4is-IvOB$(6+/E` X-Hue: magenta X-Debbugs-No-Ack: yes X-Attribution: GM Date: Fri, 27 Aug 2010 22:39:29 -0400 In-Reply-To: <20100828001245.GA8219@prunille.vinc17.org> (Vincent Lefevre's message of "Sat\, 28 Aug 2010 02\:12\:45 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: control Cc: 6932@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) unarchive 5857 forcemerge 5857 6932 stop Vincent Lefevre wrote: > -I/usr/include/gio-1 -2.0/ > > instead of > > -I/usr/include/gio-unix-2.0/ This is a duplicate of the fixed bug http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5857 From unknown Mon Jun 23 07:47:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 25 Sep 2010 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator