From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Vong Subject: Re: (dynamic-link "libm") doesn't work on guile Date: Fri, 08 Jan 2016 19:56:47 +0800 Message-ID: <87d1tc9tds.fsf@gmail.com> References: <87bn8x65i9.fsf@gmail.com> <20160108023049.GA26535@jasmine> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40394) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHVf4-000377-HG for help-guix@gnu.org; Fri, 08 Jan 2016 06:56:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aHVf1-0007PH-BZ for help-guix@gnu.org; Fri, 08 Jan 2016 06:56:54 -0500 Received: from mail-pf0-x22b.google.com ([2607:f8b0:400e:c00::22b]:35775) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHVf1-0007Op-6x for help-guix@gnu.org; Fri, 08 Jan 2016 06:56:51 -0500 Received: by mail-pf0-x22b.google.com with SMTP id 65so9041140pff.2 for ; Fri, 08 Jan 2016 03:56:50 -0800 (PST) In-Reply-To: <20160108023049.GA26535@jasmine> (Leo Famulari's message of "Thu, 7 Jan 2016 21:30:49 -0500") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org To: Leo Famulari Cc: help-guix@gnu.org Leo Famulari writes: > On Thu, Jan 07, 2016 at 06:36:14PM +0800, Alex Vong wrote: >> Hi people, >> >> >> I got the following error message when trying to dlopen a shared library >> in ~/guix-profile/bin/guile installed by guix: >> >> scheme@(guile-user)> (dynamic-link "libm") >> ERROR: In procedure dynamic-link: >> ERROR: In procedure dynamic-link: file: "libm", message: "file not found" >> >> Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. >> >> >> I think it is a guix-specific problem since /usr/bin/guile installed by >> debian works fine: >> >> scheme@(guile-user)> (dynamic-link "libm") >> $1 = # >> >> >> Any idea? > > Usually when a Debian package works while the Guix package fails, I > examine the Debian packaging, especially the file at 'debian/rules'. > > You can find those on the package web page [0] as the [...]debian.tar.xz > file and surely through some command-line tool. > > [0] Make sure to select your Debian release (Jessie, Stretch, etc): > https://packages.debian.org/stretch/guile-2.0 Thanks, but I think I am out of luck finding clues from the Debian package. Btw, the source is also avaliable in , so no tarball downloading is needed. Currently, the package page has no hyperlink pointing to it, I think it should be added. >> >> Thanks, >> Alex >>