From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11598 invoked by alias); 15 Nov 2001 23:20:24 -0000 Mailing-List: contact guile-gtk-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: guile-gtk-owner@sources.redhat.com Received: (qmail 11497 invoked from network); 15 Nov 2001 23:20:21 -0000 Received: from unknown (HELO li.mine.nu) (195.163.18.16) by sourceware.cygnus.com with SMTP; 15 Nov 2001 23:20:21 -0000 Received: from abc.se (li.mine.nu [192.168.0.2]) by li.mine.nu (Postfix) with ESMTP id D555D8E3DF; Thu, 15 Nov 2001 23:21:45 +0100 (CET) Message-ID: <3BF43FF9.9D8E88D0@abc.se> Date: Thu, 18 Oct 2001 00:23:00 -0000 From: Bo Forslund X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.12 i686) X-Accept-Language: en MIME-Version: 1.0 To: Alexey Rodriguez Y Cc: guile-gtk list Subject: Re: ERROR: In procedure dynamic-link: References: <3BF335B5.CC95D0F4@abc.se> <200111151337.fAFDbvQ26110@orion.memi.umss.edu.bo> <3BF3CD7C.A348EE8A@abc.se> <200111151540.fAFFemO29751@orion.memi.umss.edu.bo> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2001-q4/txt/msg00007.txt.bz2 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