Re: Compilation and load-extension

2010-01-03 Thread Tristan Colgate
2010/1/3 Andy Wingo : > Hi Tristan, ... >    (eval-when (eval load compile) >      (load-extension "test-module.so" "scm_init_my_module")) > Thanks for the explanation and the fix, it works nicely and I now have previous code running cleanly, a guile-lib based unit test framework on its way. > I

Re: Compilation and load-extension

2010-01-03 Thread Andy Wingo
Hi Tristan, On Wed 30 Dec 2009 16:27, Tristan Colgate writes: > 2009/12/28 Andy Wingo : >> I can't see how this is happening, though I am sure it is indeed >> happening for you :) Can you put a tarball up somewhere so that we can >> have a look at it? > > I've created a stripped down module that

Re: Compilation and load-extension

2009-12-30 Thread Tristan Colgate
2009/12/28 Andy Wingo : > I can't see how this is happening, though I am sure it is indeed > happening for you :) Can you put a tarball up somewhere so that we can > have a look at it? I've created a stripped down module that uses that same style as the swig ones and attached it to the following b

Re: Compilation and load-extension

2009-12-28 Thread Andy Wingo
Hi Tristan, >> Tristan Colgate writes: >> >>> Ah, sorry >>> >>> ;;; note: autocompilation is enabled, set GUILE_AUTO_COMPILE=0 >>> ;;;       or pass the --no-autocompile argument to disable. >>> ;;; compiling /usr/local/share/guile/site/snmp/net-snmp.scm >>> ;;; WARNING: compilation of >>> /u

Re: Compilation and load-extension

2009-12-18 Thread Tristan Colgate
yes, swig generates snmp/net-snmp.scm with the following header... (define-module (snmp net-snmp)) (load-extension "libguile_snmp_net-snmp.so" "scm_init_snmp_net_snmp_module") (use-modules (oop goops) (Swig common)) (use-modules ((snmp net-snmp-primitive) :renamer (symbol-prefix-proc 'primitive:

Re: Compilation and load-extension

2009-12-18 Thread Ludovic Courtès
Hi, Tristan Colgate writes: > Ah, sorry > > ;;; note: autocompilation is enabled, set GUILE_AUTO_COMPILE=0 > ;;; or pass the --no-autocompile argument to disable. > ;;; compiling /usr/local/share/guile/site/snmp/net-snmp.scm > ;;; WARNING: compilation of > /usr/local/share/guile/site/s

Re: Compilation and load-extension

2009-12-18 Thread Tristan Colgate
Ah, sorry ;;; note: autocompilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-autocompile argument to disable. ;;; compiling /usr/local/share/guile/site/snmp/net-snmp.scm ;;; WARNING: compilation of /usr/local/share/guile/site/snmp/net-snmp.scm failed: ;;; key misc-error,

Re: Compilation and load-extension

2009-12-18 Thread Ludovic Courtès
Hi, Tristan Colgate writes: > I'm using guile and swig for some library binding and get > compilation errors/warning > that seem to be due to the compiler not knowing that a load-extension > has supplied > a module (this is with library bindings generated by swig). Can you copy/paste the erro

Compilation and load-extension

2009-12-18 Thread Tristan Colgate
Hi All, I'm using guile and swig for some library binding and get compilation errors/warning that seem to be due to the compiler not knowing that a load-extension has supplied a module (this is with library bindings generated by swig). Is there a way to get rid of the warnings (other then tur