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

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

make in Cygwin fails on compiling callproc.c


From: Maks Romih
Subject: make in Cygwin fails on compiling callproc.c
Date: Sun, 1 Oct 2006 15:55:52 +0200 (CEST)

Done the following:

-- got a fresh new machine preinstalled wtih Windows XP Home edition, no Visual 
C or any development tools
-- installed the newest Cygwin I could get on www
-- in rxvt (a Cygwin console window) unpacked emacs-21.4a.tar.gz
-- mounted the directory with mount -t
-- cd emacs-21.4/nt; ./configure.bat; make

Make fails on file src/callproc.c with conflicting types for egetenv. I look 
into the sources. I see that the definition of egetenv in lisp.h is guarded 
with #ifdef USE_CRT_DLL. I try to run the command gcc, as I see it from make, 
but leave the -IUSE_CRT_DLL=1. It compiles OK and then make goes successfully 
forward until the end.

I run make install and everything seems OK.

I suggest you repair somehow the condition in #ifdef USE_CRT_DLL in lisp.h to 
not skip the definition when in Cygwin.

I also miss the information about newer versions of gmake etc. in INSTALL and 
README and I found the instructions about mounting text!=binary confusing. I 
had to try both ways and I still don't know if it's important at all.

Some (maybe) useful facts of my installation:

$ uname

CYGWIN_NT-5.1 MAKSRMOB 1.5.21(0.156/4/2) 2006-07-30 14:21 i686 Cygwin

$ gcc -v
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with: /gcc/gcc-3.4.4/gcc-3.4.4-1/configure --verbose --prefix=/usr 
--exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib 
--mandir=/usr/share/man --infodir=/usr/share/info 
--enable-languages=c,ada,c++,d,f77,java,objc --enable-nls 
--without-included-gettext --enable-version-specific-runtime-libs --without-x 
--enable-libgcj --disable-java-awt --with-system-zlib --enable-interpreter 
--disable-libgcj-debug --enable-threads=posix --enable-java-gc=boehm 
--disable-win32-registry --enable-sjlj-exceptions --enable-hash-synchronization 
--enable-libstdcxx-debug : (reconfigured) 
Thread model: posix
gcc version 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)





reply via email to

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