Dear Bug Team!
I can not compile xemacs because cygwin does not contain "inttypes.h" header
which defines "intptr_t" and "uintptr_t" types. Instead of it has
"cygwin
/types.h" header which defines types above. Xemacs configure system does not
check this situation and finally defined types in the "src/lisp.h" header
causes compilation error because types defined different ways in "types.h"
and "lisp.h".
I performed some config modifications, and I modified the "lisp.h".
Maybe it is
not the best way, but I hope help you. I have moved the source tree into a
Subversion repository, and I used it to show modifications:
C:\home\fzoltan\ws\xemacs\current>svnlook changed c:\home\fzoltan\svn\repo\
U xemacs/current/configure
U xemacs/current/src/lisp.h
U xemacs/current/src/config.h.in
C:\home\fzoltan\ws\xemacs\current>svn diff --revision PREV:COMMITTED
configure
Index: configure
===================================================================
--- configure (revision 4)
+++ configure (revision 5)
@@ -3482,7 +3482,7 @@
test -n "$YACC" || YACC="yacc"
-for ac_hdr in a.out.h elf.h cygwin/version.h fcntl.h
inttypes.h libgen.h locale.h mach/mach.h sys/param.h
sys/pstat.h sys/time.h sys/timeb.h sys/un.h ulimit.h unistd.h
+for ac_hdr in a.out.h elf.h cygwin/version.h cygwin/types.h
fcntl.h inttypes.h libgen.h locale.h mach/mach.h sys/param.h
sys/pstat.h sys/time.h sys/timeb.h sys/un.h ulimit.h unistd.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
C:\home\fzoltan\ws\xemacs\current>svn diff --revision PREV:COMMITTED
src/lisp.h
Index: src/lisp.h
===================================================================
--- src/lisp.h (revision 4)
+++ src/lisp.h (revision 5)
@@ -2264,6 +2264,8 @@
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
+#elif defined(HAVE_CYGWIN_TYPES_H)
+#include <cygwin/types.h>
#elif SIZEOF_VOID_P == SIZEOF_INT
typedef int intptr_t;
typedef unsigned int uintptr_t;
C:\home\fzoltan\ws\xemacs\current>svn diff --revision PREV:COMMITTED
src/config.h.in
Index: src/config.h.in
===================================================================
--- src/config.h.in (revision 4)
+++ src/config.h.in (revision 5)
@@ -225,6 +225,7 @@
#undef HAVE_A_OUT_H
#undef HAVE_ELF_H
#undef HAVE_CYGWIN_VERSION_H
+#undef HAVE_CYGWIN_TYPES_H
#undef HAVE_FCNTL_H
#undef HAVE_INTTYPES_H
#undef HAVE_LIBGEN_H
C:\home\fzoltan\ws\xemacs\current>svn diff --revision PREV:COMMITTED
configure.in
Index: configure.in
===================================================================
--- configure.in (revision 4)
+++ configure.in (revision 5)
@@ -2383,6 +2383,7 @@
a.out.h dnl
elf.h dnl
cygwin/version.h dnl
+ cygwin/types.h dnl
fcntl.h dnl
inttypes.h dnl
libgen.h dnl
Thank you for jour job and good luck!
Zoltan Filyo
================================================================
System Info to help track down your bug:
---------------------------------------
uname -a: CYGWIN_NT-5.0 FZ 1.3.21(0.77/3/2) 2003-03-12 00:24 i686
unknown unknown Cygwin
./configure '--with-dragndrop' '--with-postgresql=no'
'--with-x=no'
'--with-mule' '--prefix=/usr/local'
'--package-path=/usr/local/lib/xemacs/xemacs-packages'
'--with-ipv6-cname=no'
XEmacs 21.4.12 "Portable Code" configured for `i686-pc-cygwin'.
Compilation / Installation:
Source code location:
/cygdrive/c/home/fzoltan/ws/xemacs/current
Installation prefix: /usr/local
Operating system description file: `s/cygwin32.h'
Machine description file: `m/intel386.h'
Compiler: gcc
-I/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../include/noX
-I/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../include/noX -g -O3
-Wall -Wno-switch -Winline -Wmissing-prototypes -Wsign-compare -Wshadow
-Wpointer-arith
Relocating allocator for buffers: no
GNU version of malloc: yes
Window System:
Compiling in support for the Microsoft window system.
Using MS-Windows menubars.
Using MS-Windows scrollbars.
Using MS-Windows dialog boxes.
Using MS-Windows native widgets.
Compiling in support for Drag'n'Drop (EXPERIMENTAL).
- Drag'n'Drop prototype: msw.
TTY:
Compiling in support for ncurses.
Images:
Compiling in support for GIF images (builtin).
Compiling in support for XPM images.
Compiling in support for PNG images.
Compiling in support for JPEG images.
Compiling in support for TIFF images.
Sound:
Compiling in support for sound (native).
Databases:
Compiling in support for GNU DBM.
Internationalization:
Compiling in support for Mule (multi-lingual Emacs).
Compiling in support for file coding.
Mail:
Compiling in support for POP mail retrieval.
Other Features:
Inhibiting IPv6 canonicalization at startup.
Compiling in support for dynamic shared object modules.