From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: anonymous Newsgroups: gmane.lisp.guile.bugs Subject: [bug #28442] Compiler not seeing module define in load-extension Date: Wed, 30 Dec 2009 15:21:48 +0000 Message-ID: <20091230-152147.sv0.17819@savannah.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=UTF-8 X-Trace: ger.gmane.org 1262186527 23793 80.91.229.12 (30 Dec 2009 15:22:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Dec 2009 15:22:07 +0000 (UTC) To: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Dec 30 16:21:59 2009 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NQ0N4-00022d-ND for guile-bugs@m.gmane.org; Wed, 30 Dec 2009 16:21:59 +0100 Original-Received: from localhost ([127.0.0.1]:49392 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQ0N5-0006fv-1h for guile-bugs@m.gmane.org; Wed, 30 Dec 2009 10:21:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NQ0N0-0006ds-F1 for bug-guile@gnu.org; Wed, 30 Dec 2009 10:21:54 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NQ0Mv-0006aq-Qm for bug-guile@gnu.org; Wed, 30 Dec 2009 10:21:53 -0500 Original-Received: from [199.232.76.173] (port=45063 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQ0Mv-0006an-Lc for bug-guile@gnu.org; Wed, 30 Dec 2009 10:21:49 -0500 Original-Received: from savannah.gnu.org ([199.232.41.3]:45621 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NQ0Mv-0001iG-DY for bug-guile@gnu.org; Wed, 30 Dec 2009 10:21:49 -0500 Original-Received: from [10.1.0.103] (helo=savannah.gnu.org) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NQ0Mu-0005mk-RJ for bug-guile@gnu.org; Wed, 30 Dec 2009 15:21:49 +0000 Original-Received: from www-data by savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1NQ0Mu-0005ma-Ip for bug-guile@gnu.org; Wed, 30 Dec 2009 15:21:48 +0000 X-Savane-Server: savannah.gnu.org:80 [10.1.0.103] X-Savane-Project: guile X-Savane-Tracker: bugs X-Savane-Item-ID: 28442 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.33 Safari/532.0 X-Apparently-From: 195.10.16.7 Original-References: In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:4417 Archived-At: URL: Summary: Compiler not seeing module define in load-extension Project: Guile Submitted by: None Submitted on: Wed 30 Dec 2009 03:21:47 PM UTC Category: None Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: Attached is a module fashioned after those currently generated by swig. It uses a scheme wrapper that uses a module import with a rename to import a module via an extension. All code still works but the compiler compains that that module provided by the load-extension does not exist untar the attached archive and run make. The output I get from git master is... gcc -fpic -L/usr/local/include -c test-module.c gcc -shared test-module.o -o test-module.so LD_LIBRARY_PATH=. guile -L . test-script.scm ;;; note: autocompilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-autocompile argument to disable. ;;; compiling ./dir/mymodule.scm ;;; WARNING: compilation of ./dir/mymodule.scm failed: ;;; key misc-error, throw args (#f "~A ~S" ("no code for module" (dir mymodule-prim)) #f) see, it does still work: 32 The code has run and worked, the symbols are all there, but the compiler still warns of "no code for module" _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Wed 30 Dec 2009 03:21:47 PM UTC Name: modexample.tgz Size: 787B By: None sample module code _______________________________________________________ Reply to this item at: _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/