From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Gran Newsgroups: gmane.lisp.guile.user Subject: Re: A [serious] problem with module integration Date: Fri, 16 Nov 2012 08:03:59 -0800 (PST) Message-ID: <1353081839.32769.YahooMailNeo@web120405.mail.ne1.yahoo.com> References: Reply-To: Mike Gran NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1353081851 304 80.91.229.3 (16 Nov 2012 16:04:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Nov 2012 16:04:11 +0000 (UTC) To: Panicz Maciej Godek , "guile-user@gnu.org" Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Nov 16 17:04:21 2012 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 1TZOOz-0006Q7-DG for guile-user@m.gmane.org; Fri, 16 Nov 2012 17:04:21 +0100 Original-Received: from localhost ([::1]:42349 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZOOp-0000JW-GH for guile-user@m.gmane.org; Fri, 16 Nov 2012 11:04:11 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44127) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZOOi-0000J9-4x for guile-user@gnu.org; Fri, 16 Nov 2012 11:04:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TZOOf-0003sq-3J for guile-user@gnu.org; Fri, 16 Nov 2012 11:04:04 -0500 Original-Received: from nm22-vm0.bullet.mail.ne1.yahoo.com ([98.138.91.60]:31258) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZOOe-0003sm-RI for guile-user@gnu.org; Fri, 16 Nov 2012 11:04:01 -0500 Original-Received: from [98.138.90.49] by nm22.bullet.mail.ne1.yahoo.com with NNFMP; 16 Nov 2012 16:03:59 -0000 Original-Received: from [98.138.226.160] by tm2.bullet.mail.ne1.yahoo.com with NNFMP; 16 Nov 2012 16:03:59 -0000 Original-Received: from [127.0.0.1] by omp1061.mail.ne1.yahoo.com with NNFMP; 16 Nov 2012 16:03:59 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 548398.11270.bm@omp1061.mail.ne1.yahoo.com Original-Received: (qmail 34421 invoked by uid 60001); 16 Nov 2012 16:03:59 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1353081839; bh=4gyL8lB64QjK/P4bGRj54cx4h4qm65ceRsisH59GN8U=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=6j14VkVsJpn48d4XsEvgk0J8R7WCzQmmPJEYwmDwtCZGgF6qROv+BBfzPtJhWs/9cDuKAth1LWY2IYLCQ0Tnc1bPviUcOffZaWafgewEZSeCnVFxC0alKK2gn2/D97kXrma6IqTGvoWB9Ug2ncoW80OSoa1srQ3m8f8qQ2smvIk= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=fXXHWnRGfvzwo+xopK9j7br6fITT3yRREeali8qnxQMBUawe38kIGxgPStkW0xJDjhsAkG5Q8NvTsoCL08URm4EOZB9Qg3J8AP2djR8R6CH4KCb9uHLWbpMVBgW+p7n8JQwT/ubLcUNBXgqaAGgzmA0RIrNo1/eXCkw0Svdaavc=; X-YMail-OSG: 1xiAQj0VM1l8zCuHbiOvzkpCeRVGDHa18V1vnyi_z_Zdgl3 nlyz14rc0RtlrvS7WZja4EhOVq21RdMAcAwQ9E108RPF7fdHJML5QhU5naAQ 1Lu1.boPEVEVb09ZsqtppieOtpjoTH3E9v.d6tcwZnWm3HZtPTW0J1z1KOQN L54ut0qFMFcANXwI1BkHIG93JiJe.5hhNyfcdNAj8cXQUsnrvk4cVwhx1zHq sXs1dC_xrFYCUi2J5CRqSzSx1tZHTXj272My7vXRvQUfRgq5Joe1wPpZK8j. hDfO4PN0kuITM1tBGxMCmuwNUMzOPRWa5YDWUM7h9cjcPTEaPGlpqLR3PTy9 4IynPTwryyiIyZYv8LyWbwWaAu18GoN8fLAStsIJjrM2lvnIJQUqypHU5GHL lLwxirMK5bdvK6DwG0egc8hqwJujBuFlPTPqqMHIKZoRGov3YGrSalOrMomI 4tJTIhwrlNpQWBZT7iXvQ_OKKI_tBphEHaXUFKlCj44RZ2NVopFFaURiCa8y Cdp57g2DZnPUHeCRvtwItbt.V3u7VSYrWga0TgveQdQTXjDqWeE8jzCn.SNu i6TH1fS7tDIvsjhVCvQUPh.4- Original-Received: from [71.130.210.109] by web120405.mail.ne1.yahoo.com via HTTP; Fri, 16 Nov 2012 08:03:59 PST X-Rocket-MIMEInfo: 001.001, SGVsbG8gUGFuaWN6LQoKPiBGcm9tOiBQYW5pY3ogTWFjaWVqIEdvZGVrIDxnb2Rlay5tYWNpZWtAZ21haWwuY29tPgo.IEFuZCBub3cgSSBoYXZlIGEgcHJvYmxlbTogdGhlIG1vZHVsZXMgdGhhdCBJIHdyb3RlIG1ha2UgdXNlCj4gb2YgdGhlIHN5bWJvbHMgZGVmaW5lZCBieSBteSBhcHBsaWNhdGlvbiAodXNpbmcgc2NtX2NfZGVmaW5lLi4uKSwKPiBidXQgdGhleSBhcmUgdW5hdmFpbGFibGUgb3V0c2lkZSBteSBhcHBsaWNhdGlvbiwgaS5lLiBmb3IgZXh0ZXJuYWwKPiBtb2R1bGVzLgoKW3NuaXBdCgpJIHIBMAEBAQE- X-Mailer: YahooMailWebService/0.8.123.460 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x X-Received-From: 98.138.91.60 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:9686 Archived-At: Hello Panicz-=0A=0A> From: Panicz Maciej Godek =0A>= And now I have a problem: the modules that I wrote make use=0A> of the sym= bols defined by my application (using scm_c_define...),=0A> but they are un= available outside my application, i.e. for external=0A> modules.=0A=0A[snip= ]=0A=0AI read this, and I am having a bit of trouble visualizing=0Awhat you= 've done, but, perhaps your problem can be fixed=0Aby simply replacing scm_= c_define with scm_c_export.=0A=A0=0ASo try that first.=0A=0AIn any case, I = pretty sure I did what you are trying to=0Awhen I added guile handling to a= private build of the Zile=0Aeditor.=A0 Re http://github.com/spk121/zile=A0= .=A0 This is a bit=0Amore elaborate because I wanted my exported functions= =0Ato be in their own named module=0A=0AIf I recall correctly, (cause I hav= en't touched this code=0Ain a while), in my C code that defines the Guile e= xports,=0AI did this.=0A=0A- created a new module called 'zile' to hold my = functions using=0A=A0 scm_c_resolve_module("zile")=0A- defined my functions= into that module with =0A=A0=A0scm_c_export=0A- switched back to the (guil= e user) environment=0A=A0 with scm_c_resolve_module("guile-user")=0A- loade= d my newly defined module using=0A=A0 scm_c_use_module("zile")=0A=0AHope th= is correct, and that it helps.=0A=0A-Mike Gran=0A