Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 246156 - dev-scheme/guile: modules broken on osx
Summary: dev-scheme/guile: modules broken on osx
Status: RESOLVED INVALID
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: All OS X
: Highest normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-09 12:58 UTC by Elias Pipping
Modified: 2010-11-19 14:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elias Pipping 2008-11-09 12:58:27 UTC
guile> (use-modules (ice-9 readline))
ERROR: In procedure dynamic-link:
ERROR: file: "libguilereadline-v-17", message: "dlopen(libguilereadline-v-17.so, 9): image not found"
ABORT: (misc-error)

guile tries to load .so files instead of .dylibs.

pipping@quicksand ~ $ equery f guile | grep readline
/Users/pipping/gentoo/usr/include/guile/readline.h
/Users/pipping/gentoo/usr/lib/libguilereadline-v-17.17.0.3.dylib
/Users/pipping/gentoo/usr/lib/libguilereadline-v-17.17.dylib
/Users/pipping/gentoo/usr/lib/libguilereadline-v-17.dylib
/Users/pipping/gentoo/usr/lib/libguilereadline-v-17.la
/Users/pipping/gentoo/usr/share/guile/1.8/ice-9/readline.scm
Comment 1 Elias Pipping 2008-11-09 13:03:03 UTC
Creating a symlink doesn't help.

pipping@quicksand ~/gentoo/usr/lib $ l libguilereadline-v-17.so
lrwx------ 1 pipping staff 27 2008-11-09 14:01 libguilereadline-v-17.so -> libguilereadline-v-17.dylib

guile> (use-modules (ice-9 readline))
ERROR: In procedure dynamic-link:
ERROR: file: "libguilereadline-v-17", message: "dlopen(libguilereadline-v-17.so, 9): image not found"
ABORT: (misc-error)
guile> 
Comment 2 Fabian Groffen gentoo-dev 2008-11-09 13:05:07 UTC
That's because it looks for it in the current working dir.  Is there an option to disable dso in guile?  That's an easy workaround for a broken system.
Comment 3 Elias Pipping 2008-11-09 14:57:51 UTC
not that i know of
Comment 4 Matt Ryall 2009-09-20 11:44:48 UTC
For the MacPorts version of Guile, setting the DYLD_LIBRARY_PATH environment variable to the location of the Guile modules (in my case, /opt/local/lib) fixed this problem.
Comment 5 Elias Pipping 2009-09-20 11:52:41 UTC
on osx, DYLD_LIBRARY_PATH is considered evil, making that a workaround rather than a fix.
Comment 6 Elias Pipping 2010-11-19 14:11:00 UTC
I don't have a box to reproduce this on anymore. If someone cares about this and the issue persists, please reopen it.