From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Panicz Maciej Godek Newsgroups: gmane.lisp.guile.user Subject: A [serious] problem with module integration Date: Fri, 16 Nov 2012 14:54:50 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1353074106 24145 80.91.229.3 (16 Nov 2012 13:55:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Nov 2012 13:55:06 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Nov 16 14:55:17 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 1TZMO2-0004Cy-VQ for guile-user@m.gmane.org; Fri, 16 Nov 2012 14:55:15 +0100 Original-Received: from localhost ([::1]:52467 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZMNt-0003eZ-2v for guile-user@m.gmane.org; Fri, 16 Nov 2012 08:55:05 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33544) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZMNk-0003Py-2B for guile-user@gnu.org; Fri, 16 Nov 2012 08:54:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TZMNg-00047D-W5 for guile-user@gnu.org; Fri, 16 Nov 2012 08:54:55 -0500 Original-Received: from mail-lb0-f169.google.com ([209.85.217.169]:48042) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZMNg-000478-OY for guile-user@gnu.org; Fri, 16 Nov 2012 08:54:52 -0500 Original-Received: by mail-lb0-f169.google.com with SMTP id gk1so2423738lbb.0 for ; Fri, 16 Nov 2012 05:54:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=KuVRJyQSjV0RwoYmX2Qj0GXIAKYSDn4IlHd97YYB0Yo=; b=RV2q1Wt9vSc6DXdc2Z0tmloa5CDKtauP261fJLskZnlAfK+DkznvYCN/laHcGAYZYU 2A5XC1uJfyrwFjDxl2CoGAaBptPYFVA2L3SvktvLZcl/MLdtUTPE/KwSt5V55/xJ+gV/ mBltfs1g1qjDK94iy1GDItN1EiGkR59gvWQdfo0baOb+lPhhqtLdZUCBGVBNxNIoO75s JqRWpd78u9jVzjfwRh1WURMRcGwBlFdcR2yQ4PYA3KiVCxNAPJtWpPAM8/00hIE3buHm jTlLfbBp4sKU/IMb3bPsGK+n/pO0eRb/tQPjH8t1FY4i58GXtRr/wa8GUn+OauX/8D1i phWQ== Original-Received: by 10.152.47.79 with SMTP id b15mr4265441lan.57.1353074091087; Fri, 16 Nov 2012 05:54:51 -0800 (PST) Original-Received: by 10.112.38.38 with HTTP; Fri, 16 Nov 2012 05:54:50 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.217.169 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:9685 Archived-At: Hi, I've been making some tiny changes in the way my application uses modules. Previously I was including the scheme code right into the C binary. This wasn't particularly elegant sollution, as it didn't allow the code to be compiled, so I decided that I use guile modules wherever I can. 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. If I'd taken a different approach, e.g. if I'd decided to use shared libraries instead of having the main application call scm_with_guile, the solution would be easy -- I could just define the wrappers around the procedures exported by the library. But now I'm in the big trouble. Is there any way for the symbols introduced using scm_c_define... to become available for external modules (that are meant to be used within the application that I create)? I've tried creating an empty module that includes the symbols exported by my app, and nothing else, but it doesn't seem to help. Perhaps there's some other idea that you could suggest?