Okay. That's a different error message (undefined symbol
jpeg_destroy). Doing an "nm -a libgd.so | grep jpeg_destroy"
on my system shows that libgd.so has an unresolved dependency for that function. jpeg_destory is part of the jpg library. Do you have libjpg.so anywhere in your libpths?