From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.user Subject: Re: Help needed on strange random error (Guile 2.0.9) Date: Tue, 10 Dec 2013 09:46:26 +0100 Message-ID: <87lhztw0t9.fsf@gnu.org> References: <8761r17hhb.fsf@gnu.org> <87iov0538p.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1386665205 7265 80.91.229.3 (10 Dec 2013 08:46:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Dec 2013 08:46:45 +0000 (UTC) Cc: "guile-user@gnu.org" To: Sun Yijiang Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Dec 10 09:46:50 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 1VqIxu-0004Ru-Ev for guile-user@m.gmane.org; Tue, 10 Dec 2013 09:46:50 +0100 Original-Received: from localhost ([::1]:47910 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqIxu-0003LQ-2T for guile-user@m.gmane.org; Tue, 10 Dec 2013 03:46:50 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57444) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqIxf-0003LL-FZ for guile-user@gnu.org; Tue, 10 Dec 2013 03:46:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VqIxY-0004kn-2o for guile-user@gnu.org; Tue, 10 Dec 2013 03:46:35 -0500 Original-Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:2405) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqIxX-0004kj-SB for guile-user@gnu.org; Tue, 10 Dec 2013 03:46:27 -0500 X-IronPort-AV: E=Sophos;i="4.93,864,1378850400"; d="scan'208";a="47981318" Original-Received: from unknown (HELO pluto) ([193.50.110.94]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES128-SHA; 10 Dec 2013 09:46:26 +0100 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 20 Frimaire an 222 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu In-Reply-To: (Sun Yijiang's message of "Tue, 10 Dec 2013 15:04:44 +0800") User-Agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 192.134.164.83 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:10933 Archived-At: Sun Yijiang skribis: > static void _main(void *data, int argc, char* argv[]) { > // smob definitions > DEFINE_SMOB(....) > ... > > scm_c_define_module("builtin", init_builtins, NULL); > scm_c_eval_string( > "(current-warning-port (%make-void-port \"w\"))" > "(read-set! keywords 'prefix)" > "(add-to-load-path \"/my/scm/path\")" > "(use-modules (builtin) (ice-9 readline)) (activate-readline)" > ); > scm_shell(argc, argv); > } Could you add this line right after the =E2=80=98scm_c_define_module=E2=80= =99 line: scm_write (scm_current_module (), scm_current_error_port ()); What does it print? Ludo=E2=80=99.