Re: [Plplot-devel] Java compile problems
Alan W. Irwin wrote: Both plplotjavacJNI.java and PLGraphicsIN.java are files that are generated by swig. I just checked, and plplotjavacJNI.java generated on my Ubuntu Dapper system with swig-1.3.27 has no type PLGraphicsIn for any of the arguments. For example, in replacement for the above line it uses the following: public final static native void PLGraphicsIn_type_set(long jarg1, int jarg2); so there is no generated circular dependency with the Ubuntu Dapper version of swig. So my guess is you have run into a problem with the version of swig that Fedora has adopted. Just in case Fedora have made some bad patches to the latest swig (1.3.31) or are using a bad earlier version, could you try to replicate the problem with vanilla swig downloaded directly from the swig site? If you get the same error with latest vanilla swig, let me know, and I will try and reproduce it here, see if we have to change our swig configuration for that version, etc. (IIRC, once or possibly twice before, the swig 1.3.x series introduced an incompatible change that required changing our swig configuration, but this hasn't happened for a long time.) If you cannot reproduce the issue with the latest vanilla swig, then agitate with fedora to use that version rather than the one they have adopted. Well, the version of swig in Fedora development is pretty much vanilla 1.3.31. There are a couple patches but the only seem to touch python importing and __x86_64__/__i386__ defines. -- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA/CoRA DivisionFAX: 303-415-9702 3380 Mitchell Lane [EMAIL PROTECTED] Boulder, CO 80301 http://www.cora.nwra.com - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel
Re: [Plplot-devel] Java compile problems
Alan W. Irwin wrote: So my guess is you have run into a problem with the version of swig that Fedora has adopted. Just in case Fedora have made some bad patches to the latest swig (1.3.31) or are using a bad earlier version, could you try to replicate the problem with vanilla swig downloaded directly from the swig site? Looks like swig 1.3.29 works and 1.3.30 does not. I'm not sure I'm the best person to follow up on this as I've never used swig before. It does start to make these changes: - public final static native void PLGraphicsIn_type_set(long jarg1, int jarg2); + public final static native void PLGraphicsIn_type_set(long jarg1, PLGraphicsIn jarg1_, int jarg2); It seems to be covered in the swig manual in: 20.4.3.4 The premature garbage collection prevention parameter for proxy class marshalling Manual/Java.html#java_pgcpp Can be suppressed with -nopgcpp, which I may try to use for the time being. Suggestions for how to pass this argument? -- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA/CoRA DivisionFAX: 303-415-9702 3380 Mitchell Lane [EMAIL PROTECTED] Boulder, CO 80301 http://www.cora.nwra.com - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel
Re: [Plplot-devel] Java compile problems
Orion Poplawski wrote: Can be suppressed with -nopgcpp, which I may try to use for the time being. Suggestions for how to pass this argument? I ended up with: --- plplot-5.7.2/bindings/java/CMakeLists.txt.nopgcpp 2007-01-21 17:46:00.0 -0700 +++ plplot-5.7.2/bindings/java/CMakeLists.txt 2007-01-23 11:21:34.0 -0700 @@ -82,7 +82,7 @@ # Can't use source file properties as we have to quote the flags in that # case and it breaks swig. Doh! I would call this a cmake bug. -set(CMAKE_SWIG_FLAGS -DPL_DOUBLE -DSWIG_JAVA -package plplot.core) +set(CMAKE_SWIG_FLAGS -nopgcpp -DPL_DOUBLE -DSWIG_JAVA -package plplot.core) set( CMAKE_SWIG_OUTDIR ${CMAKE_CURRENT_BINARY_DIR} ) -- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA/CoRA DivisionFAX: 303-415-9702 3380 Mitchell Lane [EMAIL PROTECTED] Boulder, CO 80301 http://www.cora.nwra.com - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel
Re: [Plplot-devel] Java compile problems
I have tried vanilla swig 1.3.31, and I confirm the problem. Orion, I had a look at the swig documentation you recommended, and I must say I don't understand enough Java to be able to follow your conclusion that the -nopgcpp command-line option might help us out. However, I do know how to try such command-line options (you later found this for yourself), and the result was with -nopgcpp, java built and ctested fine with vanilla swig 1.3.31. However, this option does cause trouble for my system version of swig (1.3.27). Therefore, I have committed some substantial changes to do some swig version checking. In particular, I have temporarily (until CMake adopts it) added an experimental FindCMake.cmake module to PLplot which is just more reliable than the current CMake version of this module, and which also provides increased functionality such as returning SWIG_VERSION. (A side effect of this new module is the vanilla version of swig-1.3.31 can easily be tried out. All you have to do is put the new version on your PATH.) The result of the changes is swig versions older than 1.3.22 are not accepted (set(SWIG_FOUND OFF)), and the -nopgcpp command-line option is only used for swig versions = 1.3.30 (I chose this limit according to one of the tests that you did). Could you please try the CVS version of PLplot now? Andrew (Ross), could you please review my solution (in particular, can you explain the necessity of -nopgcpp for newer versions of swig?) Thanks, Orion, for all your investigations of this issue. Alan __ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __ Linux-powered Science __ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel
Re: [Plplot-devel] Java compile problems
Orion Poplawski wrote: Looks like a circular dependency - plplotjavacJNI depends on PLGraphicsIN and vice versa. I'm no java person but it looks like you need an include file or forward class declaration in the source files. Is anyone able to compile this with gcj? This is a deal breaker for me. -- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA/CoRA DivisionFAX: 303-415-9702 3380 Mitchell Lane [EMAIL PROTECTED] Boulder, CO 80301 http://www.cora.nwra.com - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel
Re: [Plplot-devel] Java compile problems
On 2007-01-17 11:51-0700 Orion Poplawski wrote: Orion Poplawski wrote: I'm getting the following trying to compile on Fedora Core 6 with the GNU java compiler: [ 15%] Generating plplot/core/plplotjavacJNI.class cd /builddir/build/BUILD/plplot-5.7.1/fedora/bindings/java /usr/bin/javac -classpath /builddir/build/BUILD/plplot-5.7.1/fedora/bindings/java /builddir/build/BUILD/plplot-5.7.1/fedora/bindings/java/plplotjavacJNI.java -d /builddir/build/BUILD/plplot-5.7.1/fedora/bindings/java -- 1. ERROR in /builddir/build/BUILD/plplot-5.7.1/fedora/bindings/java/plplotjavacJNI.java (at line 78) public final static native void PLGraphicsIn_type_set(long jarg1, PLGraphicsIn jarg1_, int jarg2); PLGraphicsIn cannot be resolved to a type [... lots more snipped ...] Any ideas? Maybe PLGraphicsIn.java needed to be compiled first? Looks like a circular dependency - plplotjavacJNI depends on PLGraphicsIN and vice versa. I'm no java person but it looks like you need an include file or forward class declaration in the source files. Hi Orion: I saw your recent post, but I am answering your earlier message since that includes the error message you got with Fedora Core 6. My apologies for taking so long to respond. Both plplotjavacJNI.java and PLGraphicsIN.java are files that are generated by swig. I just checked, and plplotjavacJNI.java generated on my Ubuntu Dapper system with swig-1.3.27 has no type PLGraphicsIn for any of the arguments. For example, in replacement for the above line it uses the following: public final static native void PLGraphicsIn_type_set(long jarg1, int jarg2); so there is no generated circular dependency with the Ubuntu Dapper version of swig. So my guess is you have run into a problem with the version of swig that Fedora has adopted. Just in case Fedora have made some bad patches to the latest swig (1.3.31) or are using a bad earlier version, could you try to replicate the problem with vanilla swig downloaded directly from the swig site? If you get the same error with latest vanilla swig, let me know, and I will try and reproduce it here, see if we have to change our swig configuration for that version, etc. (IIRC, once or possibly twice before, the swig 1.3.x series introduced an incompatible change that required changing our swig configuration, but this hasn't happened for a long time.) If you cannot reproduce the issue with the latest vanilla swig, then agitate with fedora to use that version rather than the one they have adopted. Alan __ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __ Linux-powered Science __ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel
Re: [Plplot-devel] Java compile problems
Orion Poplawski wrote: I'm getting the following trying to compile on Fedora Core 6 with the GNU java compiler: [ 15%] Generating plplot/core/plplotjavacJNI.class cd /builddir/build/BUILD/plplot-5.7.1/fedora/bindings/java /usr/bin/javac -classpath /builddir/build/BUILD/plplot-5.7.1/fedora/bindings/java /builddir/build/BUILD/plplot-5.7.1/fedora/bindings/java/plplotjavacJNI.java -d /builddir/build/BUILD/plplot-5.7.1/fedora/bindings/java -- 1. ERROR in /builddir/build/BUILD/plplot-5.7.1/fedora/bindings/java/plplotjavacJNI.java (at line 78) public final static native void PLGraphicsIn_type_set(long jarg1, PLGraphicsIn jarg1_, int jarg2); PLGraphicsIn cannot be resolved to a type [... lots more snipped ...] Any ideas? Maybe PLGraphicsIn.java needed to be compiled first? Looks like a circular dependency - plplotjavacJNI depends on PLGraphicsIN and vice versa. I'm no java person but it looks like you need an include file or forward class declaration in the source files. -- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA/CoRA DivisionFAX: 303-415-9702 3380 Mitchell Lane [EMAIL PROTECTED] Boulder, CO 80301 http://www.cora.nwra.com - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel
[Plplot-devel] Java compile problems
I'm getting the following trying to compile on Fedora Core 6 with the GNU java compiler: [ 15%] Generating plplot/core/plplotjavacJNI.class cd /builddir/build/BUILD/plplot-5.7.1/fedora/bindings/java /usr/bin/javac -classpath /builddir/build/BUILD/plplot-5.7.1/fedora/bindings/java /builddir/build/BUILD/plplot-5.7.1/fedora/bindings/java/plplotjavacJNI.java -d /builddir/build/BUILD/plplot-5.7.1/fedora/bindings/java -- 1. ERROR in /builddir/build/BUILD/plplot-5.7.1/fedora/bindings/java/plplotjavacJNI.java (at line 78) public final static native void PLGraphicsIn_type_set(long jarg1, PLGraphicsIn jarg1_, int jarg2); PLGraphicsIn cannot be resolved to a type [... lots more snipped ...] Any ideas? Maybe PLGraphicsIn.java needed to be compiled first? -- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA/CoRA DivisionFAX: 303-415-9702 3380 Mitchell Lane [EMAIL PROTECTED] Boulder, CO 80301 http://www.cora.nwra.com - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel