On 2006-11-08 00:13-0500 [EMAIL PROTECTED] wrote: > Alan wrote: >> Have a look at include/plplot.h. It has a whole series of defined's that >> it checks. If any of those are true it #define's __unix. I suspect you >> just >> have to add the appropriate check for Mac OS X to that list. > > I added the check, so I think that we are now okay here. > >> Also, if you have any additional trouble after that, please post the >> results >> of the -debug option. Here are my results: >> >> [EMAIL PROTECTED]> cd /tmp/examples/c >> [EMAIL PROTECTED]> ./x01c -dev tk -debug >> [EMAIL PROTECTED]> ./x01c -dev tk -debug >> PLplot library version: 5.6.1 >> plLoadDriver: Device not loaded! >> plLoadDriver: tag=tk, drvidx=9 >> plGetDrvDir: Trying to read env var PLPLOT_DRV_DIR >> plGetDrvDir: Will use drivers dir: /home/software/plplot_cvs/ >> installcmake/lib/plplot5.6.1/driversd >> plLoadDriver: Trying to load tk on /home/software/plplot_cvs/ >> installcmake/lib/plplot5.6.1/driversd/tk > > iMac /usr/local/share/plplot5.6.1/examples/c : ./x01c -dev tk -debug > PLplot library version: 5.6.1 > plLoadDriver: Device not loaded! > plLoadDriver: tag=tk, drvidx=8 > plGetDrvDir: Trying to read env var PLPLOT_DRV_DIR > plGetDrvDir: Will use drivers dir: /usr/local/lib/plplot5.6.1/driversd > plLoadDriver: Trying to load tk on /usr/local/lib/plplot5.6.1/driversd/tk > Bus error
+ a different blank-screen result if you run it a different way. Bus errors for -dev tk and a different other bad (blank screen) result when interactively choosing dev tk from the menu are obviously not good signs. I suspect that we have been building the ABS version all this time on Mac OS X and nobody actually tested the Tk part of it. The reason I say that is because of the lack of Mac OS X identification in plplot.h that you just fixed. OTOH, Tk has worked for a long time on Linux with no segfaults or any other fundamental showstopper like you are encountering. So I think you are probably really close to getting it to work. I don't think there is anything more we can do in the linking department. One possibility is to try a different version of Tcl/Tk (the fink version if you got the above results with the Apple native version or vice versa). But if you get the same or related run-time problems with a different Tcl/Tk version then I think your only recourse is to do some run-time debugging to see exactly what the problem is. Good luck tracking this down. 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 __________________________ ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel