|
From: Yaroslav K. <kav...@je...> - 2005-06-01 07:51:39
|
clisp from CVS head, mingw
./configure --with-mingw --with-module=dirkey --with-module=pcre \
--with-module=postgresql \
--with-module=rawsock --with-module=wildcard \
--with-module=zlib \
--with-libpcre-prefix=/usr/local \
--with-libpq-prefix=c:/PostgreSQL/8.0 \
--build build-full
....
gcc -mno-cygwin -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit
-Wreturn-type -Wno-sign-compare -O2 -fexpensive-optimizations -D_WIN32
-DUNICODE -DNO_TERMCAP_NCURSES -DDYNAMIC_FFI -I. -x none spvw.o
spvwtabf.o spvwtabs.o spvwtabo.o eval.o control.o encoding.o pathname.o
stream.o socket.o io.o array.o hashtabl.o list.o package.o record.o
weak.o sequence.o charstrg.o debug.o error.o misc.o time.o
predtype.o symbol.o lisparit.o i18n.o foreign.o win32aux.o built.o
ari80386.o modules.o /usr/local/lib/libintl.a /usr/local/lib/libiconv.a
libcharset.a libavcall.a libcallback.a -luser32 -lws2_32 -lole32
-loleaut32 -luuid /usr/local/lib/libiconv.a -L/usr/local/lib -lsigsegv
-o lisp.exe
error.o(.text+0x1a1e):error.c: undefined reference to `errno'
error.o(.text+0x1a29):error.c: undefined reference to `errno'
error.o(.text+0x1a7c):error.c: undefined reference to `errno'
error.o(.text+0x1a8a):error.c: undefined reference to `errno'
collect2: ld returned 1 exit status
make: *** [lisp.exe] Error 1
Thanks.
--
WBR, Yaroslav Kavenchuk.
|
|
From: Bruno H. <br...@cl...> - 2005-06-01 12:26:18
|
Yaroslav Kavenchuk wrote: > error.o(.text+0x1a1e):error.c: undefined reference to `errno' > error.o(.text+0x1a29):error.c: undefined reference to `errno' > error.o(.text+0x1a7c):error.c: undefined reference to `errno' > error.o(.text+0x1a8a):error.c: undefined reference to `errno' > collect2: ld returned 1 exit status > make: *** [lisp.exe] Error 1 The errno variable is normally defined in the ANSI C runtime library, which on Woe32 is msvcrt.dll. > gcc -mno-cygwin -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit > -Wreturn-type -Wno-sign-compare -O2 -fexpensive-optimizations -D_WIN32 > -DUNICODE -DNO_TERMCAP_NCURSES -DDYNAMIC_FFI -I. -x none spvw.o > spvwtabf.o spvwtabs.o spvwtabo.o eval.o control.o encoding.o pathname.o > stream.o socket.o io.o array.o hashtabl.o list.o package.o record.o > weak.o sequence.o charstrg.o debug.o error.o misc.o time.o > predtype.o symbol.o lisparit.o i18n.o foreign.o win32aux.o built.o > ari80386.o modules.o /usr/local/lib/libintl.a /usr/local/lib/libiconv.a > libcharset.a libavcall.a libcallback.a -luser32 -lws2_32 -lole32 > -loleaut32 -luuid /usr/local/lib/libiconv.a -L/usr/local/lib -lsigsegv > -o lisp.exe I would expect that "gcc -mno-cygwin" links against msvcrt. Does it not? Does it need special options to do so? Bruno |
|
From: Yaroslav K. <kav...@je...> - 2005-06-02 07:11:53
|
Bruno Haible: <skip> > The errno variable is normally defined in the ANSI C runtime library, > which on Woe32 is msvcrt.dll. <skip> > I would expect that "gcc -mno-cygwin" links against msvcrt. Does it not? > Does it need special options to do so? No, only #include <errno.h> in .c file Thanks. -- WBR, Yaroslav Kavenchuk. |
|
From: Bruno H. <br...@cl...> - 2005-06-02 14:51:35
|
Yaroslav Kavenchuk wrote: > #include <errno.h> > in .c file I see. I'm adding this to win32.d. Does it work now? Bruno |
|
From: Yaroslav K. <kav...@je...> - 2005-06-03 06:20:08
|
Bruno Haible wrote: >>#include <errno.h> >>in .c file > > > I see. I'm adding this to win32.d. Does it work now? > No. Ideas no too. -- WBR, Yaroslav Kavenchuk. |
|
From: Bruno H. <br...@cl...> - 2005-06-03 11:39:31
|
Yaroslav Kavenchuk wrote: > > I see. I'm adding this to win32.d. Does it work now? > > No. Ideas no too. What is the error message? Is it still the same? If so, can you try adding "-lmsvcrt" to the link command line and see whether it helps? Bruno |
|
From: Yaroslav K. <kav...@je...> - 2005-06-06 08:26:17
|
Bruno Haible wrote: >>>I see. I'm adding this to win32.d. Does it work now? >> >>No. Ideas no too. > > > What is the error message? Is it still the same? If so, can you try > adding > "-lmsvcrt" to the link command line and see whether it helps? In both case's: error.o(.text+0x195c):error.c: undefined reference to `errno' error.o(.text+0x1961):error.c: undefined reference to `errno' error.o(.text+0x1a31):error.c: undefined reference to `errno' error.o(.text+0x1a3c):error.c: undefined reference to `errno' collect2: ld returned 1 exit status Thanks. -- WBR, Yaroslav Kavenchuk. |