From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rixed@happyleptic.org Newsgroups: gmane.lisp.guile.user Subject: Re: A [serious] problem with module integration Date: Sat, 17 Nov 2012 21:28:47 +0100 Message-ID: <20121117202847.GA3605@ombreroze.happyleptic.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1353184151 32613 80.91.229.3 (17 Nov 2012 20:29:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 17 Nov 2012 20:29:11 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Nov 17 21:29:22 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 1TZp10-0000ql-4T for guile-user@m.gmane.org; Sat, 17 Nov 2012 21:29:22 +0100 Original-Received: from localhost ([::1]:46375 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZp0q-0007Ze-3c for guile-user@m.gmane.org; Sat, 17 Nov 2012 15:29:12 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:54061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZp0j-0007Yt-Fn for guile-user@gnu.org; Sat, 17 Nov 2012 15:29:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TZp0g-00018Q-Dc for guile-user@gnu.org; Sat, 17 Nov 2012 15:29:05 -0500 Original-Received: from smtp4-g21.free.fr ([2a01:e0c:1:1599::13]:51411) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZp0f-00016m-RJ for guile-user@gnu.org; Sat, 17 Nov 2012 15:29:02 -0500 Original-Received: from ombreroze.happyleptic.org (unknown [82.229.213.209]) by smtp4-g21.free.fr (Postfix) with ESMTP id 266264C803D for ; Sat, 17 Nov 2012 21:28:49 +0100 (CET) Original-Received: from rixed by ombreroze.happyleptic.org with local (Exim 4.80) (envelope-from ) id 1TZp0R-00018A-DE for guile-user@gnu.org; Sat, 17 Nov 2012 21:28:47 +0100 Mail-Followup-To: rixed@happyleptic.org, guile-user@gnu.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a01:e0c:1:1599::13 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:9693 Archived-At: -[ Fri, Nov 16, 2012 at 02:54:50PM +0100, Panicz Maciej Godek ]---- > And now I have a problem: the modules that I wrote make use > of the symbols defined by my application (using scm_c_define...), > but they are unavailable outside my application, i.e. for external > modules. > > The result is that the modules don't work, because certain symbols > are undefined that are needed to build the necessary definitions. I have run into a similar problem recently: I'm defining from C the module 'runtime' where I store all my scm_d_defined symbols and when compiling a guile module (using "guile-tool compile") the compiler looks for a file named runtime.scm and of course fails to find one and stops. To solve this I had to create a void runtime.scm file defining this dummy module so that other modules can be compiled. You can see the result here: http://github.com/securactive/junkie/blob/master/guile/junkie/runtime.scm There might be better solutions to this problem but this one is particularly easy to implement.