help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fail to make when install emacs22.2, make[1]: *** [movemail.o] Error 1


From: z h
Subject: fail to make when install emacs22.2, make[1]: *** [movemail.o] Error 1
Date: Wed, 3 Jun 2009 18:18:51 +0800

when I install emacs22.2, this happened. Someone said I need to install the XFree86 development libraries, but it doesn't work.
I also try a patch like this:

--- movemail.c.~1.99.~ 2009-02-12 09:07:07.000000000 +0100
+++ movemail.c 2009-02-12 09:25:41.000000000 +0100
@@ -60,6 +60,7 @@
#include <sys/file.h>
#include <stdio.h>
#include <errno.h>
+#include <time.h>

#include <getopt.h>
#ifdef HAVE_UNISTD_H
@@ -375,7 +376,7 @@
       int lockcount = 0;
       int status = 0;
#if defined (MAIL_USE_MAILLOCK) && defined (HAVE_TOUCHLOCK)
-      long touched_lock, now;
+      time_t touched_lock, now;
#endif

       setuid (getuid ());
@@ -684,7 +685,6 @@
#endif
#include <pwd.h>
#include <string.h>
-#include <time.h>

#define NOTOK (-1)
#define OK 0

unlucky it doesn't work too. any suggestion?

the srceenshot:
[root@hellow emacs-22.2]# make
cd lib-src; make all  \
          CC='gcc' CFLAGS='-g -O2 -Wno-pointer-sign ' CPPFLAGS='-D_BSD_SOURCE  ' \
          LDFLAGS='-Wl,-znocombreloc -L/usr/lib64' MAKE='make'
make[1]: Entering directory `/root/emacs-tool/emacs-22.2/lib-src'
gcc -c -D_BSD_SOURCE -DHAVE_CONFIG_H -I. -I../src -I/root/emacs-tool/emacs-22.2/lib-src -I/root/emacs-tool/emacs-22.2/lib-src/../src -D_BSD_SOURCE   -g -O2 -Wno-pointer-sign  -Demacs  /root/emacs-tool/emacs-22.2/lib-src/movemail.c
/root/emacs-tool/emacs-22.2/lib-src/movemail.c: In function 'strerror':
/root/emacs-tool/emacs-22.2/lib-src/movemail.c:952: error: conflicting types for 'sys_errlist'
/usr/include/bits/sys_errlist.h:28: error: previous declaration of 'sys_errlist' was here
make[1]: *** [movemail.o] Error 1
make[1]: Leaving directory `/root/emacs-tool/emacs-22.2/lib-src'
make: *** [lib-src] Error 2

reply via email to

[Prev in Thread] Current Thread [Next in Thread]