unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#20308: Problem building emacs trunk on Fedora 21 x86_64
@ 2015-04-12 12:45 George R Goffe
  2015-04-12 22:01 ` Paul Eggert
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: George R Goffe @ 2015-04-12 12:45 UTC (permalink / raw)
  To: 20308

[-- Attachment #1: Type: text/plain, Size: 663 bytes --]

Hi,
I'm building emacs from the trunk tree and am seeing this problem:
   1621 /sdi1/exphome/clipper/export/home/tools/emacs/trunk/lib-src/movemail.c:233: undefined reference to `mmdf_init'
   1622 /sdi1/exphome/clipper/export/home/tools/emacs/trunk/lib-src/movemail.c:361: undefined reference to `lk_open'
   1623 /sdi1/exphome/clipper/export/home/tools/emacs/trunk/lib-src/movemail.c:473: undefined reference to `lk_close'
   1624 collect2: error: ld returned 1 exit status
   1625 Makefile:357: recipe for target 'movemail' failed
   1626 make[1]: *** [movemail] Error 1

Am I doing something wrong or is this a bug?
Regards,
George...

[-- Attachment #2: Type: text/html, Size: 1336 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#20308: Problem building emacs trunk on Fedora 21 x86_64
  2015-04-12 12:45 bug#20308: Problem building emacs trunk on Fedora 21 x86_64 George R Goffe
@ 2015-04-12 22:01 ` Paul Eggert
  2015-04-13  4:06 ` George R Goffe
  2015-04-26  1:09 ` Paul Eggert
  2 siblings, 0 replies; 5+ messages in thread
From: Paul Eggert @ 2015-04-12 22:01 UTC (permalink / raw)
  To: George R Goffe; +Cc: 20308-done

[-- Attachment #1: Type: text/plain, Size: 502 bytes --]

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.

[-- Attachment #2: 0001-Remove-configure-s-with-mmdf-option.patch --]
[-- Type: text/x-patch, Size: 4730 bytes --]

From 7ac684766a4923966eb3c271bf018a7bf4ab0b0d Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
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 <http://www.gnu.org/licenses/>.  */
 #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 <maillock.h>
 /* 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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* bug#20308: Problem building emacs trunk on Fedora 21 x86_64
  2015-04-12 12:45 bug#20308: Problem building emacs trunk on Fedora 21 x86_64 George R Goffe
  2015-04-12 22:01 ` Paul Eggert
@ 2015-04-13  4:06 ` George R Goffe
  2015-04-16  5:25   ` George R Goffe
  2015-04-26  1:09 ` Paul Eggert
  2 siblings, 1 reply; 5+ messages in thread
From: George R Goffe @ 2015-04-13  4:06 UTC (permalink / raw)
  To: 20308

[-- Attachment #1: Type: text/plain, Size: 1016 bytes --]

Hi,
I'm building emacs from the trunk tree and am seeing this problem:
make[2]: Leaving directory '/sdi1/exphome/clipper/export/home/tools/emacs/trunk/lisp'
if test "no" = "yes"; then \
  rm -f bootstrap-emacs; \
  ln temacs bootstrap-emacs; \
else \
  ./temacs --batch --load loadup bootstrap || exit 1; \
  test "X" = X ||  -zex emacs; \
  mv -f emacs bootstrap-emacs; \
fi
Fatal error 6: Aborted/bin/bash: line 7:  4176 Segmentation fault      (core dumped) ./temacs --batch --load loadup bootstrap
Makefile:833: recipe for target 'bootstrap-emacs' failed
make[1]: *** [bootstrap-emacs] Error 1
make[1]: Leaving directory '/sdi1/exphome/clipper/export/home/tools/emacs/trunk/src'
Makefile:379: recipe for target 'src' failed
make: *** [src] Error 2

 rc=$?
+ rc=2

Am I doing something wrong or is this a bug?
Regards,
George...
 
I'm building emacs from the trunk tree and am seeing this problem:

Am I doing something wrong or is this a bug?
Regards,
George...


  

[-- Attachment #2: Type: text/html, Size: 3597 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#20308: Problem building emacs trunk on Fedora 21 x86_64
  2015-04-13  4:06 ` George R Goffe
@ 2015-04-16  5:25   ` George R Goffe
  0 siblings, 0 replies; 5+ messages in thread
From: George R Goffe @ 2015-04-16  5:25 UTC (permalink / raw)
  To: 20308

Hi,

I'm building emacs from the trunk tree and am seeing this problem:
make[2]: Leaving directory '/sdi1/exphome/clipper/export/home/tools/emacs/trunk/lisp'
if test "no" = "yes"; then \
  rm -f bootstrap-emacs; \
  ln temacs bootstrap-emacs; \
else \
  ./temacs --batch --load loadup bootstrap || exit 1; \
  test "X" = X ||  -zex emacs; \
  mv -f emacs bootstrap-emacs; \
fi
Fatal error 6: Aborted/bin/bash: line 7:  4176 Segmentation fault      (core dumped) ./temacs --batch --load loadup bootstrap
Makefile:833: recipe for target 'bootstrap-emacs' failed
make[1]: *** [bootstrap-emacs] Error 1
make[1]: Leaving directory '/sdi1/exphome/clipper/export/home/tools/emacs/trunk/src'
Makefile:379: recipe for target 'src' failed
make: *** [src] Error 2

 rc=$?
+ rc=2


Am I doing something wrong or is this a bug?

Regards,

George...



 

I'm building emacs from the trunk tree and am seeing this problem:


Am I doing something wrong or is this a bug?

Regards,

George...





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#20308: Problem building emacs trunk on Fedora 21 x86_64
  2015-04-12 12:45 bug#20308: Problem building emacs trunk on Fedora 21 x86_64 George R Goffe
  2015-04-12 22:01 ` Paul Eggert
  2015-04-13  4:06 ` George R Goffe
@ 2015-04-26  1:09 ` Paul Eggert
  2 siblings, 0 replies; 5+ messages in thread
From: Paul Eggert @ 2015-04-26  1:09 UTC (permalink / raw)
  To: George R Goffe; +Cc: 20308

> Fatal error 6: Aborted/bin/bash: line 7:  4176 Segmentation fault      (core dumped) ./temacs --batch --load loadup bootstrap


Hmm, I regularly build the GNU Emacs master on Fedora 21 x86-64, and I don't run 
into the problem.  What happens if you build as follows?  Get a fresh checkout 
from the master, and then run:

./autogen.sh
./configure CFLAGS='-g3 -O0'
make

If this doesn't work for you, please email us what it outputs.  If it crashes 
the same way as before, please do this:

cd src
gdb temacs
(gdb) run --batch --load loadup bootstrap
(gdb) backtrace






^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-04-26  1:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-12 12:45 bug#20308: Problem building emacs trunk on Fedora 21 x86_64 George R Goffe
2015-04-12 22:01 ` Paul Eggert
2015-04-13  4:06 ` George R Goffe
2015-04-16  5:25   ` George R Goffe
2015-04-26  1:09 ` Paul Eggert

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).