emacs-pretest-bug
[Top][All Lists]
Advanced

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

Problem compiling on Redhat Enterprise WS 3 with X11


From: James J Dempsey
Subject: Problem compiling on Redhat Enterprise WS 3 with X11
Date: Fri, 02 Mar 2007 13:25:55 -0500

Apparently the first time I built emacs-22.0.95 on redhat Enterprise WS 3,
it defaulted to not use X11, probably because this machine didn't have the
X11 header file RPMs installed.  After installing them, I reconfigured with:

./configure --prefix=/local --x-libraries=/usr/X11R6/lib 
--x-includes=/usr/X11R6/include --with-x-toolkit=yes

and when I do, I get the following compile error:

gcc -c -D_BSD_SOURCE -DHAVE_CONFIG_H -I. -I../src 
-I/local/emacs-pretest/emacs-22.0.95/lib-src 
-I/local/emacs-pretest/emacs-22.0.95/lib-src/../src -D_BSD_SOURCE   -g -O2  
-Demacs  /local/emacs-pretest/emacs-22.0.95/lib-src/movemail.c
/local/emacs-pretest/emacs-22.0.95/lib-src/movemail.c: In function `strerror':
/local/emacs-pretest/emacs-22.0.95/lib-src/movemail.c:952: conflicting types 
for `sys_errlist'
/usr/include/bits/sys_errlist.h:28: previous declaration of `sys_errlist'
make[1]: *** [movemail.o] Error 1

Looking around, it appears that linux (at least Redhat) has strerror.  I
worked around this problem by adding

#define HAVE_STRERROR 1

to src/s/gnu-linux.h.  Not sure if that is the right solution or not.

--Jim Dempsey--







reply via email to

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