unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* EXIT_SUCCESS and NO_RETURN in /lib-src
@ 2007-02-12  6:33 William Xue
  2007-02-12 20:46 ` Eli Zaretskii
  0 siblings, 1 reply; 15+ messages in thread
From: William Xue @ 2007-02-12  6:33 UTC (permalink / raw)
  To: emacs-devel

I build emacs-unicode-2 in winxp with MinGW, and it failed in /lib-src.

It says that the compile could not find the definition of EXIT_* and  
NO_RETURN in hexl.c and ebrowser.c and sorted-doc.c.

In hexl.c, I added
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif

in ebrowser.c, I added
#define NO_RETURN

and in sorted-doc.c, I added
#else
#include <stdlib.h>
#endif
in #ifndef HAVE_STDLIB_H

Maybe this is not the right way to build emacs under windows, but it  
works. This is not the first time that I encountered these errors.
I think that somebody should have a check about them.

Another error is about the movemail.c:
---8<------------------------------------------------------------------------------------->8---
gcc -I. -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0500 -D_X86_=1 -c   
-mno-cygwin -m
cpu=i686 -O2  -Di386 -D_CRTAPI1=_cdecl  -I./inc -DWINDOWSNT -DDOS_NT  
-DSTDC_HEAD
ERS=1 -DNO_LDAV=1 -DNO_ARCHIVES=1 -DHAVE_CONFIG_H=1 -I../nt/inc -I../src  
-DUSG -
o oo-spd/i386/movemail.o movemail.c
gcc -I. -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0500 -D_X86_=1 -c   
-mno-cygwin -m
cpu=i686 -O2  -Di386 -D_CRTAPI1=_cdecl  -I./inc -DWINDOWSNT -DDOS_NT  
-DSTDC_HEAD
ERS=1 -DNO_LDAV=1 -DNO_ARCHIVES=1 -DHAVE_CONFIG_H=1 -I../nt/inc -I../src  
-o oo-s
pd/i386/pop.o pop.c
gcc -o oo-spd/i386/movemail.exe   -mno-cygwin  oo-spd/i386/movemail.o  
oo-spd/i38
6/pop.o oo-spd/i386/ntlib.o oo-spd/i386/getopt.o oo-spd/i386/getopt1.o  
-lwsock32
    -ladvapi32
Info: resolving __sys_nerr by linking to __imp___sys_nerr (auto-import)
Info: resolving __sys_errlist by linking to __imp___sys_errlist  
(auto-import)
oo-spd/i386/movemail.o(.text+0x358):movemail.c: undefined reference to  
`link'
fu000001.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname'
fu000003.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname'
nmth000000.o(.idata$4+0x0): undefined reference to `_nm___sys_nerr'
nmth000002.o(.idata$4+0x0): undefined reference to `_nm___sys_errlist'
mingw32-make: *** [oo-spd/i386/movemail.exe] Error 1

I:\opensource\emacs\lib-src>
---8<------------------------------------------------------------------------------------->8---
I  have no idea about how to do with it.

-- 
Sincerely yours,
William

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

end of thread, other threads:[~2007-02-15  1:52 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-12  6:33 EXIT_SUCCESS and NO_RETURN in /lib-src William Xue
2007-02-12 20:46 ` Eli Zaretskii
2007-02-13  3:07   ` William Xue
2007-02-13  4:25     ` Eli Zaretskii
2007-02-13  6:11       ` William Xue
2007-02-13  9:09         ` Juanma Barranquero
2007-02-13  9:15           ` William Xue
2007-02-13  9:20             ` Juanma Barranquero
2007-02-14  2:22           ` William Xue
2007-02-14  2:34             ` Juanma Barranquero
2007-02-14  2:44               ` William Xue
2007-02-14  2:58                 ` Juanma Barranquero
2007-02-15  1:52                   ` William Xue
2007-02-14 15:13             ` Eli Zaretskii
2007-02-14 14:53         ` Eli Zaretskii

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).