public inbox for guile-gtk@sourceware.org
 help / color / mirror / Atom feed
From: Bo Forslund <bo.forslund@abc.se>
To: Alexey Rodriguez Y <alexey@memi.umss.edu.bo>
Cc: guile-gtk list <guile-gtk@sourceware.cygnus.com>
Subject: Re: ERROR: In procedure dynamic-link:
Date: Thu, 18 Oct 2001 00:23:00 -0000	[thread overview]
Message-ID: <3BF43FF9.9D8E88D0@abc.se> (raw)
In-Reply-To: <200111151540.fAFFemO29751@orion.memi.umss.edu.bo>

Hello!

How is it with libnames? I have always assumed that the dynamic libs were called
something like libname.so.1.2.3.
Then when running ldconfig, a symbolic link is made called libname.so pointing
at it. I checked /lib and /usr/lib and couldn't see any libname without
extension. Everyone had extensions .a .al .o or .so.

So I did this in dynlink.scm

(define string-append
  (lambda args
    (let f ((ls args) (n 0))
      (if (null? ls)
          (make-string n)
          (let* ((s1 (car ls))
                 (m (string-length s1))
                 (s2 (f (cdr ls) (+ n m))))
            (do ((i 0 (+ i 1)) (j n (+ j 1)))
                ((= i m) s2)
                (string-set! s2 j (string-ref s1 i))))))))

Then at what used to be /usr/share/guile/gtk/dynlink.scm:19:34:
(dynamic-call init-func (dynamic-link (string-append libname ".so")))


Not very elegant but it works.

Shouldn't guile-gtk (or any prog for that matter) always look for libname.so?

I shall find out who is calling dynlinl.scm and have it call for libname.so. Can
You figure out one reason why it not should look for .so?



> :It would be interesting to diff with the version that came with mdk8.

I use the same version of guile-gtk as I did before the mdk upgrade
(guile-gtk-0.19-1) built from the src.rpm. It used to work with Mandrake 7.2 and
( i think ) 8.0.

>
>   Btw Bo, i had problems loading .glade files using gnome-guile libglade. I
> cannot exactly repeat the bugs but maybe you have already experienced those.
>

The only .glade files I know about is the project.glade files to use with the
Glade GUI builder, and they load.

Bo

  reply	other threads:[~2001-11-15 23:20 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-11  4:34 Bo Forslund
2001-10-11  6:16 ` Alexey Rodriguez Y
2001-10-11 13:25   ` Bo Forslund
2001-10-11 15:20     ` Alexey Rodriguez Y
2001-10-18  0:23       ` Bo Forslund [this message]
2001-10-18  3:10         ` Marius Vollmer
2001-10-18 10:59           ` Alexey Rodriguez Y
2001-10-19 15:01             ` Bo Forslund
2001-11-05 17:33               ` Marius Vollmer
2001-11-12 13:11                 ` Bo Forslund
2001-11-14 10:53                   ` Marius Vollmer
2001-11-12 14:08             ` Marius Vollmer
2001-11-14 20:24               ` Alexey Rodriguez Y
2001-11-15  5:28                 ` Marius Vollmer
2001-11-15  7:11                   ` Bo Forslund
2001-11-15 15:20                     ` guile-gtk snapshot (was Re: ERROR: In procedure dynamic-link:) Steve Tell
2001-11-15 15:39                       ` Steve Tell
2001-11-16 14:11                         ` Bo Forslund
2001-11-17  6:17                           ` Bo Forslund
2001-11-18  8:30                             ` Yet a new version " Bo Forslund
2001-12-28 20:21                               ` Bo Forslund
2001-12-28 17:07                             ` guile-gtk snapshot " Bo Forslund
2001-12-28 16:47                           ` Bo Forslund
2001-12-28  6:25                         ` Steve Tell
2001-11-25  5:33                       ` Ariel Rios
2001-12-30 23:39                         ` Ariel Rios
2001-12-27 20:28                       ` Steve Tell
2001-11-25  7:33                     ` ERROR: In procedure dynamic-link: Bo Forslund

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3BF43FF9.9D8E88D0@abc.se \
    --to=bo.forslund@abc.se \
    --cc=alexey@memi.umss.edu.bo \
    --cc=guile-gtk@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).