[Swig-user] is tcl -> Java still supported?

8 views
Skip to first unread message

adrian....@bt.com

unread,
Mar 8, 2012, 6:44:49 AM3/8/12
to swig...@lists.sourceforge.net

Trying the example for calling Java from TCL and getting this:

 

 

 

adrian@adrian-small-laptop:~/work/tcl/swig-2.0.4/Examples/tcl/java$ make

gcj -fPIC -C -c -g Example.java

gcjh -classpath . Example

make -f ../../Makefile CXXSRCS='' SWIG='../../../preinst-swig' \

                TARGET='example' INTERFACE='example.i' CXX="gcj"  \

                TCL_CXXSHARED="gcj -fpic -shared Example.class " LIBS="-lstdc++" DEFS='' tcl_cpp

make[1]: Entering directory `/home/adrian/work/tcl/swig-2.0.4/Examples/tcl/java'

../../../preinst-swig -tcl8 -c++   example.i

gcj -c -fpic    example_wrap.cxx  -isystem /usr/include/tcl8.5

cc1plus: warning: command line option ‘-fbootclasspath=./:/usr/share/java/libgcj-4.6.jar’ is valid for Java but not for C++ [enabled by default]

example_wrap.cxx: In function ‘int _wrap_JvAllocObject__SWIG_0(ClientData, Tcl_Interp*, int, Tcl_Obj* const*)’:

example_wrap.cxx:1870:39: error: ‘JvAllocObject’ was not declared in this scope

example_wrap.cxx: In function ‘int _wrap_JvAllocObject__SWIG_1(ClientData, Tcl_Interp*, int, Tcl_Obj* const*)’:

example_wrap.cxx:1899:44: error: ‘JvAllocObject’ was not declared in this scope

example_wrap.cxx: In function ‘int _wrap_JvCreateJavaVM(ClientData, Tcl_Interp*, int, Tcl_Obj* const*)’:

example_wrap.cxx:2269:37: error: invalid conversion from ‘void*’ to ‘JvVMInitArgs* {aka _Jv_VMInitArgs*}’ [-fpermissive]

/usr/include/c++/4.6/gcj/cni.h:127:1: error:   initializing argument 1 of ‘jint JvCreateJavaVM(JvVMInitArgs*)’ [-fpermissive]

make[1]: *** [tcl_cpp] Error 1

make[1]: Leaving directory `/home/adrian/work/tcl/swig-2.0.4/Examples/tcl/java'

make: *** [all] Error 2

 

Is this a known issue, or is it not really supported?

 

TIA

William S Fulton

unread,
Mar 15, 2012, 4:49:39 PM3/15/12
to adrian....@bt.com, swig...@lists.sourceforge.net
We don't test this when releasing. It would be nice to get this working
again as it used to work at some point. If you have any patches, please
send them in.

William

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Swig-user mailing list
Swig...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-user

Reply all
Reply to author
Forward
0 new messages