From: <jc...@fe...> - 2002-09-16 19:06:35
|
On Monday 16 September 2002 19:21, Jo=E3o Cardoso wrote: | On Monday 16 September 2002 18:45, Alan W. Irwin wrote: | | On Mon, 16 Sep 2002, [iso-8859-1] Jo=E3o Cardoso wrote: | | > Hi, | | > | | > In the current cvs I can't use the png driver: =2E.. | [jcard@feup] make x01c && LD_LIBRARY_PATH=3D. ./x01c -dev png -o po.png | -debug | make: `x01c' is up to date. | Plplot library version: 5.1.0 | plLoadDriver: Device not loaded! | plLoadDriver: tag=3Dpng, drvidx=3D4 | plLoadDriver: Trying to load gdd_drv.so on ./drivers/gdd_drv.so | plLoadDriver: Local dlopen failed because of the following reason: | ./drivers/gdd_drv.so: undefined symbol: gdImagePalettePixel | plLoadDriver: Trying to load at | /usr/local/lib/plplot5.1.0/data/../drivers/gdd_drv.so | plLoadDriver: Global dlopen failed because of the following reason: | /usr/local/lib/plplot5.1.0/data/../drivers/gdd_drv.so: cannot open | shared object file: No such file or directory | Unable to load driver: gdd_drv.so. | Segmentation fault | | [jcard@feup] rpm -q gd | gd-1.8.4-238 | | And gdImagePalettePixel() does not exists in the gd library. I found that gdImagePalettePixel() is really a macro: #define gdImagePalettePixel( im, x, y ) (im)->pixels[(y)][(x)] So, putting it above gd.c:plD_gd_optimise(), makes the unknown symbol=20 error to disappear, but the seg fault still happens: [jcard@feup] ./x01c -dev png -o po.png Plplot library version: 5.1.0 Opened po.png Segmentation fault [jcard@feup] ./x01c -dev png -o po.png -debug Plplot library version: 5.1.0 plLoadDriver: Device not loaded! plLoadDriver: tag=3Dpng, drvidx=3D4 plLoadDriver: Trying to load gdd_drv.so on ./drivers/gdd_drv.so Opened po.png Segmentation fault [jcard@feup] ls -l po.png -rw-r--r-- 1 jcard users 8192 Sep 16 20:01 po.png Notice that the file is written to some extent. Joao |