Hi Andrew, doesn't compile any more:
[ 12%] Built target plplot_widgetmodule make -f bindings/java/CMakeFiles/plplotjavac_wrap.dir/build.make bindings/java/CMakeFiles/plplotjavac_wrap.dir/depend cd /Users/smekal/Development/plbuild && "/Users/smekal/Applications/ CMake 2.6-3.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" / Users/smekal/Development/plplot /Users/smekal/Development/plplot/ bindings/java /Users/smekal/Development/plbuild /Users/smekal/ Development/plbuild/bindings/java /Users/smekal/Development/plbuild/ bindings/java/CMakeFiles/plplotjavac_wrap.dir/DependInfo.cmake --color= make -f bindings/java/CMakeFiles/plplotjavac_wrap.dir/build.make bindings/java/CMakeFiles/plplotjavac_wrap.dir/build Linking C shared module plplotjavac_wrap.dylib cd /Users/smekal/Development/plbuild/bindings/java && "/Users/smekal/ Applications/CMake 2.6-3.app/Contents/bin/cmake" -E cmake_link_script CMakeFiles/plplotjavac_wrap.dir/link.txt --verbose=1 /usr/bin/gcc -O3 -DNDEBUG -bundle -headerpad_max_install_names -o plplotjavac_wrap.dylib CMakeFiles/plplotjavac_wrap.dir/ plplotjavacJAVA_wrap.c.o ../../src/libplplotd.9.6.2.dylib /usr/lib/ libltdl.dylib /usr/lib/libdl.dylib ../../lib/csa/libcsirocsa. 0.0.1.dylib ../../lib/nn/libcsironn.0.0.1.dylib /Users/smekal/ Development/local/qhull-2003.1/lib/libqhull.a ../../lib/qsastime/ libqsastime.0.0.1.dylib /usr/lib/libm.dylib Undefined symbols: "_AttachCurrentThread", referenced from: _label_java in plplotjavacJAVA_wrap.c.o ld: symbol(s) not found collect2: ld returned 1 exit status make[2]: *** [bindings/java/plplotjavac_wrap.dylib] Error 1 make[1]: *** [bindings/java/CMakeFiles/plplotjavac_wrap.dir/all] Error 2 make: *** [all] Error 2 Any ideas? Werner On 20.08.2009, at 14:05, Andrew Ross wrote: > On Tue, Aug 18, 2009 at 03:57:35PM +0200, Werner Smekal wrote: >> Hi Andrew, >> >>> >>> I encountered a possible bug with the openjdk java compilers. Which >>> version >>> of java are you using? Everything worked for me with gcj. >> >> The standard java vm provided by Apple for Mac OS X 10.5. I have no >> idea to find out which version exactly. According to >> >> http://developer.apple.com/technotes/tn2002/tn2110.html >> >> it's >> >> 10.5 Java for Mac OS X 10.5, Update 1 1.6.0_05 1.6.0_05-b13-120 >> >>> >>> I must admit I am no expert at all on the java JNI stuff and I am >>> somewhat >>> at a loss at to why this does not work on some compilers. >>> >>> If I can't fix it then we may need to disable the plslabelfunc call >>> for java >>> which would be irritating. A very similar thing works fine with the >>> mapform >>> callbacks. >> >> I'm of no help (other then testing), since I don't know Java at all. > > I think I've now fixed it. This was an issue with objects no longer > being > valid between the time plslabelfunc was called and the time the > callback > function was actually used (when plenv is called). I think I have now > done this properly by not caching things which may not be valid and > by getting a global reference to the class object containing the > callback. > This now works for me on sun / openjdk implementations as well as gcj. > > Werner, can you check on Mac OS X as well? > > Thanks > > Andrew > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Plplot-devel mailing list > Plplot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/plplot-devel -- Dr. Werner Smekal Institut fuer Allgemeine Physik Technische Universitaet Wien Wiedner Hauptstr 8-10 A-1040 Wien Austria email: sme...@iap.tuwien.ac.at web: http://www.iap.tuwien.ac.at/~smekal phone: +43-(0)1-58801-13463 (office), +43-(0)1-58801-13469 (laboratory) fax: +43-(0)1-58801-13499 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel