unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* guile-1.6.0: loading libraries
@ 2002-11-26 13:11 David Pirotte
  0 siblings, 0 replies; 5+ messages in thread
From: David Pirotte @ 2002-11-26 13:11 UTC (permalink / raw)


Hi Everyone,

here is a very old probelm, still occuring in guile-1.6.0: loading
modules themselves refering to libraries does not work.

	

1. the lib is there:

	root@faust:/usr/local/lib 3 $ ll libgtrees.so*
	lrwxrwxrwx    1 david    alto           14 2002-11-26 07:52 libgtrees.so -> libgtrees.so.0
	-rwxrwxr-x    1 david    alto        22892 2002-11-26 07:51 libgtrees.so.0
	root@faust:/usr/local/lib 4 $ 

2. the module file

	;; /usr/local/share/guile/struct/gtrees.scm
	(define-module (struct gtrees))
	(load-extension "libgtrees" "init_gtrees_module")

3. the message when trying to load it


david@faust:~ 3 $ guile
guile> (use-modules (struct gtrees))
/usr/local/share/guile/struct/gtrees.scm:4:1: In procedure dynamic-link in expression (load-extension "libgtrees" "init_gtrees_module"):
/usr/local/share/guile/struct/gtrees.scm:4:1: file: "libgtrees", message: "file not found"
ABORT: (misc-error)

Type "(backtrace)" to get more information or "(debug)" to enter the debugger.
guile> 


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: guile-1.6.0: loading libraries
  2002-11-27 11:27 Thomas Wawrzinek
@ 2002-11-27  4:17 ` David Pirotte
  2002-11-27 16:27   ` Paul Emsley
  0 siblings, 1 reply; 5+ messages in thread
From: David Pirotte @ 2002-11-27  4:17 UTC (permalink / raw)
  Cc: guile-user

On Wed, 27 Nov 2002 12:27:40 +0100 (MET)
Thomas Wawrzinek <wawrzin@cs.tu-berlin.de> wrote:

> Is there another libgtrees.* library installed in some other directory
> (e.g. /lib or /usr/lib)?

no

> Does /usr/local/lib precede /lib and /usr/lib in your search path for
> shared libs (LD_LIBRARY_PATH, LTLD_LIBRARY_PATH)?

no, here it the path

	david@faust:/usr/local/share/guile/alto 6 $ echo $LD_LIBRARY_PATH
	/lib:/usr/lib:/usr/lib/X11:/usr/local/lib:/usr/local/pgsql/lib:/opt/gnome/lib
	david@faust:/usr/local/share/guile/alto 7 $ echo $LTLD_LIBRARY_PATH

	david@faust:/usr/local/share/guile/alto 8 $ 




> When you grep through the output of 'strace' for 'libgtrees', what do
> you see?

it only looks for .la files?

thanks a lot for your help,
david


...
read(4, "\n(define-module (struct gtrees))"..., 4096) = 84
open("/lib/libgtrees.la", O_RDONLY)     = -1 ENOENT (No such file or directory)
open("/usr/lib/libgtrees.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/X11/libgtrees.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/libgtrees.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/pgsql/lib/libgtrees.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/opt/gnome/lib/libgtrees.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libgtrees.la", O_RDONLY)     = -1 ENOENT (No such file or directory)
open("/usr/lib/libgtrees.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("libgtrees.la", O_RDONLY)          = -1 ENOENT (No such file or directory)
write(2, "ERROR", 5)                    = 5
...


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: guile-1.6.0: loading libraries
@ 2002-11-27 11:27 Thomas Wawrzinek
  2002-11-27  4:17 ` David Pirotte
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Wawrzinek @ 2002-11-27 11:27 UTC (permalink / raw)


david@altosw.be writes:
> 1. the lib is there:
>
>	root@faust:/usr/local/lib 3 $ ll libgtrees.so*
	lrwxrwxrwx    1 david    alto           14 2002-11-26 07:52
	libgtrees.so -> libgtrees.so.0
>	-rwxrwxr-x    1 david    alto        22892 2002-11-26 07:51
>	libgtrees.so.0

Is there another libgtrees.* library installed in some other directory
(e.g. /lib or /usr/lib)?

Does /usr/local/lib precede /lib and /usr/lib in your search path for
shared libs (LD_LIBRARY_PATH, LTLD_LIBRARY_PATH)?

When you grep through the output of 'strace' for 'libgtrees', what do
you see?

Regards,

	Thomas



_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: guile-1.6.0: loading libraries
  2002-11-27  4:17 ` David Pirotte
@ 2002-11-27 16:27   ` Paul Emsley
  0 siblings, 0 replies; 5+ messages in thread
From: Paul Emsley @ 2002-11-27 16:27 UTC (permalink / raw)


On Wed, 2002-11-27 at 04:17, David Pirotte wrote:
> On Wed, 27 Nov 2002 12:27:40 +0100 (MET)
> Thomas Wawrzinek <wawrzin@cs.tu-berlin.de> wrote:
> 
> > Is there another libgtrees.* library installed in some other directory
> > (e.g. /lib or /usr/lib)?
> 
> no
> 
> > Does /usr/local/lib precede /lib and /usr/lib in your search path for
> > shared libs (LD_LIBRARY_PATH, LTLD_LIBRARY_PATH)?
> 
> no, here it the path
> 
> 	david@faust:/usr/local/share/guile/alto 6 $ echo $LD_LIBRARY_PATH
> 	/lib:/usr/lib:/usr/lib/X11:/usr/local/lib:/usr/local/pgsql/lib:/opt/gnome/lib
> 	david@faust:/usr/local/share/guile/alto 7 $ echo $LTLD_LIBRARY_PATH
> 
> 	david@faust:/usr/local/share/guile/alto 8 $ 
> 

I think Marius discussed this a little while ago:

http://mail.gnu.org/pipermail/guile-user/2002-November/thread.html

See "load-extension woes"


HTH, 

Paul.




_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: guile-1.6.0: loading libraries
@ 2002-11-28  7:25 Thomas Wawrzinek
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Wawrzinek @ 2002-11-28  7:25 UTC (permalink / raw)


paule@chem.gla.ac.uk writes:
> I think Marius discussed this a little while ago:
>
> http://mail.gnu.org/pipermail/guile-user/2002-November/thread.html
>
> See "load-extension woes"

I can confirm, that using the stable snapshot from 

ftp://ftp.dt.e-technik.uni-dortmund.de/pub/guile/snapshots

solves the problem with gtrees, which I could reproduce on my box.

Regards,

	Thomas


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-11-28  7:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-26 13:11 guile-1.6.0: loading libraries David Pirotte
  -- strict thread matches above, loose matches on Subject: below --
2002-11-27 11:27 Thomas Wawrzinek
2002-11-27  4:17 ` David Pirotte
2002-11-27 16:27   ` Paul Emsley
2002-11-28  7:25 Thomas Wawrzinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).