From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.user Subject: Re: ossaulib dbus error Date: Wed, 23 Jul 2014 09:59:43 +0100 Message-ID: References: <53CE8AAD.1050902@campus.tu-berlin.de> <5258c9e150cf04263eea8f5572803729@ossau.homelinux.net> <53CE93BD.1020701@campus.tu-berlin.de> <4cd940294720ded98ba917df5c914a87@ossau.homelinux.net> <53CEB16B.3070302@campus.tu-berlin.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1406106026 24157 80.91.229.3 (23 Jul 2014 09:00:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Jul 2014 09:00:26 +0000 (UTC) Cc: guile-user@gnu.org To: Max Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Jul 23 11:00:18 2014 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 1X9sPH-0004VE-K0 for guile-user@m.gmane.org; Wed, 23 Jul 2014 11:00:15 +0200 Original-Received: from localhost ([::1]:43544 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9sPF-0005mV-6F for guile-user@m.gmane.org; Wed, 23 Jul 2014 05:00:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57308) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9sOz-0005k6-1a for guile-user@gnu.org; Wed, 23 Jul 2014 05:00:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9sOq-0001Wa-Gv for guile-user@gnu.org; Wed, 23 Jul 2014 04:59:57 -0400 Original-Received: from out1.ip04ir2.opaltelecom.net ([62.24.128.240]:12885) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9sOq-0001WR-B1 for guile-user@gnu.org; Wed, 23 Jul 2014 04:59:48 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsAJAOh4z1NOkRDrPGdsb2JhbABZgw6EIYQ3xFiDFwGBCxcEAQEBATg2hAQBBSMPAQUeIxAEBAECGAICJgICLA0KFAYbE4griyicKZcvFxiBFIg0hWsHgniBTgEEmyaXezw X-IPAS-Result: AsAJAOh4z1NOkRDrPGdsb2JhbABZgw6EIYQ3xFiDFwGBCxcEAQEBATg2hAQBBSMPAQUeIxAEBAECGAICJgICLA0KFAYbE4griyicKZcvFxiBFIg0hWsHgniBTgEEmyaXezw X-IronPort-AV: E=Sophos;i="5.01,716,1400022000"; d="scan'208";a="465386890" Original-Received: from host-78-145-16-235.as13285.net (HELO arudy) ([78.145.16.235]) by out1.ip04ir2.opaltelecom.net with ESMTP; 23 Jul 2014 09:59:46 +0100 Original-Received: by arudy (Postfix, from userid 33) id B71973808F; Wed, 23 Jul 2014 09:59:44 +0100 (BST) X-PHP-Originating-Script: 0:rcmail.php In-Reply-To: <53CEB16B.3070302@campus.tu-berlin.de> X-Sender: neil@ossau.homelinux.net User-Agent: Roundcube Webmail/0.9.5 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 62.24.128.240 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:11354 Archived-At: On 2014-07-22 19:46, Max wrote: > 22.07.2014 19:05, Neil Jerram пишет: >> On 2014-07-22 17:39, Max wrote: >>> >> >> OK, sorry to take your time on that attempt. >> >> What if you do "guile --debug test.scm" where test.scm has just the >> load-path >> appending and (use-modules (glib dbus)) ? If that still doesn't work, >> then clearly >> this is nothing to do with guile-gnome. > > Sure thing - this is my test file: > > (set! %load-path (append %load-path > '("/home/lol/source/lisp/ossaulib/"))) > (use-modules (neil dbus)) > > Here is the compilation results: > > guile-gnome-2 --debug > dbus-test.scm > > ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0 > ;;; or pass the --no-auto-compile argument to disable. > ;;; compiling /home/lol/source/lisp/dbus-test.scm > ;;; WARNING: compilation of /home/lol/source/lisp/dbus-test.scm failed: > ;;; ERROR: no code for module (neil dbus) > > Changing "neil" to "glib" only changes the name in the error message > above. I'd > appreciate any hints with debugging. Do you have some small test > application I can use? Just remembered / worked this out. The problem is that %load-path isn't extended when dbus-test.scm is being compiled, and the solution for that is to use 'eval-when'. Here's my test script, showing the use of eval-when: (eval-when (expand load eval) (set! %load-path (append %load-path '("/home/neil/ossaulib")))) (use-modules (glib dbus)) Regards, Neil