From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.user Subject: Re: statically linking in srfi modules Date: Fri, 08 Feb 2013 17:11:00 -0500 Message-ID: <87zjze5udn.fsf@tines.lan> References: <1360315456.2172.131.camel@debian-box.lan> <1360315553.2172.132.camel@debian-box.lan> <87sj5711wu.fsf@pobox.com> <1360345958.2172.181.camel@debian-box.lan> <874nhm7aed.fsf@tines.lan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1360361490 1527 80.91.229.3 (8 Feb 2013 22:11:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Feb 2013 22:11:30 +0000 (UTC) Cc: Andy Wingo , guile-user@gnu.org To: Richard Shann Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Feb 08 23:11:51 2013 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U3wAh-0001rn-Ji for guile-user@m.gmane.org; Fri, 08 Feb 2013 23:11:51 +0100 Original-Received: from localhost ([::1]:60897 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3wAO-00018O-AK for guile-user@m.gmane.org; Fri, 08 Feb 2013 17:11:32 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:60883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3wAI-00017k-Q3 for guile-user@gnu.org; Fri, 08 Feb 2013 17:11:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U3wAA-0001Yf-Ab for guile-user@gnu.org; Fri, 08 Feb 2013 17:11:19 -0500 Original-Received: from world.peace.net ([96.39.62.75]:40244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3wAA-0001YU-4f for guile-user@gnu.org; Fri, 08 Feb 2013 17:11:18 -0500 Original-Received: from 209-6-91-212.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com ([209.6.91.212] helo=tines.lan) by world.peace.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1U3wA2-0001VI-Vk; Fri, 08 Feb 2013 17:11:11 -0500 In-Reply-To: <874nhm7aed.fsf@tines.lan> (Mark H. Weaver's message of "Fri, 08 Feb 2013 16:39:38 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 96.39.62.75 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:10054 Archived-At: I wrote: > Richard Shann writes: > >> > > The problem is the call to 'load-extension' near the top of > 'srfi-1.scm', which again tries to load that shared library. > You'll have to remove that call from 'srfi-1.scm'. > > You should probably do the same thing for libguile-srfi-srfi-13-14-v-3, > so that Denemo users who wish to use the string or character set > libraries can do so. Sorry, I was mistaken. It turns out that srfi-13-14 was moved into the core a while ago, and that shared library is just an empty dummy library. The same is true of srfi-4. However, there's also a shared library for srfi-60, which should be statically linked as well. Just as for srfi-1, the call to 'load-extension' should be removed from srfi-60.scm, and you should add the following to your C initialization code: scm_c_register_extension ("libguile-srfi-srfi-60-v-2", "scm_init_srfi_60", scm_init_srfi_60, NULL); Regards, Mark