From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#7859: syncing Emacs from sources maintained elsewhere Date: Tue, 18 Jan 2011 22:04:59 -0800 Organization: UCLA Computer Science Department Message-ID: <4D367F0B.3040808__19821.4240059771$1295423292$gmane$org@cs.ucla.edu> References: <4D2BA939.5090903@cs.ucla.edu> <4D34A88F.4080400@cs.ucla.edu> <4D35D842.5030003@cs.ucla.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1295423293 12987 80.91.229.12 (19 Jan 2011 07:48:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 19 Jan 2011 07:48:13 +0000 (UTC) Cc: 7859@debbugs.gnu.org, bug-gnulib , 7856@debbugs.gnu.org, emacs-devel@gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 19 08:48:08 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PfSlz-0003lO-IM for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Jan 2011 08:48:07 +0100 Original-Received: from localhost ([127.0.0.1]:36774 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PfSly-00024c-QQ for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Jan 2011 02:48:06 -0500 Original-Received: from [140.186.70.92] (port=50531 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PfRTD-0006nX-Nb for bug-gnu-emacs@gnu.org; Wed, 19 Jan 2011 01:24:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PfRTC-0001aO-C4 for bug-gnu-emacs@gnu.org; Wed, 19 Jan 2011 01:24:39 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40398) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PfRTC-0001aK-9I for bug-gnu-emacs@gnu.org; Wed, 19 Jan 2011 01:24:38 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PfR3S-0006Jj-NF; Wed, 19 Jan 2011 00:58:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Jan 2011 05:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7859 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7859-submit@debbugs.gnu.org id=B7859.129541663824229 (code B ref 7859); Wed, 19 Jan 2011 05:58:02 +0000 Original-Received: (at 7859) by debbugs.gnu.org; 19 Jan 2011 05:57:18 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PfR2j-0006Ii-1t for submit@debbugs.gnu.org; Wed, 19 Jan 2011 00:57:17 -0500 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PfR2f-0006IN-2a; Wed, 19 Jan 2011 00:57:14 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id BF79C39E80DC; Tue, 18 Jan 2011 22:05:00 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id szRaz3w9D0LX; Tue, 18 Jan 2011 22:05:00 -0800 (PST) Original-Received: from [192.168.1.10] (pool-71-189-109-235.lsanca.fios.verizon.net [71.189.109.235]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id E61CC39E8083; Tue, 18 Jan 2011 22:04:59 -0800 (PST) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 19 Jan 2011 00:58:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Wed, 19 Jan 2011 02:48:01 -0500 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:43440 Archived-At: On 01/18/2011 05:20 PM, Glenn Morris wrote: > the Mac (nextstep) port seems unhappy with the changes: > > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7856 > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7859 > > [compiling unexmacosx.c] > In file included from ../lib/unistd.h:110, > from unexmacosx.c:94: > ../lib/getopt.h:196: error: redefinition of 'struct option' Thanks for mentioning that, as I don't follow the bug list. This almost certainly seems to be a bug with gnulib's treatment of getopt.h and unistd.h. gnulib's unistd.h includes its getopt.h, which defines 'struct option'. I suspect the problem is that MacOS X already defines 'struct option' somewhere; or perhaps somehow we're including both the MacOS X 'getopt.h' and Emacs's getopt.h. What does src/config.h #define __GETOPT_PREFIX to? Would it be possible to send the output of the command of "gcc -E", e.g., something like this (substituting the -I options that the failed compile used)? gcc -E -Demacs -DHAVE_CONFIG_H -I. -I/usr/local/emacs/trunk/src -I../lib \ -I/usr/local/emacs/trunk/src/../lib -I/opt/local/include/libxml2 \ -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include \ -I/opt/local/include \ unexmacosx.c That would help us find out which earlier header file is defining 'struct option'. Also, it might be helpful to know what src/config.h looks like. Unfortunately I do not have access to a Mac OS X host so I can't debug this directly.