From: Alan W. I. <ir...@be...> - 2002-09-16 19:26:51
|
On Mon, 16 Sep 2002, [iso-8859-1] Jo=E3o Cardoso wrote: > 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 I am so glad to see this error message finally deliver something meaningful= ! > [jcard@feup] rpm -q gd > gd-1.8.4-238 > > And gdImagePalettePixel() does not exists in the gd library. I have investigated further, and it is an undocumented but small macro in version 2.0.1 of libgd which I presume is not in 1.8.4 since Joao's compiler didn't find it. #define gdImagePalettePixel(im, x, y) (im)->pixels[(y)][(x)] Andrew, I am not sufficiently familiar with libgd to know whether this macr= o would work for version 1.84. If you know it would work, we could put this macro definition into gd.c. Alternatively, we could just drop plD_gd_optimise with #ifdefine if the GD version is not greater than 2. Please make whichever change you feel is appropriate. Alan |