On 2007-03-20 16:17-0400 Miguel de Val Borro wrote: > Thanks for the advice. The pstex driver can be built with the cmake > option -DENABLE_DYNDRIVERS=OFF. I have run all the example programs in > C, C++, Fortran and Python for the pstex driver and get a segmentation > fault for all of them.
I confirm that. Nevertheless, since you have showed interest, you have inspired me to make some more corrections to the CMake infrastructure for this device. So now it builds fine both for -DENABLE_DYNDRIVERS=OFF and ON. (The trick in the -DENABLE_DYNDRIVERS=ON case was to add the ps.c source code to the compilation of the plug-in since the pstex.c code is parasitic on the ps.c code [i.e., it uses functions defined by ps.c]). Also, if I invoke ldd -r drivers/pstex.so, I get no missing libraries or undefined symbols. So the linking of the plug-in for the -DENABLE_DYNDRIVERS=ON case seems perfect. However, for both -DENABLE_DYNDRIVERS=OFF and ON you get segfaults with any example. Miguel, if you care to debug that further, valgrind should be a big help. I had a quick look with our simplest examples (x10c in the install tree), and it appears something is not defined (invalid read). I imagine there was some minor global change we made for all devices, and we forgot to make the change for pstex.c. CVS HEAD is quite stable now so I suggest you use that if you want to take advantage of my pstex CMake infrastructure changes. 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.php&p=sourceforge&CID=DEVDEV _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel