From: Michael K. <mic...@gm...> - 2007-01-31 01:12:45
|
Hi, when trying to build clisp CVS 2007-01-29 on MinGW, I get stream.d: In function `rd_ch_keyboard': stream.d:8374: error: invalid initializer stream.d: In function `wr_ch_array_window': stream.d:10418: error: invalid operands to binary != stream.d:10419: error: incompatible types in assignment make: *** [stream.o] Error 1 The command line was ./configure --with-dynamic-ffi\ --without-cygwin\ --without-unicode\ --with-debug\ --build build.dynffi.mingw.nounicode.debug Am I doing something wrong? regards Michael |
From: Sam S. <sd...@gn...> - 2007-01-31 02:54:45
|
> * Michael Kappert <zvp...@tz...g> [2007-01-31 02:12:28 +0100]: > > when trying to build clisp CVS 2007-01-29 on MinGW, I get > > stream.d: In function `rd_ch_keyboard': > stream.d:8374: error: invalid initializer > stream.d: In function `wr_ch_array_window': > stream.d:10418: error: invalid operands to binary != > stream.d:10419: error: incompatible types in assignment > make: *** [stream.o] Error 1 > > The command line was > ./configure --with-dynamic-ffi\ > --without-cygwin\ > --without-unicode\ > --with-debug\ > --build build.dynffi.mingw.nounicode.debug please try the appended patch. -- Sam Steingold (http://sds.podval.org/) on Fedora Core release 6 (Zod) http://iris.org.il http://jihadwatch.org http://honestreporting.com http://dhimmi.com http://memri.org http://pmw.org.il http://mideasttruth.com Save the whales, feed the hungry, free the mallocs. --- stream.d 08 Jan 2007 23:14:41 -0500 1.575 +++ stream.d 30 Jan 2007 21:53:43 -0500 @@ -10416,7 +10416,7 @@ } #else for (mbpos=0;chart_str[mbpos];mbpos++) - char_str[mbpos] = chart_str[mbpos]; + char_str[mbpos] = as_cint(chart_str[mbpos]); char_str[mbpos] = 0; CharToOem(char_str,char_str); v_puts(handle,char_str,&pos,sz,attr); |
From: Michael K. <mic...@gm...> - 2007-01-31 21:13:16
|
Hi, Sam Steingold schrieb: >> * Michael Kappert <zvp...@tz...g> [2007-01-31 02:12:28 +0100]: >> >> when trying to build clisp CVS 2007-01-29 on MinGW, I get >> >> stream.d: In function `rd_ch_keyboard': >> stream.d:8374: error: invalid initializer >> stream.d: In function `wr_ch_array_window': >> stream.d:10418: error: invalid operands to binary != >> stream.d:10419: error: incompatible types in assignment >> make: *** [stream.o] Error 1 > please try the appended patch. The error in stream.d:10419 is now gone, I get stream.d: In function `rd_ch_keyboard': stream.d:8374: error: invalid initializer stream.d: In function `wr_ch_array_window': stream.d:10418: error: invalid operands to binary != make: *** [stream.o] Error 1 Regards, Michael |
From: Sam S. <sd...@gn...> - 2007-02-01 01:42:04
|
> * Michael Kappert <zvp...@tz...g> [2007-01-31 22:12:48 +0100]: > > Hi, > > Sam Steingold schrieb: >>> * Michael Kappert <zvp...@tz...g> [2007-01-31 02:12:28 +0100]: >>> >>> when trying to build clisp CVS 2007-01-29 on MinGW, I get >>> >>> stream.d: In function `rd_ch_keyboard': >>> stream.d:8374: error: invalid initializer >>> stream.d: In function `wr_ch_array_window': >>> stream.d:10418: error: invalid operands to binary != >>> stream.d:10419: error: incompatible types in assignment >>> make: *** [stream.o] Error 1 > >> please try the appended patch. > > The error in stream.d:10419 is now gone, I get > > stream.d: In function `rd_ch_keyboard': > stream.d:8374: error: invalid initializer > stream.d: In function `wr_ch_array_window': > stream.d:10418: error: invalid operands to binary != > make: *** [stream.o] Error 1 please try the appended patch (against CVS head) -- Sam Steingold (http://sds.podval.org/) on Fedora Core release 6 (Zod) http://mideasttruth.com http://openvotingconsortium.org http://camera.org http://palestinefacts.org http://jihadwatch.org http://pmw.org.il Don't hit a man when he's down -- kick him; it's easier. --- stream.d 08 Jan 2007 23:14:41 -0500 1.575 +++ stream.d 31 Jan 2007 20:41:06 -0500 @@ -8371,8 +8371,8 @@ Encoding_mbstowcs(encoding) (encoding,*stream_,&bptr,bptr+max_bytes_per_chart,&cptr,cptr+1); #else - var chart c = event.Event.KeyEvent.uAsciiChar; - var cint ci = as_cint(c); + var cint ci = event.Event.KeyEvent.uAsciiChar; + var chart c = as_chart(ci); OemToCharBuff((char *)&ci,(char *)&ci,1); c = as_chart(ci); #endif @@ -10415,8 +10415,8 @@ free(mb_str); } #else - for (mbpos=0;chart_str[mbpos];mbpos++) - char_str[mbpos] = chart_str[mbpos]; + for (mbpos=0; as_cint(chart_str[mbpos]); mbpos++) + char_str[mbpos] = as_cint(chart_str[mbpos]); char_str[mbpos] = 0; CharToOem(char_str,char_str); v_puts(handle,char_str,&pos,sz,attr); |
From: Michael K. <mic...@gm...> - 2007-02-01 22:51:21
|
Hi, *Sam Steingold schrieb: > please try the appended patch (against CVS head) Ok, stream.d compiles fine now. I still get an error, when linking lisp.exe: cd data && ln -s ../../utils/unicode/UnicodeDataFull.txt . cd data && ln -s ../../doc/Symbol-Table.text . gcc -mno-cygwin -g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -falign-functions=4 -D_WIN32 -g -DDEBUG_OS_ERROR -DDEBUG_SPVW -DDEBUG_BYTECODE -DSAFETY=3 -DNO_TERMCAP_NCURSES -DDYNAMIC_FFI -DNO_GETTEXT -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 libcharset.a libavcall.a libcallback.a -luser32 -lws2_32 -lole32 -loleaut32 -luuid -L/usr/local/lib -lsigsegv -o lisp.exe encoding.o(.text+0x7e0): In function `C_convert_string_from_bytes': e:/home/michael/projects/clisp/build.dynffi.mingw.nounicode.debug/encoding.d:2769: undefined reference to `fehler_incomplete' collect2: ld returned 1 exit status make: *** [lisp.exe] Error 1 Strange, because encoding.c has nonreturning_function(local, fehler_incomplete, (object encoding)) { pushSTACK(TheEncoding(encoding)->enc_charset); fehler(error,GETTEXT("incomplete byte sequence at end of buffer for ~S")); } copied verbatim from encoding.d Sorry if I can't be of much help, I'm not exactly a C guru. Michael |
From: Sam S. <sd...@gn...> - 2007-02-02 01:58:25
|
> * Michael Kappert <zvp...@tz...g> [2007-02-01 23:51:01 +0100]: > > Hi, > > *Sam Steingold schrieb: >> please try the appended patch (against CVS head) > > Ok, stream.d compiles fine now. > I still get an error, when linking lisp.exe: > > cd data && ln -s ../../utils/unicode/UnicodeDataFull.txt . > cd data && ln -s ../../doc/Symbol-Table.text . > gcc -mno-cygwin -g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit > -Wreturn-type -Wmissing-declarations -Wno-sign-compare > -falign-functions=4 -D_WIN32 -g -DDEBUG_OS_ERROR -DDEBUG_SPVW > -DDEBUG_BYTECODE -DSAFETY=3 -DNO_TERMCAP_NCURSES -DDYNAMIC_FFI > -DNO_GETTEXT -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 libcharset.a > libavcall.a libcallback.a -luser32 -lws2_32 -lole32 -loleaut32 -luuid > -L/usr/local/lib -lsigsegv -o lisp.exe > encoding.o(.text+0x7e0): In function `C_convert_string_from_bytes': > e:/home/michael/projects/clisp/build.dynffi.mingw.nounicode.debug/encoding.d:2769: > undefined reference to `fehler_incomplete' > collect2: ld returned 1 exit status > make: *** [lisp.exe] Error 1 please try the appended patch -- Sam Steingold (http://sds.podval.org/) on Fedora Core release 6 (Zod) http://honestreporting.com http://iris.org.il http://thereligionofpeace.com http://camera.org http://israelunderattack.slide.com http://dhimmi.com Heredity, n: the reason your children are bright. --- encoding.d 10 Jan 2007 23:42:23 -0500 1.137 +++ encoding.d 01 Feb 2007 20:57:45 -0500 @@ -286,11 +286,14 @@ } } +#endif /* UNICODE */ +/* used in CONVERT-STRING-FROM-BYTES, so must not depend on UNICODE */ /* missing bytes at the end */ nonreturning_function(local, fehler_incomplete, (object encoding)) { pushSTACK(TheEncoding(encoding)->enc_charset); fehler(error,GETTEXT("incomplete byte sequence at end of buffer for ~S")); } +#ifdef UNICODE local void handle_incomplete (object encoding, chart* *destp) { var object action = TheEncoding(encoding)->enc_towcs_error; if (eq(action,S(Kignore))) { |
From: Michael K. <mic...@gm...> - 2007-02-02 22:10:46
|
* Sam Steingold schrieb: > please try the appended patch Ok! "make" now reported "encoding has no member named enc_charset", so I made the change to lispbibl.d below (wild guessing). With this the build went fine, but (make-encoding :charset "iso-8859-1") fails. I think it should work, because iso-8859-1 is non-unicode? Regards Michael --- lispbibl.d Mon Jan 29 20:42:58 2007 1.716 +++ lispbibl.d Fri Feb 2 20:34:57 2007 @@ -6036,7 +6036,7 @@ gcv_object_t enc_towcs_error _attribute_aligned_object_; # input error action, :ERROR or :IGNORE or a character gcv_object_t enc_tombs_error _attribute_aligned_object_; # output error action, :ERROR or :IGNORE or a character or an uint8 - #ifdef UNICODE gcv_object_t enc_charset _attribute_aligned_object_; # character set, a symbol in the CHARSET package # or a simple-string + #ifdef UNICODE # Functions to convert bytes to characters. gcv_object_t enc_mblen _attribute_aligned_object_; # uintL (*) (object encoding, const uintB* src, const uintB* srcend); |
From: Sam S. <sd...@gn...> - 2007-02-03 23:19:40
|
> * Michael Kappert <zvp...@tz...g> [2007-02-02 23:10:27 +0100]: > > "make" now reported "encoding has no member named enc_charset", > so I made the change to lispbibl.d below (wild guessing). Not good. without unicode there are no encodings. not that they really make no sense (they do), they just aren't implemented. > With this the build went fine, but (make-encoding :charset "iso-8859-1") > fails. I think it should work, because iso-8859-1 is non-unicode? if you do not want unicode, then character is exactly the same as an 8-bit byte, and you don't need encodings. char-code and code-char is all you need. please try the appended patch instead. -- Sam Steingold (http://sds.podval.org/) on Fedora Core release 6 (Zod) http://camera.org http://ffii.org http://truepeace.org http://jihadwatch.org http://palestinefacts.org http://memri.org http://mideasttruth.com Lottery is a tax on statistics ignorants. MS is a tax on computer-idiots. Index: encoding.d =================================================================== RCS file: /cvsroot/clisp/clisp/src/encoding.d,v retrieving revision 1.137 diff -u -w -u -b -w -i -B -r1.137 encoding.d --- encoding.d 11 Jan 2007 04:51:46 -0000 1.137 +++ encoding.d 3 Feb 2007 23:19:14 -0000 @@ -286,11 +286,18 @@ } } +#endif /* UNICODE */ +/* used in CONVERT-STRING-FROM-BYTES, so must not depend on UNICODE */ /* missing bytes at the end */ nonreturning_function(local, fehler_incomplete, (object encoding)) { +#ifdef UNICODE pushSTACK(TheEncoding(encoding)->enc_charset); +#else + pushSTACK(encoding); /* no enc_charset slot without UNICODE */ +#endif fehler(error,GETTEXT("incomplete byte sequence at end of buffer for ~S")); } +#ifdef UNICODE local void handle_incomplete (object encoding, chart* *destp) { var object action = TheEncoding(encoding)->enc_towcs_error; if (eq(action,S(Kignore))) { |
From: Michael K. <mic...@gm...> - 2007-02-05 22:24:04
|
Sam Steingold schrieb: >> * Michael Kappert <zvp...@tz...g> [2007-02-02 23:10:27 +0100]: >> >> "make" now reported "encoding has no member named enc_charset", >> so I made the change to lispbibl.d below (wild guessing). > > Not good. without unicode there are no encodings. > not that they really make no sense (they do), they just aren't > implemented. > >> With this the build went fine, but (make-encoding :charset "iso-8859-1") >> fails. I think it should work, because iso-8859-1 is non-unicode? > > if you do not want unicode, then character is exactly the same as an > 8-bit byte, and you don't need encodings. > char-code and code-char is all you need. > > please try the appended patch instead. Ok! The build went through without any problems. Thanks, Michael |