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