Re: [Hamlib-developer] quick swig report
Library to control radio transceivers and receivers
Brought to you by:
n0nb
|
From: Joop S. <pa...@de...> - 2002-09-17 20:04:28
|
On Sun, 15 Sep 2002 20:27:57 +0200 Stephane Fillod <f8...@fr...> wrote: > > Hi Joop, > > > nope. I forgot to tell you. You need at least swig 1.3, Aha! Err.. with swig 1.3 I get: swig -perl5 -shadow -I../include -I../src -I../lib -o hamlibperl_wrap.c hamlib.swg ../include/hamlib/rig.h:382: Warning(451): Setting const char * member may leak memory. ../include/hamlib/rig.h:383: Warning(451): Setting const char * member may leak memory. ../include/hamlib/rig.h:384: Warning(451): Setting const char * member may leak memory. ../include/hamlib/rig.h:385: Warning(451): Setting const char * member may leak memory. ../include/hamlib/rig.h:734: Warning(451): Setting const char * member may leak memory. ../include/hamlib/rig.h:735: Warning(451): Setting const char * member may leak memory. ../include/hamlib/rig.h:736: Warning(451): Setting const char * member may leak memory. ../include/hamlib/rig.h:737: Warning(451): Setting const char * member may leak memory. ../include/hamlib/rotator.h:79: Warning(451): Setting const char * member may leak memory. ../include/hamlib/rotator.h:80: Warning(451): Setting const char * member may leak memory. ../include/hamlib/rotator.h:81: Warning(451): Setting const char * member may leak memory. ../include/hamlib/rotator.h:82: Warning(451): Setting const char * member may leak memory. and a bit further down: hamlibperl_wrap.c:227: EXTERN.h: No such file or directory hamlibperl_wrap.c:228: perl.h: No such file or directory hamlibperl_wrap.c:229: XSUB.h: No such file or directory make[1]: *** [hamlibperl_wrap.lo] Error 1 make[1]: Leaving directory `/home/aba/Projects/hamlib/hamlib.pa4tu/bindings' make: *** [all-recursive] Error 1 These files are in /usr/lib/perl/5.8.0/CORE, the gcc line is gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../src -I../lib -Dbool=char -I/usr/lib/perl/5.6.1/CORE -I/generic -D_GNU_SOURCE -g -O2 -Wall -c hamlibperl_wrap.c -Wp,-MD,.deps/hamlibperl_wrap.TPlo -fPIC -DPIC -o .libs/hamlibperl_wrap.lo I saw you have hardcoded the perl path in bindings/Makefile.am, should we check the path in configure.ac? > and the latest one gives better result. I work with 1.3.14 in Debian unstable. > > I have a little problem, with automake though. The following Makefile.am does > compile only static version (BINDING_LA = hamlibperl.la hamlibtcl.la): > > lib_LTLIBRARIES = @BINDING_LA@ > EXTRA_LTLIBRARIES = hamlibperl.la hamlibtcl.la > > So I cannot use @BINDING_LA@, and have to hardcode the list for now. Any idea? > > lib_LTLIBRARIES = hamlibperl.la hamlibtcl.la > > I am using autoconf 2.53-5, automake 1.6.3-2, and libtool 1.4.2-7 > > > The get methods are almost done. I try to achieve dynamic type casting > for get_level/get_param, but documentation is sparse on this (advanced) subject. Sorry Stephane, I am not a libtool guru (yet), but I think the debian-user or debian-devel mailing lists would be a good place to ask. Did you look at /usr/share/doc/swig1.3-examples/test-suite/dynamic_cast.i (just a thought)?? > Error codes will be handled seamlessly with exceptions (even in Perl). > Once this will be done, we'll be able to get rid of rigmatrix (rewritten > in perl), and write easily a memory editor/dumper in perl/tk/.. > > Let me know how it works for you. > > > Stephane > Cheerio, Joop |