From: <don...@is...> - 2009-08-09 06:24:10
|
Sam Steingold writes: > you might start with "rm -rf syscalls; cd ..; cvs up; cd -; make syscalls" That did an awful lot of stuff, but after it succeeded (I guess) I tried make and ended up in the same place: gcc -g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmis\ sing-declarations -Wno-sign-compare -Wno-format-nonliteral -O2 -fexpensive-opti\ mizations -falign-functions=4 -DUNICODE -DDYNAMIC_FFI -I. modules.o readline.o \ -lreadline -lncurses regexi.o libgnu_rx.a calls.o libgnu_sc.a -lm -lcrypt gette\ xt.o lisp.a -lreadline -lncurses -ldl /usr/local/lib/libavcall.a /usr/local/lib\ /libcallback.a -L/usr/local/lib -lsigsegv -lc libgnu_cl.a -o lisp.run gettext.o(.text+0x8): In function `C_subr_i18n_textdomain': /root/clisp/modules/i18n/gettext.c:144: undefined reference to `saved_STACK' gettext.o(.text+0x15):/root/clisp/modules/i18n/gettext.c:146: undefined referen\ ce to `saved_STACK' gettext.o(.text+0x1a3): In function `C_subr_i18n_locale_conv': /root/clisp/modules/i18n/gettext.c:302: undefined reference to `saved_STACK' gettext.o(.text+0x1b0):/root/clisp/modules/i18n/gettext.c:302: undefined refere\ nce to `saved_STACK' gettext.o(.text+0x3a1): In function `C_subr_i18n_language_information': /root/clisp/modules/i18n/gettext.c:502: undefined reference to `saved_STACK' gettext.o(.text+0x3af):/root/clisp/modules/i18n/gettext.c:502: more undefined r\ eferences to `saved_STACK' follow collect2: ld returned 1 exit status ./clisp-link: failed in /root/clisp/build-dir/base make: *** [base] Error 1 which I guess means that I'm now here - the problems persisted. > and, if the problem persists, try creating the regexi.i file. > this is the cpp-processed source, i.e., all the macros are expanded and > all the #include's included. > the sample rules are in the main Makefile, basically, you need to add > > regexi.i : regexi.m.c ... > $(CPP) ... > regexi.i So in regexp/Makefile I now put regexi.i : regexi.m.c config.h gllib $(CPP) $(CPPFLAGS) $(CFLAGS) -I$(INCLUDES) -Igllib -c $< -o $@ > (i.e., take the rule for regexi.o and replace $(CC) with $(CPP)). Then after cd regexp I do make regexi.i and end up with make[1]: Leaving directory `/root/clisp/build-dir/regexp/gllib' gcc -E -g -O2 -I$(clisp -q -norc -b)/linkkit -Igllib -c regexi.m.c -o regexi.i clisp: invalid command-line option, try `clisp --help' /root/clisp/modules/regexp/regexi.c:7:19: error: clisp.h: No such file or direc\ tory /root/clisp/modules/regexp/regexi.c:14:2: error: #error FOREIGN is not defined. /root/clisp/modules/regexp/regexi.c:15:2: error: #error REGEXP needs a CLISP bu\ ilt with the foreign pointer datatype support. /root/clisp/modules/regexp/regexi.c:16:2: error: #error Go into the main CLISP \ makefile and add a -DFOREIGN=void* /root/clisp/modules/regexp/regexi.c:17:2: error: #error to CFLAGS make variable\ and rebuild CLISP before coming back here. make: *** [regexi.i] Error 1 Does this make sense to you? I'd have expected that I did have foreign and clisp.h, and that if these were missing when I tried to make the .i then they would have been missed in trying to make the .o as well. > once you have regexi.i, search for saved_STACK - where it is used, > defined, &c, and try to figure out why it is used at all. > you might even make regexi.i available for all of to download and enjoy. > > -- > Sam Steingold (http://sds.podval.org/) on Ubuntu 9.04 (jaunty) > http://iris.org.il http://thereligionofpeace.com http://camera.org > http://ffii.org http://honestreporting.com http://pmw.org.il > The difference between genius and stupidity is that genius has its limits. |