guile-devel
[Top][All Lists]
Advanced

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

Should (dynamic-link "./hello.lo") work these days?


From: Rob Browning
Subject: Should (dynamic-link "./hello.lo") work these days?
Date: 21 Mar 2001 13:43:17 -0600
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

NOTE: all info here relates to guile 1.4.

Now that I've gotten the basic ghobbit working (at least it seems to
be working), I'm trying to get compile.scm (the wrapper) working.

For a simple test (I'm just using dummy module names for now):

  (use-modules (comp compile))
  (compile "hello" hi)

it gets past the libtool step and produces ./hello.lo.  However, when
it then goes to dynamic-link hello.lo, it fails.  I can see from the
strace that it does find the file, and then looks for hello.lo.so.  I
can also verify that (dynamic-link "./hello.lo") fails when run on
it's own with the same problem.  So I'm wondering why dynamic-link
isn't happy with the .lo file.

I figured it might be because I needed to create the libtool
libhello.la file, so I did that, but then I get similar problems.
dynamic-link is looking all over for the wrong things, perhaps trying
to be smarter than I'd like.

Here's what's in the strace for the first "hello.lo" case:

8777  munmap(0x40018000, 4096)          = 0
8777  times({tms_utime=24, tms_stime=3, tms_cutime=0, tms_cstime=0}) = 65683052
8777  open("./hello.lo", O_RDONLY)      = 4
8777  read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\1\0\3\0\1\0\0\0\0\0\0\0"..., 
1024) = 1024
8777  close(4)                          = 0
8777  open("./hello.lo.la", O_RDONLY)   = -1 ENOENT (No such file or directory)
8777  open("./hello.lo.so", O_RDONLY)   = -1 ENOENT (No such file or directory)
8777  write(2, "\n", 1)                 = 1
8777  write(1, "Backtrace:\n", 11)      = 11
8777  write(2, "0", 1)                  = 1
8777  write(2, "*", 1)                  = 1
8777  write(2, " ", 1)                  = 1
8777  write(2, "[dynamic-link \"./hello.lo\"]", 27) = 27

-- 
Rob Browning <address@hidden> PGP=E80E0D04F521A094 532B97F5D64E3930



reply via email to

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