From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.comp.lib.gnulib.bugs,gmane.emacs.devel Subject: Re: syncing Emacs from sources maintained elsewhere Date: Tue, 18 Jan 2011 22:04:59 -0800 Organization: UCLA Computer Science Department Message-ID: <4D367F0B.3040808@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 1295418744 28081 80.91.229.12 (19 Jan 2011 06:32:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 19 Jan 2011 06:32:24 +0000 (UTC) Cc: 7859@debbugs.gnu.org, bug-gnulib , 7856@debbugs.gnu.org, emacs-devel@gnu.org To: Glenn Morris Original-X-From: bug-gnulib-bounces+gnu-bug-gnulib=m.gmane.org@gnu.org Wed Jan 19 07:32:20 2011 Return-path: Envelope-to: gnu-bug-gnulib@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 1PfRab-0000PC-Td for gnu-bug-gnulib@m.gmane.org; Wed, 19 Jan 2011 07:32:18 +0100 Original-Received: from localhost ([127.0.0.1]:53978 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PfRaa-0000lk-Ls for gnu-bug-gnulib@m.gmane.org; Wed, 19 Jan 2011 01:32:16 -0500 Original-Received: from [140.186.70.92] (port=59099 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PfRDc-0000JE-Ka for bug-gnulib@gnu.org; Wed, 19 Jan 2011 01:08:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PfRAG-0006Wq-AB for bug-gnulib@gnu.org; Wed, 19 Jan 2011 01:05:05 -0500 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:45769) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PfRAF-0006W5-OQ; Wed, 19 Jan 2011 01:05:04 -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-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnulib-bounces+gnu-bug-gnulib=m.gmane.org@gnu.org Errors-To: bug-gnulib-bounces+gnu-bug-gnulib=m.gmane.org@gnu.org Xref: news.gmane.org gmane.comp.lib.gnulib.bugs:24796 gmane.emacs.devel:134725 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.