chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Building readline extension on Mac OS X


From: felix winkelmann
Subject: Re: [Chicken-users] Building readline extension on Mac OS X
Date: Thu, 24 Aug 2006 00:35:24 +0200

On 8/15/06, Graham Ashton <address@hidden> wrote:

When I run "chicken-setup readline.egg" I get this:

clown% chicken-setup readline.egg
  tar xvf ../readline.egg
readline.setup
readline.scm
  /usr/bin/csc -feature compiling-extension -s -O2 -d0 readline.scm -L
-lreadline -L -ltermcap
readline.c: In function 'stub27':
readline.c:37: warning: implicit declaration of function 'history_truncate_file'
/usr/bin/ld: Undefined symbols:
_history_truncate_file
collect2: ld returned 1 exit status
*** Shell command terminated with exit status 1: gcc readline.o
-lchicken -o readline.so -fPIC -bundle -L/usr/lib -lreadline -ltermcap
-ldl -lffi -lm  -ldl -lffi -lchicken
Error: shell invocation failed with non-zero return status
"/usr/bin/csc -feature compiling-extension -s -O2 -d0 readline.scm -L
-lreadlin...
1

I took this to mean that it couldn't find readline/history.h, so
edited readline.setup, specifying /opt/local/include with -I. It then
got a bit further, but the linker failed. Adding -L/opt/local/lib
hasn't helped (as you can see below):

clown% chicken-setup readline
  /usr/bin/csc -feature compiling-extension -s -O2 -d0
-I/opt/local/include readline.scm -L/opt/local/lib -lreadline -L
-ltermcap
/usr/bin/ld: Undefined symbols:
_history_truncate_file
collect2: ld returned 1 exit status
*** Shell command terminated with exit status 1: gcc readline.o
-lchicken -o readline.so -fPIC -bundle -L/usr/lib -L/opt/local/lib
-lreadline -ltermcap -ldl -lffi -lm  -ldl -lffi -lchicken
Error: shell invocation failed with non-zero return status
"/usr/bin/csc -feature compiling-extension -s -O2 -d0
-I/opt/local/include read...

Any ideas? I'd really like to get readline support in the interactive
interpreter...


Does -lhistory help?


cheers,
felix

--
http://galinha.ucpel.tche.br:8081/blog/blog.ssp




reply via email to

[Prev in Thread] Current Thread [Next in Thread]