[GRASS5] PNG driver: libgd2 pickup problem

Glynn Clements glynn.clements at virgin.net
Tue Apr 23 09:42:28 EDT 2002


Markus Neteler wrote:

> > Re-compile libgd 2.x to include an explicit soname. In the gd
> > Makefile, change:
> > 
> > 	ld -shared -o libgd.so.${VERSION} ${LIBOBJS}
> > to:
> > 	ld -shared -soname libgd.so.2 -o libgd.so.${VERSION} ${LIBOBJS}
> > 
> > Then, "ldd" will report e.g.:
> > 
> > 	libgd.so.2 => /usr/local/lib/libgd.so.2 (0x4001c000)
> > 
> > and the loader will try to use libgd.so.2 in preference to libgd.so.
> 
> [I have also seen your other mail]
> The problem is that I am not "root" here. So I cannot do too much with
> libgd.
> 
> A suggestion: Couldn't "configure" refer to the version -lgd.so.2
> or so when the test for gdImageCreateTrueColor is successfull and
> refer to -lgd otherwise?

No. -lgd.so.2 would cause the linker to look for libgd.so.2.so then
libgd.so.2.a, neither of which will be found.

> Then it should be fine also for non-root users or all those who
> do not know/want to recompile GD.

Bear in mind that GD 2.x is currently labelled as "beta". Hopefully
the problem will be fixed before it is officially "released".

Until then, building GD 2.0.1 with the supplied Makefile results in a
library which simply doesn't coexist well with an existing version of
GD.

-- 
Glynn Clements <glynn.clements at virgin.net>



More information about the grass-dev mailing list