guile-user
[Top][All Lists]
Advanced

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

Readline support in Cygwin


From: Akop Pogosian
Subject: Readline support in Cygwin
Date: Tue, 8 Jan 2013 21:10:34 -0600

Should this be reported as a Guile bug?

I have built Guile 2.0.7 in a recent version of Cygwin environment
under Windows 7. Readline support doesn't work. E.g.:

# $ guile --version
# guile (GNU Guile) 2.0.7
# ...

# $ guile -c "(use-modules (ice-9 readline))"

This gives a long trace output ending in:

# 2797: 3 [#<procedure 801d4690 at ice-9/boot-9.scm:2787:17 ()>]
# In unknown file:
#  ?: 2 [primitive-load-path "ice-9/readline" #f]
# In ice-9/readline.scm:
#  43: 1 [#<procedure 801d0000 ()>]
#In unknown file:
#   ?: 0 [load-extension "libguilereadline-v-18" "scm_init_readline"]
#
# ERROR: In procedure load-extension:
# ERROR: In procedure dynamic-link: file: "libguilereadline-v-18",
message: "The specified module could not be found."

There appear to be readline header files and library on my PC:

# $ ls /usr/lib/libreadline.* /usr/include/readline/*
# /usr/include/readline/chardefs.h  /usr/include/readline/rlstdc.h
# /usr/include/readline/history.h   /usr/include/readline/rltypedefs.h
# /usr/include/readline/keymaps.h   /usr/include/readline/tilde.h
# /usr/include/readline/readline.h  /usr/lib/libreadline.a
# /usr/include/readline/rlconf.h    /usr/lib/libreadline.dll.a


As well as the readline module in the Guile package directory:

# $ ls software/packages/guile-2.0.7/lib/
# guile           libguile-2.0.la          libguilereadline-v-18.la
# libguile-2.0.a  libguilereadline-v-18.a  pkgconfig

# $ ls software/packages/guile-2.0.7/share/guile/2.0/ice-9/readline.scm
# software/packages/guile-2.0.7/share/guile/2.0/ice-9/readline.scm


Guile was built with the following commands:

# LIBFFI_CFLAGS=-I/usr/lib/gcc/i686-pc-cygwin/4.5.3/include
LIBFFI_LIBS="-lffi -L/usr/lib/gcc/i686-pc-cygwin/4.5.3" ./configure
--prefix=$HOME/software/packages/guile-2.0.7
# make
# make install

During the configure stage, there was an indication that readline
library is found:

# checking how to link with libreadline... -lreadline
# ...
# checking for rl_getc_function pointer in readline... yes
# ...
# config.status: creating guile-readline/Makefile

However, during the "make" stage, the following messages were seen:

Making all in guile-readline
make[2]: Entering directory
`/home/akopps/software/src/guile-2.0.7/guile-readline'
  SNARF  readline.x
make  all-am
make[3]: Entering directory
`/home/akopps/software/src/guile-2.0.7/guile-readline'
  CC       readline.lo
  CCLD     libguilereadline-v-18.la

*** Warning: This system can not link to static lib archive
../libguile/libguile-2.0.la.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

*** Warning: linker path does not have real file for library -lreadline.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libreadline but no candidates were found. (...for file magic test)



reply via email to

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