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#20308: Problem building emacs trunk on Fedora 21 x86_64 Date: Sun, 12 Apr 2015 15:01:59 -0700 Organization: UCLA Computer Science Department Message-ID: <552AEB57.8080105@cs.ucla.edu> References: <1134302952.1207243.1428842738540.JavaMail.yahoo@mail.yahoo.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050402070405030500080502" X-Trace: ger.gmane.org 1428876202 29828 80.91.229.3 (12 Apr 2015 22:03:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Apr 2015 22:03:22 +0000 (UTC) Cc: 20308-done@debbugs.gnu.org To: George R Goffe Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 13 00:03:11 2015 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 1YhPyA-0004Ur-O1 for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Apr 2015 00:03:10 +0200 Original-Received: from localhost ([::1]:46375 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhPy9-00009J-M6 for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Apr 2015 18:03:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhPy6-00008I-1j for bug-gnu-emacs@gnu.org; Sun, 12 Apr 2015 18:03:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YhPy2-0004uE-MW for bug-gnu-emacs@gnu.org; Sun, 12 Apr 2015 18:03:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36206) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhPy2-0004u7-HV for bug-gnu-emacs@gnu.org; Sun, 12 Apr 2015 18:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YhPy2-0000WV-6f for bug-gnu-emacs@gnu.org; Sun, 12 Apr 2015 18:03:02 -0400 In-Reply-To: <1134302952.1207243.1428842738540.JavaMail.yahoo@mail.yahoo.com> Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Apr 2015 22:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 20308 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 20308@debbugs.gnu.org, eggert@cs.ucla.edu, grgoffe@yahoo.com Original-Received: via spool by 20308-done@debbugs.gnu.org id=D20308.14288761331931 (code D ref 20308); Sun, 12 Apr 2015 22:03:01 +0000 Original-Received: (at 20308-done) by debbugs.gnu.org; 12 Apr 2015 22:02:13 +0000 Original-Received: from localhost ([127.0.0.1]:54212 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YhPxE-0000V5-W0 for submit@debbugs.gnu.org; Sun, 12 Apr 2015 18:02:13 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:38790) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YhPxB-0000Up-78 for 20308-done@debbugs.gnu.org; Sun, 12 Apr 2015 18:02:10 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id DB02AA60004; Sun, 12 Apr 2015 15:02:02 -0700 (PDT) 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 oTBZWCabrKLD; Sun, 12 Apr 2015 15:01:59 -0700 (PDT) Original-Received: from [192.168.1.9] (pool-100-32-155-148.lsanca.fios.verizon.net [100.32.155.148]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id B69FA39E8017; Sun, 12 Apr 2015 15:01:59 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 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:101455 Archived-At: This is a multi-part message in MIME format. --------------050402070405030500080502 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Thanks for reporting the bug. It looks like you ran the 'configure' script with the argument '--with-mmdf'. This doesn't work on Fedora 21, and as far as I know doesn't work on any currently-supported Emacs platform. Support for MMDF-based MTAs was removed from GNU mailutils and related software years ago. I expect we should remove it from Emacs too, as it's causing configuration-time trouble. I installed the attached patch, which should fix the problem, and am marking this bug as done. --------------050402070405030500080502 Content-Type: text/x-patch; name="0001-Remove-configure-s-with-mmdf-option.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-Remove-configure-s-with-mmdf-option.patch" >From 7ac684766a4923966eb3c271bf018a7bf4ab0b0d Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 12 Apr 2015 14:55:38 -0700 Subject: [PATCH] Remove configure's --with-mmdf option * configure.ac (MAIL_USE_MMDF): Remove. * etc/NEWS: Document this. * lib-src/movemail.c: Assume MAIL_USE_MMDF is not defined. Fixes: bug#20308 --- configure.ac | 5 ----- etc/NEWS | 9 ++++++++- lib-src/movemail.c | 27 ++++----------------------- 3 files changed, 12 insertions(+), 29 deletions(-) diff --git a/configure.ac b/configure.ac index d692530..858cf78 100644 --- a/configure.ac +++ b/configure.ac @@ -269,11 +269,6 @@ if test "$with_hesiod" != no; then AC_DEFINE(HESIOD, 1, [Define to support using a Hesiod database to find the POP server.]) fi -OPTION_DEFAULT_OFF([mmdf],[support MMDF mailboxes]) -if test "$with_mmdf" != no; then - AC_DEFINE(MAIL_USE_MMDF, 1, [Define to support MMDF mailboxes in movemail.]) -fi - OPTION_DEFAULT_OFF([mail-unlink],[unlink, rather than empty, mail spool after reading]) if test "$with_mail_unlink" != no; then AC_DEFINE(MAIL_UNLINK_SPOOL, 1, [Define to unlink, rather than empty, mail spool after reading.]) diff --git a/etc/NEWS b/etc/NEWS index 8ee6db6..e78a591 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -40,9 +40,16 @@ or by sticking with Emacs 24.4. If gnustep-config is not available, the old heuristics are used. --- -** The configure option `--with-pkg-config-prog' has been removed. +** The configure option '--with-pkg-config-prog' has been removed. Use './configure PKG_CONFIG=/full/name/of/pkg-config' if you need to. +--- +** The configure option '--with-mmdf' has been removed. +It was no longer useful, as it relied on libraries that are no longer +supported, and its presence led to confusion during configuration. +This affects only the 'movemail' utility; Emacs itself can still +process MMDF-format files as before. + ** The configure option '--enable-silent-rules' is now the default, and silent rules are now quieter. To get the old behavior where 'make' chatters a lot, configure with '--disable-silent-rules' or diff --git a/lib-src/movemail.c b/lib-src/movemail.c index 1618a69..231bc22 100644 --- a/lib-src/movemail.c +++ b/lib-src/movemail.c @@ -115,13 +115,9 @@ along with GNU Emacs. If not, see . */ #define MAIL_USE_SYSTEM_LOCK #endif -#ifdef MAIL_USE_MMDF -extern int lk_open (), lk_close (); -#endif - -#if !defined (MAIL_USE_SYSTEM_LOCK) && !defined (MAIL_USE_MMDF) && \ - (defined (HAVE_LIBMAIL) || defined (HAVE_LIBLOCKFILE)) && \ - defined (HAVE_MAILLOCK_H) +#if (!defined MAIL_USE_SYSTEM_LOCK \ + && (defined HAVE_LIBMAIL || defined HAVE_LIBLOCKFILE) \ + && defined HAVE_MAILLOCK_H) #include /* We can't use maillock unless we know what directory system mail files appear in. */ @@ -144,8 +140,7 @@ static bool mbx_delimit_end (FILE *); #endif #if (defined MAIL_USE_MAILLOCK \ - || (!defined DISABLE_DIRECT_ACCESS && !defined MAIL_USE_MMDF \ - && !defined MAIL_USE_SYSTEM_LOCK)) + || (!defined DISABLE_DIRECT_ACCESS && !defined MAIL_USE_SYSTEM_LOCK)) /* Like malloc but get fatal error if memory is exhausted. */ static void * @@ -229,10 +224,6 @@ main (int argc, char **argv) inname = argv[optind]; outname = argv[optind+1]; -#ifdef MAIL_USE_MMDF - mmdf_init (argv[0]); -#endif - if (*outname == 0) fatal ("Destination file name is empty", 0, 0); @@ -256,7 +247,6 @@ main (int argc, char **argv) char *lockname = 0; -#ifndef MAIL_USE_MMDF #ifndef MAIL_USE_SYSTEM_LOCK #ifdef MAIL_USE_MAILLOCK spool_name = mail_spool_name (inname); @@ -335,7 +325,6 @@ main (int argc, char **argv) delete_lockname = lockname; } #endif /* not MAIL_USE_SYSTEM_LOCK */ -#endif /* not MAIL_USE_MMDF */ #ifdef SIGCHLD signal (SIGCHLD, SIG_DFL); @@ -356,15 +345,11 @@ main (int argc, char **argv) if (setuid (getuid ()) < 0 || setregid (-1, real_gid) < 0) fatal ("Failed to drop privileges", 0, 0); -#ifndef MAIL_USE_MMDF #ifdef MAIL_USE_SYSTEM_LOCK indesc = open (inname, O_RDWR | O_BINARY); #else /* if not MAIL_USE_SYSTEM_LOCK */ indesc = open (inname, O_RDONLY | O_BINARY); #endif /* not MAIL_USE_SYSTEM_LOCK */ -#else /* MAIL_USE_MMDF */ - indesc = lk_open (inname, O_RDONLY | O_BINARY, 0, 0, 10); -#endif /* MAIL_USE_MMDF */ if (indesc < 0) pfatal_with_name (inname); @@ -474,11 +459,7 @@ main (int argc, char **argv) } #endif /* MAIL_USE_SYSTEM_LOCK */ -#ifdef MAIL_USE_MMDF - lk_close (indesc, 0, 0, 0); -#else close (indesc); -#endif #ifndef MAIL_USE_SYSTEM_LOCK if (! preserve_mail) -- 2.1.0 --------------050402070405030500080502--