[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #28442] Compiler not seeing module define in load-extension
From: |
anonymous |
Subject: |
[bug #28442] Compiler not seeing module define in load-extension |
Date: |
Wed, 30 Dec 2009 15:21:48 +0000 |
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 |
URL:
<http://savannah.gnu.org/bugs/?28442>
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
<http://savannah.gnu.org/bugs/download.php?file_id=19395>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?28442>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #28442] Compiler not seeing module define in load-extension,
anonymous <=