From: Martin R. <fo...@ru...> - 2009-03-09 11:19:55
|
Dear Gerhard, very simple solution: RTFM! From fooelk/README.FOO: ----- readline extension and mac os x 10.5 on mac os x 10.5, the readline extension of fooelk does not seem to work with the libreadline that comes with the system. use macports to install another version of libreadline: sudo port install readline then compile fooelk env LDFLAGS="-L/opt/local/lib" \ CPPFLAGS="-I/opt/local/include" \ ./configure --enable-gnu-readline ----- Hope that works! All the best, Martin On Mon, Mar 09, 2009 at 11:32:57AM +0100, Gerhard Eckel wrote: > Dear Martin, > > thank you very much for the fix. Sorry to bother you with another > detail. When trying to compile fooelk, I can't get readline to work: > >> /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H - >> I. -I../.. -I../../include -I../../include -I/sw/include - >> DSCM_DIR="\"/usr/local/share/fooelk\"" -DLIB_DIR="\"/usr/local/lib/ >> fooelk\"" -Wall -g -O2 -MT completion.lo -MD -MP -MF .deps/ >> completion.Tpo -c -o completion.lo completion.c >> gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I/ >> sw/include -DSCM_DIR=\"/usr/local/share/fooelk\" -DLIB_DIR=\"/usr/ >> local/lib/fooelk\" -Wall -g -O2 -MT completion.lo -MD -MP -MF .deps/ >> completion.Tpo -c completion.c -fno-common -DPIC -o .libs/ >> completion.o >> completion.c: In function 'erl_guess_completion': >> completion.c:110: warning: implicit declaration of function >> 'rl_completion_matches' >> completion.c:110: error: 'rl_compentry_func_t' undeclared (first use >> in this function) >> completion.c:110: error: (Each undeclared identifier is reported only >> once >> completion.c:110: error: for each function it appears in.) >> completion.c:110: error: syntax error before ')' token >> make[3]: *** [completion.lo] Error 1 >> make[2]: *** [all-recursive] Error 1 >> make[1]: *** [all-recursive] Error 1 >> make: *** [all] Error 2 > > I configured with ./configure --enable-gnu-readline and got > > Elk configuration summary > ------------------------- > build C++ plugins: yes > libgdbm support: no > X11 support: no > Xaw support: no > Motif support: no > readline support: yes (-lreadline ) > use garbage colllector: stopncpy > default heap size: 16384 > build documentation: yes > > Which version of readline should be used? I have this one installed: > > readline @5.2.012_1 (active) > > Best regards, > > Gerhard > > |