|
From: Yaroslav K. <kav...@gm...> - 2011-07-08 13:52:05
|
Sam Steingold wrote:
> of course it does not - it's in libgnu.a.
> how about this:
>
> diff -r d34dd44824e9 src/makemake.in
> --- a/src/makemake.in Fri Jul 08 09:08:50 2011 -0400
> +++ b/src/makemake.in Fri Jul 08 09:08:56 2011 -0400
> @@ -2334,6 +2334,7 @@ elif [ $CROSS = true ]; then
> else
> echol "UTILCC=\$(CC)"
> fi
> +EXTRAOBJ=${GLLIB_A}
> UTILCOMPILE="\$(UTILCC) \$(CPPFLAGS) \$(CFLAGS) \$(CLFLAGS) ${EXTRAOBJ}"
> for util in ${UTILS} ; do
> echol "${util}${HEXE} : ${UTILDIR_M}${util}.c"
>
>
> you might need to play with the argument order; maybe try edititing the
> Makefile directly putting libgnu.a before or after the object file(?)
>
no, only if I set EXTRAOBJ=gnulib/malloc.a
next:
gcc -I/usr/local/include -I/home/src/clisp/clisp/build-full-debug/gllib
-g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type
-Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral
-falign-functions=4 -D_WIN32 -g -O0 -DDEBUG_OS_ERROR -DDEBUG_SPVW
-DDEBUG_BYTECODE -DSAFETY=3 -DENABLE_UNICODE -I/usr/local/include
-DDYNAMIC_FFI -I. -c spvwtabs.c
In file included from ../src/lispbibl.d:1935:0,
from ../src/spvwtabs.d:8:
../src/win32.d:328:0: warning: "HAVE_IPV4" redefined
config.h:438:0: note: this is the location of the previous definition
../src/win32.d:329:0: warning: "HAVE_IPV6" redefined
config.h:441:0: note: this is the location of the previous definition
In file included from ../src/spvwtabs.d:42:0:
../src/constsym.d:403:1: error: 'struct symbol_tab_' has no member named
'S_listen_used_without_including_sys_socket_h'
../src/constsym.d:403:1: warning: missing initializer
../src/constsym.d:403:1: warning: (near initialization for
'symbol_tab_data.S_listen.symvalue')
../src/constsym.d:404:1: warning: missing initializer
........
../src/constsym.d:2100:1: warning: (near initialization for
'symbol_tab_data.S_foreign_call_in.symvalue')
../src/spvwtabs.d:44:7: warning: missing initializer
../src/spvwtabs.d:44:7: warning: (near initialization for
'symbol_tab_data.S_listen')
make: *** [spvwtabs.o] Error 1
--
WBR, Yaroslav Kavenchuk
|
|
From: Yaroslav K. <kav...@gm...> - 2011-07-25 10:28:04
|
Sam Steingold wrote:
>
> so add "undef close"&c&c&c.
>
ok. spvwtab*.d:
#include "lispbibl.c"
#undef listen
#undef close
#undef select
win32aux.d:
#include "lispbibl.c"
#undef select
#undef listen
stream.d:
#include "lispbibl.c"
#undef listen
#undef select
clisp.c:412:
W32ERR(WaitForSingleObject);
not
w32err(WaitForSingleObject);
clisp.c:419:
int status = FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER |
not
int status = FormatMessage(FeORMAT_MESSAGE_ALLOCATE_BUFFER |
Now:
;; MODPREP: "g:/gnu/home/src/clisp/clisp/modules/regexp/regexi.c" -->
#P"G:regexi.m.c"
;; MODPREP: reading
"g:/gnu/home/src/clisp/clisp/modules/regexp/regexi.c": 5,332 bytes, 141
lines
;; MODPREP: 11 objects, 3 DEFUNs
;; packages: ("REGEXP")
MODPREP: wrote G:regexi.m.c (9,732 bytes)
gcc -I/usr/local/include -I/home/src/clisp/clisp/build-full-debug/gllib
-I/home/src/clisp/clisp/build-full-debug -g -O2 -W -Wswitch -Wcomment
-Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations
-Wno-sign-compare -Wno-format-nonliteral -falign-functions=4 -D_WIN32 -g
-O0 -DDEBUG_OS_ERROR -DDEBUG_SPVW -DDEBUG_BYTECODE -DSAFETY=3
-DENABLE_UNICODE -I/usr/local/include -DDYNAMIC_FFI -I.
-IG:\\gnu\\home\\src\\clisp\\clisp\\build-full-debug\\linkkit \
-c regexi.m.c -o regexi.o
g:/gnu/home/src/clisp/clisp/modules/regexp/regexi.c:12:19: fatal error:
regex.h: No such file or directory
compilation terminated.
make[1]: *** [regexi.o] Error 1
make[1]: Leaving directory `/home/src/clisp/clisp/build-full-debug/regexp'
make: *** [regexp] Error 2
regex.h is present only in src/gllib
I copy it to build/gllib.
Next:
configure: ** Readline (Headers, Variables & Functions)
checking for library containing tgetent... -ltermcap
checking readline/readline.h usability... no
checking readline/readline.h presence... no
checking for readline/readline.h... no
configure: error: in `/home/src/clisp/clisp/build-full-debug/readline':
configure: error: despite --with-readline, GNU readline was not found
(try --with-libreadline-prefix)
but --with-libreadline-prefix present in './configure...'
--
WBR, Yaroslav Kavenchuk
|
|
From: Sam S. <sd...@gn...> - 2011-07-25 22:21:41
|
> * Yaroslav Kavenchuk <xni...@tz...> [2011-07-25 13:27:52 +0300]:
>
> ok. spvwtab*.d:
>
> #include "lispbibl.c"
> #undef listen
> #undef close
> #undef select
is "undef select" really necessary?!
>
> win32aux.d:
>
> #include "lispbibl.c"
> #undef select
> #undef listen
>
>
> stream.d:
>
> #include "lispbibl.c"
> #undef listen
> #undef select
>
are these two really necessary?
>
> clisp.c:412:
>
> W32ERR(WaitForSingleObject);
> not
> w32err(WaitForSingleObject);
>
>
>
> clisp.c:419:
>
> int status = FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER |
> not
> int status = FormatMessage(FeORMAT_MESSAGE_ALLOCATE_BUFFER |
>
oops. thanks, fixed.
>
> Now:
>
> ;; MODPREP: "g:/gnu/home/src/clisp/clisp/modules/regexp/regexi.c" -->
> #P"G:regexi.m.c"
> ;; MODPREP: reading
> "g:/gnu/home/src/clisp/clisp/modules/regexp/regexi.c": 5,332 bytes, 141
> lines
> ;; MODPREP: 11 objects, 3 DEFUNs
> ;; packages: ("REGEXP")
> MODPREP: wrote G:regexi.m.c (9,732 bytes)
> gcc -I/usr/local/include -I/home/src/clisp/clisp/build-full-debug/gllib
> -I/home/src/clisp/clisp/build-full-debug -g -O2 -W -Wswitch -Wcomment
> -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations
> -Wno-sign-compare -Wno-format-nonliteral -falign-functions=4 -D_WIN32 -g
> -O0 -DDEBUG_OS_ERROR -DDEBUG_SPVW -DDEBUG_BYTECODE -DSAFETY=3
> -DENABLE_UNICODE -I/usr/local/include -DDYNAMIC_FFI -I.
> -IG:\\gnu\\home\\src\\clisp\\clisp\\build-full-debug\\linkkit \
> -c regexi.m.c -o regexi.o
> g:/gnu/home/src/clisp/clisp/modules/regexp/regexi.c:12:19: fatal error:
> regex.h: No such file or directory
> compilation terminated.
> make[1]: *** [regexi.o] Error 1
> make[1]: Leaving directory `/home/src/clisp/clisp/build-full-debug/regexp'
> make: *** [regexp] Error 2
does it work if you add -I/home/src/clisp/clisp/src/gllib to CPPFLAGS in
build-full-debug/regexp/Makefile?
> Next:
>
> configure: ** Readline (Headers, Variables & Functions)
> checking for library containing tgetent... -ltermcap
> checking readline/readline.h usability... no
> checking readline/readline.h presence... no
> checking for readline/readline.h... no
> configure: error: in `/home/src/clisp/clisp/build-full-debug/readline':
> configure: error: despite --with-readline, GNU readline was not found
> (try --with-libreadline-prefix)
>
> but --with-libreadline-prefix present in './configure...'
did the top-level configure find readline?
what findings did it report?
grep READLINE config.h
grep readline config.cache
--
Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 11.0.60900031
http://ffii.org http://camera.org http://palestinefacts.org http://memri.org
http://iris.org.il http://dhimmi.com http://www.PetitionOnline.com/tap12009/
I'd give my right arm to be ambidextrous.
|
|
From: Yaroslav K. <kav...@gm...> - 2011-07-12 07:23:13
|
Sam Steingold wrote: > how about all the other constants? > specifically: > grep '#undef' src/config.h.in | sed 's/#undef *//'|sort> c > egrep '^ *#define' src/win32.d | sed -e 's/^ *#define *\([^ ]*\).*/\1/' | sort> w > diff -u c w | grep '^ ' > HAVE_GETHOSTBYNAME > HAVE_GETHOSTNAME > HAVE_IPV4 > HAVE_IPV6 > HAVE_LC_MESSAGES > HAVE_MUNMAP > HAVE_SHUTDOWN > HAVE_STRERROR > HAVE_WORKING_MPROTECT > SETSOCKOPT_ARG_T > SETSOCKOPT_CONST > SETSOCKOPT_OPTLEN_T > SIZEOF_OFF_T > socklen_t > for c in `diff -u c w | grep '^ '`; do grep $c src/win32.d build/config.h; done src/win32.d:#define HAVE_GETHOSTBYNAME build-full-debug/config.h:/* #undef HAVE_GETHOSTBYNAME */ src/win32.d:#define HAVE_GETHOSTNAME build-full-debug/config.h:/* #undef HAVE_GETHOSTNAME */ src/win32.d:#define HAVE_IPV4 build-full-debug/config.h:#define HAVE_IPV4 1 src/win32.d:#define HAVE_IPV6 build-full-debug/config.h:#define HAVE_IPV6 1 src/win32.d: #define HAVE_LC_MESSAGES 0 src/win32.d: #define HAVE_LC_MESSAGES 0 src/win32.d: #define HAVE_LC_MESSAGES 1 build-full-debug/config.h:/* #undef HAVE_LC_MESSAGES */ src/win32.d:#define HAVE_MUNMAP build-full-debug/config.h:/* #undef HAVE_MUNMAP */ src/win32.d:#define HAVE_SHUTDOWN src/win32.d:#ifdef HAVE_SHUTDOWN build-full-debug/config.h:/* #undef HAVE_SHUTDOWN */ src/win32.d:#define HAVE_STRERROR 1 build-full-debug/config.h:#define HAVE_STRERROR 1 build-full-debug/config.h:/* #undef HAVE_STRERROR_R */ src/win32.d:#define HAVE_WORKING_MPROTECT build-full-debug/config.h:/* #undef HAVE_WORKING_MPROTECT */ src/win32.d:#define SETSOCKOPT_ARG_T char* build-full-debug/config.h:/* #undef SETSOCKOPT_ARG_T */ src/win32.d:#define SETSOCKOPT_CONST const build-full-debug/config.h:/* #undef SETSOCKOPT_CONST */ src/win32.d:#define SETSOCKOPT_OPTLEN_T int build-full-debug/config.h:/* #undef SETSOCKOPT_OPTLEN_T */ src/win32.d:#undef SIZEOF_OFF_T /* on mingw, it was defined in config.h */ src/win32.d:#define SIZEOF_OFF_T 8 build-full-debug/config.h:#define SIZEOF_OFF_T 4 src/win32.d:#ifndef socklen_t src/win32.d:#define socklen_t int build-full-debug/config.h:/* type to use in place of socklen_t if not defined */ build-full-debug/config.h:/* #undef socklen_t */ -- WBR, Yaroslav Kavenchuk |
|
From: Yaroslav K. <kav...@gm...> - 2011-08-08 08:42:09
|
I'm back!
Sam Steingold wrote:
> Yaroslav,
> do you have these system headers:
> #include<winternl.h>
> #include<ntstatus.h>
> if yes, do they declare CoGetCurrentProcess?
No, winternl.h & ntstatus.h is not present in mingw.
CoGetCurrentProcess declared in <objbase.h>
> how about<setjmp.h>?
it is present
I updated sources and commented
> #include<winternl.h>
> #include<ntstatus.h>
in win32.c and was get strange error:
gcc -I/usr/local/include -I/home/src/clisp/clisp/src
-I/home/src/clisp/clisp/build-full-debug/gllib
-I/home/src/clisp/clisp/src/gllib -g -O2 -W -Wswitch -Wcomment
-Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations
-Wno-sign-compare -Wno-format-nonliteral -falign-functions=4 -D_WIN32 -g
-O0 -DDEBUG_OS_ERROR -DDEBUG_SPVW -DDEBUG_BYTECODE -DSAFETY=3
-DENABLE_UNICODE -I/usr/local/include -DDYNAMIC_FFI -c spvw.c
In file included from ../src/lispbibl.d:1906:0,
from ../src/spvw.d:23:
../src/win32.d:142:16: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'namestring_file_id'
../src/win32.d:144:16: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'handle_file_id'
In file included from ../src/spvw.d:206:0:
../src/spvw_mmap.d:236:12: warning: no previous declaration for 'munmap'
make: *** [spvw.o] Error 1
--
WBR, Yaroslav Kavenchuk
|
|
From: Sam S. <sd...@gn...> - 2011-08-08 19:50:50
|
> * Yaroslav Kavenchuk <xni...@tz...> [2011-08-08 11:41:55 +0300]: > > I'm back! welcome! > Sam Steingold wrote: >> Yaroslav, >> do you have these system headers: >> #include<winternl.h> >> #include<ntstatus.h> >> if yes, do they declare CoGetCurrentProcess? > > No, winternl.h & ntstatus.h is not present in mingw. > CoGetCurrentProcess declared in <objbase.h> where are NtQueryInformationFile & STATUS_SUCCESS defined? > gcc -I/usr/local/include -I/home/src/clisp/clisp/src > -I/home/src/clisp/clisp/build-full-debug/gllib > -I/home/src/clisp/clisp/src/gllib -g -O2 -W -Wswitch -Wcomment > -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations > -Wno-sign-compare -Wno-format-nonliteral -falign-functions=4 -D_WIN32 -g > -O0 -DDEBUG_OS_ERROR -DDEBUG_SPVW -DDEBUG_BYTECODE -DSAFETY=3 > -DENABLE_UNICODE -I/usr/local/include -DDYNAMIC_FFI -c spvw.c > In file included from ../src/lispbibl.d:1906:0, > from ../src/spvw.d:23: > ../src/win32.d:142:16: error: expected '=', ',', ';', 'asm' or > '__attribute__' before 'namestring_file_id' > ../src/win32.d:144:16: error: expected '=', ',', ';', 'asm' or > '__attribute__' before 'handle_file_id' should be fixed. > In file included from ../src/spvw.d:206:0: > ../src/spvw_mmap.d:236:12: warning: no previous declaration for 'munmap' > make: *** [spvw.o] Error 1 should be fixed. -- Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 11.0.60900031 http://iris.org.il http://palestinefacts.org http://thereligionofpeace.com http://jihadwatch.org Someone has changed your life. Save? (y/n) |
|
From: Yaroslav K. <kav...@gm...> - 2011-07-14 06:44:14
|
Sam Steingold wrote: > > thanks, fix committed. > now: gcc -I/usr/local/include -I/home/src/clisp/clisp/build-full-debug/gllib -g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -falign-functions=4 -D_WIN32 -g -O0 -DDEBUG_OS_ERROR -DDEBUG_SPVW -DDEBUG_BYTECODE -DSAFETY=3 -DENABLE_UNICODE -I/usr/local/include -DDYNAMIC_FFI -I. ../utils/comment5.c libgnu.a -o comment5.exe gcc.exe: libgnu.a: No such file or directory make: *** [comment5.exe] Error 1 maybe need `ln gllib/libgnu.a ./` next: gcc -g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -falign-functions=4 -D_WIN32 -g -O0 -DDEBUG_OS_ERROR -DDEBUG_SPVW -DDEBUG_BYTECODE -DSAFETY=3 -DENABLE_UNICODE -I/usr/local/include -DDYNAMIC_FFI -I. spvw.o spvwtabf.o spvwtabs.o spvwtabo.o eval.o control.o encoding.o pathname.o stream.o socket.o io.o funarg.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 -lintl /usr/local/lib/libreadline.dll.a -L/usr/local/lib -ltermcap -ldl /usr/local/lib/libavcall.a /usr/local/lib/libcallback.a -luser32 -lole32 -loleaut32 -luuid -liconv -L/usr/local/lib -lsigsegv libgnu.a -lws2_32 -o lisp.exe stream.o: In function `low_listen_unbuffered_socket': g:\gnu\home\src\clisp\clisp\build-full-debug/../src/stream.d:13509: undefined reference to `select_used_without_including_sys_ select_h' stream.o: In function `C_socket_status': g:\gnu\home\src\clisp\clisp\build-full-debug/../src/stream.d:14523: undefined reference to `select_used_without_including_sys_ select_h' stream.o: In function `sock_opt_bool': g:\gnu\home\src\clisp\clisp\build-full-debug/../src/stream.d:14574: undefined reference to `setsockopt_used_without_including_ sys_socket_h' stream.o: In function `sock_opt_int': g:\gnu\home\src\clisp\clisp\build-full-debug/../src/stream.d:14593: undefined reference to `setsockopt_used_without_including_ sys_socket_h' stream.o: In function `sock_opt_time': g:\gnu\home\src\clisp\clisp\build-full-debug/../src/stream.d:14616: undefined reference to `setsockopt_used_without_including_ sys_socket_h' stream.o: In function `C_socket_options': g:\gnu\home\src\clisp\clisp\build-full-debug/../src/stream.d:14698: undefined reference to `setsockopt_used_without_including_ sys_socket_h' stream.o: In function `C_socket_stream_shutdown': g:\gnu\home\src\clisp\clisp\build-full-debug/../src/stream.d:14900: undefined reference to `shutdown_used_without_including_sy s_socket_h' socket.o: In function `nonintr_connect': g:\gnu\home\src\clisp\clisp\build-full-debug/../src/socket.d:238: undefined reference to `connect_used_without_including_sys_s ocket_h' socket.o: In function `connect_to_x_via_ip': g:\gnu\home\src\clisp\clisp\build-full-debug/../src/socket.d:509: undefined reference to `socket_used_without_including_sys_so cket_h' g:\gnu\home\src\clisp\clisp\build-full-debug/../src/socket.d:514: undefined reference to `setsockopt_used_without_including_sy s_socket_h' socket.o: In function `socket_getlocalname_aux': g:\gnu\home\src\clisp\clisp\build-full-debug/../src/socket.d:680: undefined reference to `getsockname_used_without_including_s ys_socket_h' socket.o: In function `socket_getpeername': g:\gnu\home\src\clisp\clisp\build-full-debug/../src/socket.d:732: undefined reference to `getpeername_used_without_including_s ys_socket_h' socket.o: In function `bindlisten_via_ip': g:\gnu\home\src\clisp\clisp\build-full-debug/../src/socket.d:784: undefined reference to `socket_used_without_including_sys_so cket_h' g:\gnu\home\src\clisp\clisp\build-full-debug/../src/socket.d:792: undefined reference to `setsockopt_used_without_including_sy s_socket_h' g:\gnu\home\src\clisp\clisp\build-full-debug/../src/socket.d:798: undefined reference to `bind_used_without_including_sys_sock et_h' socket.o: In function `create_server_socket_by_socket': g:\gnu\home\src\clisp\clisp\build-full-debug/../src/socket.d:827: undefined reference to `getsockname_used_without_including_s ys_socket_h' socket.o: In function `accept_connection': g:\gnu\home\src\clisp\clisp\build-full-debug/../src/socket.d:863: undefined reference to `accept_used_without_including_sys_so cket_h' socket.o: In function `connect_via_ip': g:\gnu\home\src\clisp\clisp\build-full-debug/../src/socket.d:878: undefined reference to `socket_used_without_including_sys_so cket_h' win32aux.o: In function `sock_read_will_hang_p': g:\gnu\home\src\clisp\clisp\build-full-debug/../src/win32aux.d:787: undefined reference to `select_used_without_including_sys_ select_h' win32aux.o: In function `lowlevel_sock_read': g:\gnu\home\src\clisp\clisp\build-full-debug/../src/win32aux.d:839: undefined reference to `recv_used_without_including_sys_so cket_h' win32aux.o: In function `sock_write_will_hang_p': g:\gnu\home\src\clisp\clisp\build-full-debug/../src/win32aux.d:898: undefined reference to `select_used_without_including_sys_ select_h' win32aux.o: In function `lowlevel_sock_write': g:\gnu\home\src\clisp\clisp\build-full-debug/../src/win32aux.d:950: undefined reference to `send_used_without_including_sys_so cket_h' win32aux.o: In function `do_socket_wait': g:\gnu\home\src\clisp\clisp\build-full-debug/../src/win32aux.d:1014: undefined reference to `select_used_without_including_sys _select_h' collect2: ld returned 1 exit status make: *** [lisp.exe] Error 1 -- WBR, Yaroslav Kavenchuk |
|
From: Yaroslav K. <kav...@gm...> - 2011-08-09 05:40:01
|
Sam Steingold wrote: > where are NtQueryInformationFile& STATUS_SUCCESS defined? NtQueryInformationFile -> <ddk/winddk.h> STATUS_SUCCESS -> <ddk/ntstatus.h> (included in ddk/winddk.h) -- WBR, Yaroslav Kavenchuk |
|
From: Sam S. <sd...@gn...> - 2011-08-18 15:08:16
|
> * Yaroslav Kavenchuk <xni...@tz...> [2011-08-09 08:39:41 +0300]: > > Sam Steingold wrote: > >> where are NtQueryInformationFile& STATUS_SUCCESS defined? > > NtQueryInformationFile -> <ddk/winddk.h> > STATUS_SUCCESS -> <ddk/ntstatus.h> (included in ddk/winddk.h) do you have ntifs.h or ddk/ntifs.h? does it include winddk.h? thanks. -- Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 11.0.60900031 http://truepeace.org http://dhimmi.com http://thereligionofpeace.com http://iris.org.il http://www.PetitionOnline.com/tap12009/ http://ffii.org You can have it good, soon or cheap. Pick two... |
|
From: Sam S. <sd...@gn...> - 2011-08-09 13:00:00
|
> * Yaroslav Kavenchuk <xni...@tz...> [2011-08-09 08:39:41 +0300]: > > Sam Steingold wrote: > >> where are NtQueryInformationFile& STATUS_SUCCESS defined? > > NtQueryInformationFile -> <ddk/winddk.h> > STATUS_SUCCESS -> <ddk/ntstatus.h> (included in ddk/winddk.h) thanks, please try again. -- Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 11.0.60900031 http://www.memritv.org http://palestinefacts.org http://jihadwatch.org http://mideasttruth.com http://camera.org http://dhimmi.com When C++ is your hammer, everything looks like a thumb. |
|
From: Sam S. <sd...@gn...> - 2011-07-15 14:00:31
|
> * Yaroslav Kavenchuk <xni...@tz...> [2011-07-15 09:07:12 +0300]: > please pull and try again. I don't want to nag or bitch, but I wish you all jumped in when I asked for a windows build 2 months ago... :-( -- Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 11.0.60900031 http://openvotingconsortium.org http://ffii.org http://thereligionofpeace.com http://www.memritv.org http://iris.org.il http://truepeace.org I may be getting older, but I refuse to grow up! |
|
From: Yaroslav K. <kav...@gm...> - 2011-08-10 10:31:17
|
Sam Steingold wrote: > > thanks, please try again. > gcc -I/usr/local/include -I/home/src/clisp/clisp/src -I/home/src/clisp/clisp/build-full-debug/gllib -I/home/src/clisp/clisp/src/gllib -g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -falign-functions=4 -D_WIN32 -g -O0 -DDEBUG_OS_ERROR -DDEBUG_SPVW -DDEBUG_BYTECODE -DSAFETY=3 -DENABLE_UNICODE -I/usr/local/include -DDYNAMIC_FFI -c stream.c ../src/stream.d:14918:29: error: expected declaration specifiers or '...' before '*' token ../src/stream.d:14919:28: error: expected declaration specifiers or '...' before 'PIO_STATUS_BLOCK' ../src/stream.d:14921:5: error: expected declaration specifiers or '...' before 'FILE_INFORMATION_CLASS' ../src/stream.d:14918:9: warning: type defaults to 'int' in declaration of 'NTSTATUS' ../src/stream.d:14918:9: error: 'NTSTATUS' declared as function returning a function ../src/stream.d:14922:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'qif' ../src/stream.d:14923:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'get_qif' ../src/stream.d: In function 'handle_direction_compatible': ../src/stream.d:14955:12: error: 'QueryInformationFile_t' undeclared (first use in this function) ../src/stream.d:14955:12: note: each undeclared identifier is reported only once for each function it appears in ../src/stream.d:14955:35: error: expected ';' before 'qif' ../src/stream.d:14956:11: error: 'qif' undeclared (first use in this function) ../src/stream.d:14957:14: error: 'IO_STATUS_BLOCK' undeclared (first use in this function) ../src/stream.d:14957:30: error: expected ';' before 'iosb' ../src/stream.d:14958:14: error: 'FILE_ACCESS_INFORMATION' undeclared (first use in this function) ../src/stream.d:14958:38: error: expected ';' before 'fai' ../src/stream.d:14959:9: error: function 's' is initialized like a variable ../src/stream.d:14959:9: warning: implicit declaration of function 'qif' ../src/stream.d:14959:35: error: 'iosb' undeclared (first use in this function) ../src/stream.d:14959:48: error: 'fai' undeclared (first use in this function) ../src/stream.d:14960:30: error: 'FileAccessInformation' undeclared (first use in this function) ../src/stream.d:14961:21: error: 'STATUS_SUCCESS' undeclared (first use in this function) ../src/stream.d:14959:23: error: nested function 's' declared but never defined ../src/stream.d: In function 'handle_pathname': ../src/stream.d:15012:3: error: function 's' is initialized like a variable ../src/stream.d:15012:22: error: 'STATUS_SUCCESS' undeclared (first use in this function) ../src/stream.d:15017:12: error: 'QueryInformationFile_t' undeclared (first use in this function) ../src/stream.d:15017:35: error: expected ';' before 'qif' ../src/stream.d:15018:11: error: 'qif' undeclared (first use in this function) ../src/stream.d:15019:14: error: 'IO_STATUS_BLOCK' undeclared (first use in this function) ../src/stream.d:15019:30: error: expected ';' before 'iosb' ../src/stream.d:15020:21: error: 'iosb' undeclared (first use in this function) ../src/stream.d:15020:51: error: 'FileNameInformation' undeclared (first use in this function) ../src/stream.d:15028:10: error: 'FILE_NAME_INFORMATION' undeclared (first use in this function) ../src/stream.d:15028:33: error: 'fni' undeclared (first use in this function) ../src/stream.d:15028:62: error: expected expression before ')' token ../src/stream.d:15012:17: error: nested function 's' declared but never defined make: *** [stream.o] Error 1 small note - src/stream.d:14917 /* http://msdn.microsoft.com/en-us/library/ms804359.aspx */ this url is redirected to http://msdn.microsoft.com/en-us/library/ff567052.aspx additional information: http://msdn.microsoft.com/en-us/library/ff556646.aspx -- WBR, Yaroslav Kavenchuk |
|
From: Sam S. <sd...@gn...> - 2011-08-10 13:14:13
|
This is counterproductive. We can do this "once a day" exchange forever, and we need to make a release RSN (the last one was 13 months ago!) Please be proactive: investigate errors, try fixing them, submit patches. > * Yaroslav Kavenchuk <xni...@tz...> [2011-08-10 13:31:02 +0300]: > > gcc -I/usr/local/include -I/home/src/clisp/clisp/src > -I/home/src/clisp/clisp/build-full-debug/gllib > -I/home/src/clisp/clisp/src/gllib -g -O2 -W -Wswitch -Wcomment > -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations > -Wno-sign-compare -Wno-format-nonliteral -falign-functions=4 -D_WIN32 -g > -O0 -DDEBUG_OS_ERROR -DDEBUG_SPVW -DDEBUG_BYTECODE -DSAFETY=3 > -DENABLE_UNICODE -I/usr/local/include -DDYNAMIC_FFI -c stream.c > ../src/stream.d:14918:29: error: expected declaration specifiers or > '...' before '*' token > ../src/stream.d:14919:28: error: expected declaration specifiers or > '...' before 'PIO_STATUS_BLOCK' > ../src/stream.d:14921:5: error: expected declaration specifiers or '...' > before 'FILE_INFORMATION_CLASS' > ../src/stream.d:14918:9: warning: type defaults to 'int' in declaration > of 'NTSTATUS' > ../src/stream.d:14918:9: error: 'NTSTATUS' declared as function > returning a function > ../src/stream.d:14922:31: error: expected '=', ',', ';', 'asm' or > '__attribute__' before 'qif' > ../src/stream.d:14923:31: error: expected '=', ',', ';', 'asm' or > '__attribute__' before 'get_qif' so, where are PIO_STATUS_BLOCK, IO_STATUS_BLOCK FILE_INFORMATION_CLASS, FILE_ACCESS_INFORMATION, FileAccessInformation, FILE_NAME_INFORMATION NTSTATUS declared on your system? try including those files. what happens? > ../src/stream.d:14961:21: error: 'STATUS_SUCCESS' undeclared (first use > in this function) you said that the file which declares STATUS_SUCCESS is included from the file <ddk/winddk.h>. was configure re-run? grep HAVE_DDK_WINDDK_H config* > small note - src/stream.d:14917 > > /* http://msdn.microsoft.com/en-us/library/ms804359.aspx */ > > this url is redirected to > http://msdn.microsoft.com/en-us/library/ff567052.aspx > additional information: > http://msdn.microsoft.com/en-us/library/ff556646.aspx thanks. >>> Header Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h) so, what should be included on your system? please edit src/configure by hand: diff -r fa1482716383 src/configure --- a/src/configure Tue Aug 09 08:59:35 2011 -0400 +++ b/src/configure Wed Aug 10 09:11:36 2011 -0400 @@ -33958,7 +33958,7 @@ fi fi test "$ac_cv_lib_socket_connect" = yes && LIBS="$LIBS -lsocket" test "$ac_cv_lib_nsl_gethostbyname" = yes && LIBS="$LIBS -lnsl" -for ac_header in winternl.h ntstatus.h ddk/winddk.h +for ac_header in winternl.h ntstatus.h winddk.h ddk/winddk.h ntddk.h ddk/ntddk.h wdm.h ntifs.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" and see which of these windows files it detects. then please figure out which files actually have to be included. thanks. -- Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 11.0.60900031 http://mideasttruth.com http://www.memritv.org http://memri.org http://pmw.org.il http://camera.org http://www.PetitionOnline.com/tap12009/ XML is like violence. If it doesn't solve the problem, use more. |
|
From: Yaroslav K. <kav...@gm...> - 2011-07-26 06:55:08
|
Sam Steingold wrote:
>> ok. spvwtab*.d:
>>
>> #include "lispbibl.c"
>> #undef listen
>> #undef close
>> #undef select
>
> is "undef select" really necessary?!
No, "undef select" only need the following two files:
>>
>> win32aux.d:
>>
>> #include "lispbibl.c"
>> #undef select
>> #undef listen
>>
>>
>> stream.d:
>>
>> #include "lispbibl.c"
>> #undef listen
>> #undef select
>>
>
> are these two really necessary?
"select" - yes, "listen" - no
../src/win32aux.d: In function 'sock_read_will_hang_p':
../src/win32aux.d:788:3: warning: implicit declaration of function
'select_used_without_requesting_gnulib_module_select'
and so on
>> g:/gnu/home/src/clisp/clisp/modules/regexp/regexi.c:12:19: fatal error:
>> regex.h: No such file or directory
>> compilation terminated.
>> make[1]: *** [regexi.o] Error 1
>> make[1]: Leaving directory `/home/src/clisp/clisp/build-full-debug/regexp'
>> make: *** [regexp] Error 2
>
> does it work if you add -I/home/src/clisp/clisp/src/gllib to CPPFLAGS in
> build-full-debug/regexp/Makefile?
no:
regexp/Makefile:
CC = gcc
CPPFLAGS = -I/home/src/clisp/clisp/src/gllib
CFLAGS = -g -O2
CLISP = /home/src/clisp/clisp/build-full-debug/clisp -K boot -E UTF-8
-Emisc 1:1 -Epathname 1:1 -norc -norc -q
CLISP_LIBDIR = G:\\gnu\\home\\src\\clisp\\clisp\\build-full-debug\\
CLISP_LINKKIT = G:\\gnu\\home\\src\\clisp\\clisp\\build-full-debug\\linkkit
...
regexi.o : regexi.m.c config.h
$(CC) $(CPPFLAGS) $(CFLAGS) -I$(CLISP_LINKKIT) \
-c regexi.m.c -o regexi.o
out:
cd regexp ; make clisp-module CC="gcc"
CPPFLAGS="-I/usr/local/include
-I/home/src/clisp/clisp/build-full-debug/gllib
-I/home/src/clisp/clisp/build-full-debug" CFLAGS="-g -O2 -W -Wswitch
-Wcomment -Wpointer-arith -Wimplicit -Wreturn-type
-Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral
-falign-functions=4 -D_WIN32 -g -O0 -DDEBUG_OS_ERROR -DDEBUG_SPVW
-DDEBUG_BYTECODE -DSAFETY=3 -DENABLE_UNICODE -I/usr/local/include
-DDYNAMIC_FFI -I." CLFLAGS="" LIBS="-lintl
/usr/local/lib/libreadline.dll.a -L/usr/local/lib -ltermcap -ldl
/usr/local/lib/libavcall.a /usr/local/lib/libcallback.a -luser32 -lole32
-loleaut32 -luuid -liconv -L/usr/local/lib -lsigsegv libgnu.a -lws2_32"
RANLIB="ranlib" CLISP="$CLISP -q" SHREXT=.dll
make[1]: Entering directory `/home/src/clisp/clisp/build-full-debug/regexp'
gcc -I/usr/local/include -I/home/src/clisp/clisp/build-full-debug/gllib
-I/home/src/clisp/clisp/build-full-debug -g -O2 -W -W
switch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type
-Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -fal
ign-functions=4 -D_WIN32 -g -O0 -DDEBUG_OS_ERROR -DDEBUG_SPVW
-DDEBUG_BYTECODE -DSAFETY=3 -DENABLE_UNICODE -I/usr/local/includ
e -DDYNAMIC_FFI -I.
-IG:\\gnu\\home\\src\\clisp\\clisp\\build-full-debug\\linkkit \
-c regexi.m.c -o regexi.o
g:/gnu/home/src/clisp/clisp/modules/regexp/regexi.c:12:19: fatal error:
regex.h: No such file or directory:\
> did the top-level configure find readline?
yes
> what findings did it report?
Configure findings:
FFI: yes (user requested: default)
readline: yes (user requested: yes)
libsigsegv: yes
./makemake --with-dynamic-ffi --with-dynamic-modules=no --verbose=yes
--with-debug --with-readline --with-module=dirkey --with-module=pcre
--with-module=rawsock --with-module=bindings/win32
--with-libreadline-prefix=/usr/local --with-libtermcap-prefix=/usr/local
--with-libpcre-prefix=/usr/local --with-module=zlib --with-module=libsvm
--disable-maintainer-mode --srcdir=../src
--win32gcc > Makefile
> grep READLINE config.h
$ grep READLINE config.h
#define HAVE_DECL_RL_GNU_READLINE_P 1
#define HAVE_DECL_RL_READLINE_NAME 1
#define HAVE_READLINE /**/
#define HAVE_READLINE_READLINE_H 1
#define READLINE_CONST const
#define READLINE_FILE_COMPLETE rl_filename_completion_function
> grep readline config.cache
$ grep readline config.cache
ac_cv_func_readline=${ac_cv_func_readline=yes}
ac_cv_have_decl_rl_gnu_readline_p=${ac_cv_have_decl_rl_gnu_readline_p=yes}
ac_cv_have_decl_rl_readline_name=${ac_cv_have_decl_rl_readline_name=yes}
ac_cv_have_readline=${ac_cv_have_readline=yes}
ac_cv_header_readline_readline_h=${ac_cv_header_readline_readline_h=yes}
ac_cv_use_readline=${ac_cv_use_readline=yes}
cl_cv_proto_readline_const=${cl_cv_proto_readline_const=const}
when preset CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"
in ./configure..., all modules is built, but:
libgnu.a(regex.o): In function `rpl_re_compile_pattern':
g:\gnu\home\src\clisp\clisp\build-full-debug\gllib/../../src/gllib/regcomp.c:238:
undefined reference to `libintl_gettext'
libgnu.a(regex.o): In function `rpl_regerror':
g:\gnu\home\src\clisp\clisp\build-full-debug\gllib/../../src/gllib/regcomp.c:559:
undefined reference to `libintl_gettext'
collect2: ld returned 1 exit status
./clisp-link: failed in /home/src/clisp/clisp/build-full-debug/base
make: *** [base] Error 1
--
WBR, Yaroslav Kavenchuk
|
|
From: Sam S. <sd...@gn...> - 2011-07-26 15:01:01
|
> * Yaroslav Kavenchuk <xni...@tz...> [2011-07-26 09:54:51 +0300]:
>
> libgnu.a(regex.o): In function `rpl_re_compile_pattern':
> g:\gnu\home\src\clisp\clisp\build-full-debug\gllib/../../src/gllib/regcomp.c:238:
> undefined reference to `libintl_gettext'
> libgnu.a(regex.o): In function `rpl_regerror':
> g:\gnu\home\src\clisp\clisp\build-full-debug\gllib/../../src/gllib/regcomp.c:559:
> undefined reference to `libintl_gettext'
> collect2: ld returned 1 exit status
> ./clisp-link: failed in /home/src/clisp/clisp/build-full-debug/base
> make: *** [base] Error 1
does this patch help?
diff -r 72dfd22cafec modules/regexp/regexi.c
--- a/modules/regexp/regexi.c Tue Jul 26 10:49:16 2011 -0400
+++ b/modules/regexp/regexi.c Tue Jul 26 11:00:18 2011 -0400
@@ -144,3 +144,6 @@ DEFUN(REGEXP::REGEXP-EXEC,pattern string
}
skipSTACK(2); /* drop pattern & string */
}
+
+/* gnulib workaround for mingw */
+char* libintl_gettext (char* s) { return GETTEXT(s); }
--
Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 11.0.60900031
http://thereligionofpeace.com http://www.PetitionOnline.com/tap12009/
http://palestinefacts.org http://camera.org http://honestreporting.com
main(a){printf(a,34,a="main(a){printf(a,34,a=%c%s%c,34);}",34);}
|
|
From: Bruno H. <br...@cl...> - 2011-07-26 21:40:40
|
Sam wrote:
> > * Yaroslav Kavenchuk <xni...@tz...> [2011-07-26 09:54:51 +0300]:
> >
> > libgnu.a(regex.o): In function `rpl_re_compile_pattern':
> > g:\gnu\home\src\clisp\clisp\build-full-debug\gllib/../../src/gllib/regcomp.c:238:
> > undefined reference to `libintl_gettext'
> > libgnu.a(regex.o): In function `rpl_regerror':
> > g:\gnu\home\src\clisp\clisp\build-full-debug\gllib/../../src/gllib/regcomp.c:559:
> > undefined reference to `libintl_gettext'
> > collect2: ld returned 1 exit status
> > ./clisp-link: failed in /home/src/clisp/clisp/build-full-debug/base
> > make: *** [base] Error 1
>
> does this patch help?
>
> diff -r 72dfd22cafec modules/regexp/regexi.c
> --- a/modules/regexp/regexi.c Tue Jul 26 10:49:16 2011 -0400
> +++ b/modules/regexp/regexi.c Tue Jul 26 11:00:18 2011 -0400
> @@ -144,3 +144,6 @@ DEFUN(REGEXP::REGEXP-EXEC,pattern string
> }
> skipSTACK(2); /* drop pattern & string */
> }
> +
> +/* gnulib workaround for mingw */
> +char* libintl_gettext (char* s) { return GETTEXT(s); }
This looks like a dangerous hack (regarding begin/end_system_call()).
When you get "undefined reference to `libintl_gettext'" this normally
means that -lintl was missing from the link options. I.e. you should
review the link options that clisp-link is passing to the C compiler.
Bruno
--
In memoriam Eva Perón <http://en.wikipedia.org/wiki/Eva_Perón>
|
|
From: Sam S. <sd...@gn...> - 2011-07-26 16:15:39
|
Yaroslav, I get a compilation error on spvw_ctype saying that LC_MESSAGES is not defined. You, obviously, do not. I use the i686-w64-mingw32-gcc cygwin cross-compiler (4.5.3). You use mingw/msys (gcc v3?). Could you please find out which header defines LC_MESSAGES for you? thanks! -- Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 11.0.60900031 http://jihadwatch.org http://camera.org http://pmw.org.il http://iris.org.il http://ffii.org http://dhimmi.com http://honestreporting.com If you want it done right, you have to do it yourself |
|
From: Sam S. <sd...@gn...> - 2011-07-26 14:59:48
|
> * Yaroslav Kavenchuk <xni...@tz...> [2011-07-26 09:54:51 +0300]:
>
>>> #include "lispbibl.c"
>>> #undef listen
>>> #undef close
>>> #undef select
should be fixed.
>>> g:/gnu/home/src/clisp/clisp/modules/regexp/regexi.c:12:19: fatal error:
>>> regex.h: No such file or directory
>>> compilation terminated.
>>> make[1]: *** [regexi.o] Error 1
>>> make[1]: Leaving directory `/home/src/clisp/clisp/build-full-debug/regexp'
>>> make: *** [regexp] Error 2
>>
>> does it work if you add -I/home/src/clisp/clisp/src/gllib to CPPFLAGS in
>> build-full-debug/regexp/Makefile?
>
> no:
>
> regexp/Makefile:
>
> CC = gcc
> CPPFLAGS = -I/home/src/clisp/clisp/src/gllib
> CFLAGS = -g -O2
> CLISP = /home/src/clisp/clisp/build-full-debug/clisp -K boot -E UTF-8
> -Emisc 1:1 -Epathname 1:1 -norc -norc -q
> CLISP_LIBDIR = G:\\gnu\\home\\src\\clisp\\clisp\\build-full-debug\\
> CLISP_LINKKIT = G:\\gnu\\home\\src\\clisp\\clisp\\build-full-debug\\linkkit
> ...
> regexi.o : regexi.m.c config.h
> $(CC) $(CPPFLAGS) $(CFLAGS) -I$(CLISP_LINKKIT) \
> -c regexi.m.c -o regexi.o
>
>
> out:
> cd regexp ; make clisp-module CC="gcc"
> CPPFLAGS="-I/usr/local/include
> -I/home/src/clisp/clisp/build-full-debug/gllib
> -I/home/src/clisp/clisp/build-full-debug" CFLAGS="-g -O2 -W -Wswitch
> -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type
> -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral
> -falign-functions=4 -D_WIN32 -g -O0 -DDEBUG_OS_ERROR -DDEBUG_SPVW
> -DDEBUG_BYTECODE -DSAFETY=3 -DENABLE_UNICODE -I/usr/local/include
> -DDYNAMIC_FFI -I." CLFLAGS="" LIBS="-lintl
> /usr/local/lib/libreadline.dll.a -L/usr/local/lib -ltermcap -ldl
> /usr/local/lib/libavcall.a /usr/local/lib/libcallback.a -luser32 -lole32
> -loleaut32 -luuid -liconv -L/usr/local/lib -lsigsegv libgnu.a -lws2_32"
> RANLIB="ranlib" CLISP="$CLISP -q" SHREXT=.dll
> make[1]: Entering directory `/home/src/clisp/clisp/build-full-debug/regexp'
> gcc -I/usr/local/include -I/home/src/clisp/clisp/build-full-debug/gllib
> -I/home/src/clisp/clisp/build-full-debug -g -O2 -W -W
> switch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type
> -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -fal
> ign-functions=4 -D_WIN32 -g -O0 -DDEBUG_OS_ERROR -DDEBUG_SPVW
> -DDEBUG_BYTECODE -DSAFETY=3 -DENABLE_UNICODE -I/usr/local/includ
> e -DDYNAMIC_FFI -I.
> -IG:\\gnu\\home\\src\\clisp\\clisp\\build-full-debug\\linkkit \
> -c regexi.m.c -o regexi.o
> g:/gnu/home/src/clisp/clisp/modules/regexp/regexi.c:12:19: fatal error:
> regex.h: No such file or directory:\
why do I not see -I/home/src/clisp/clisp/src/gllib in the gcc command
line above?
btw, how come msys tools report the path
G:\\gnu\\home\\src\\clisp\\clisp\\build-full-debug\\
as
/home/src/clisp/clisp/build-full-debug/
how are these paths converted?
>> did the top-level configure find readline?
>
> yes
>
>> what findings did it report?
>
> Configure findings:
> FFI: yes (user requested: default)
> readline: yes (user requested: yes)
> libsigsegv: yes
> ./makemake --with-dynamic-ffi --with-dynamic-modules=no --verbose=yes
> --with-debug --with-readline --with-module=dirkey --with-module=pcre
> --with-module=rawsock --with-module=bindings/win32
> --with-libreadline-prefix=/usr/local --with-libtermcap-prefix=/usr/local
> --with-libpcre-prefix=/usr/local --with-module=zlib --with-module=libsvm
> --disable-maintainer-mode --srcdir=../src
> --win32gcc > Makefile
>
>> grep READLINE config.h
>
> $ grep READLINE config.h
> #define HAVE_DECL_RL_GNU_READLINE_P 1
> #define HAVE_DECL_RL_READLINE_NAME 1
> #define HAVE_READLINE /**/
> #define HAVE_READLINE_READLINE_H 1
> #define READLINE_CONST const
> #define READLINE_FILE_COMPLETE rl_filename_completion_function
>
>> grep readline config.cache
>
> $ grep readline config.cache
> ac_cv_func_readline=${ac_cv_func_readline=yes}
> ac_cv_have_decl_rl_gnu_readline_p=${ac_cv_have_decl_rl_gnu_readline_p=yes}
> ac_cv_have_decl_rl_readline_name=${ac_cv_have_decl_rl_readline_name=yes}
> ac_cv_have_readline=${ac_cv_have_readline=yes}
> ac_cv_header_readline_readline_h=${ac_cv_header_readline_readline_h=yes}
> ac_cv_use_readline=${ac_cv_use_readline=yes}
> cl_cv_proto_readline_const=${cl_cv_proto_readline_const=const}
was readline/configure passed the --with-libreadline-prefix=/usr/local option?
if not, why not?
please look at config.log and see how gcc is invoked in the failed
tests.
thanks!
--
Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 11.0.60900031
http://memri.org http://honestreporting.com http://dhimmi.com
http://jihadwatch.org http://camera.org http://www.PetitionOnline.com/tap12009/
Trespassers will be shot. Survivors will be prosecuted.
|
|
From: Yaroslav K. <kav...@gm...> - 2011-07-26 20:54:31
|
Excuse me. Some time out - leave for 10 days -- WBR, Yaroslav Kavenchuk |
|
From: Sam S. <sd...@gn...> - 2011-07-26 16:20:35
|
Yaroslav, do you have these system headers: #include <winternl.h> #include <ntstatus.h> if yes, do they declare CoGetCurrentProcess? how about <setjmp.h>? what happens when you remove -#elif defined(__MINGW32__) - /* on mingw: - _CRTIMP int __cdecl __MINGW_NOTHROW _setjmp (jmp_buf); - #define setjmp(x) _setjmp(x) - _CRTIMP void __cdecl __MINGW_NOTHROW longjmp (jmp_buf, int) __MINGW_ATTRIB_NORETURN; - so we only need to redefine setjmp, not longjmp. - this is actually only necessary for lightning, see - http://article.gmane.org/gmane.lisp.clisp.devel:18315 - http://lists.gnu.org/archive/html/lightning/2008-05/msg00015.html */ - #undef setjmp - #define setjmp _setjmp from lispbibl.d? (I had to!) What does the appended patch do to your build? Thanks! -- Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 11.0.60900031 http://www.memritv.org http://iris.org.il http://jihadwatch.org http://palestinefacts.org http://thereligionofpeace.com http://dhimmi.com Press any key to continue or any other key to quit. diff -r 72dfd22cafec src/lispbibl.d --- a/src/lispbibl.d Tue Jul 26 10:49:16 2011 -0400 +++ b/src/lispbibl.d Tue Jul 26 12:20:01 2011 -0400 @@ -1315,17 +1315,6 @@ typedef signed int signean; #undef longjmp #define longjmp(x,y) (_longjmp(x,y), NOTREACHED) #endif -#elif defined(__MINGW32__) - /* on mingw: - _CRTIMP int __cdecl __MINGW_NOTHROW _setjmp (jmp_buf); - #define setjmp(x) _setjmp(x) - _CRTIMP void __cdecl __MINGW_NOTHROW longjmp (jmp_buf, int) __MINGW_ATTRIB_NORETURN; - so we only need to redefine setjmp, not longjmp. - this is actually only necessary for lightning, see - http://article.gmane.org/gmane.lisp.clisp.devel:18315 - http://lists.gnu.org/archive/html/lightning/2008-05/msg00015.html */ - #undef setjmp - #define setjmp _setjmp #endif /* A longjmp() can only be called using an `int'. But if we want to use a `long' and if sizeof(int) < sizeof(long), diff -r 72dfd22cafec src/stream.d --- a/src/stream.d Tue Jul 26 10:49:16 2011 -0400 +++ b/src/stream.d Tue Jul 26 12:20:01 2011 -0400 @@ -14914,7 +14914,6 @@ LISPFUNN(socket_stream_shutdown,2) { #if defined(WIN32_NATIVE) /* http://msdn.microsoft.com/en-us/library/ms804359.aspx */ -#include <ddk/ntifs.h> typedef NTSTATUS (__stdcall *QueryInformationFile_t) (IN HANDLE FileHandle, OUT PIO_STATUS_BLOCK IoStatusBlock, OUT PVOID FileInformation, IN ULONG Length, diff -r 72dfd22cafec src/win32.d --- a/src/win32.d Tue Jul 26 10:49:16 2011 -0400 +++ b/src/win32.d Tue Jul 26 12:20:01 2011 -0400 @@ -36,6 +36,8 @@ /* Table of system error messages */ #include <winerror.h> +#include <winternl.h> +#include <ntstatus.h> /* extern DWORD GetLastError (void); extern void SetLastError (DWORD ErrCode); extern DWORD FormatMessage (DWORD Flags, LPCVOID Source, DWORD MessageId, DWORD LanguageId, LPTSTR Buffer, DWORD Size, va_list* Arguments); @@ -54,7 +56,7 @@ extern void free (void* memblock); /* used by spvw.d */ /* Normal program exit */ -extern _Noreturn void _exit (int status); +/*extern _Noreturn void _exit (int status);*/ /* used by spvw.d */ /* Abrupt program termination */ @@ -139,7 +141,7 @@ struct file_id { /* Unique ID for DWORD nFileIndexHigh; DWORD nFileIndexLow; }; -typedef DWORD errno_t; +/*typedef DWORD errno_t;*/ /* fill FI for an exiting namestring */ extern errno_t namestring_file_id (char *namestring, struct file_id *fi); /* fill FI for an existing file handle */ @@ -216,6 +218,7 @@ extern ssize_t fd_write (HANDLE fd, cons #define SIZEOF_OFF_T 8 #ifdef __MINGW32__ #include <io.h> + #undef lseek #define lseek clisp_lseek /* avoid collision with prototype in <mingw/io.h> */ #endif extern off_t lseek (HANDLE fd, off_t offset, DWORD mode); @@ -337,17 +340,6 @@ extern BOOL MyCreateProcess (LPTSTR Comm LPPROCESS_INFORMATION ProcessInformation); /* used by pathname.d, stream.d */ -/* Getting "random" numbers */ -#if defined(__MINGW32__) -/* Not defined in any header. */ -extern STDCALL DWORD CoGetCurrentProcess (void); -#else - #include <objbase.h> -/* extern DWORD CoGetCurrentProcess (void); */ -#endif -/* used by lisparit.d - requires linking with ole32.lib */ - /* Getting more information about the machine. extern LONG RegOpenKeyEx (HKEY Key, LPCTSTR SubKey, DWORD Options, REGSAM Desired, PHKEY Result); extern LONG RegQueryValueEx (HKEY Key, LPTSTR ValueName, LPDWORD Reserved, LPDWORD Type, LPBYTE Data, LPDWORD cbData); |