Library versions
Hi,
I'm having trouble compiling gd and libmng, presumably because I have an old version of libjpeg lying somewhere. Here is the output I get from make for libmng :
--snip--
gcc -DPACKAGE=\"libmng\" -DVERSION=\"1.0.4\" -DPROTOTYPES=1 -DHAVE_DLFCN_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -DSTDC_HEADERS=1 -DMNG_SUPPORT_FULL=1 -DMNG_SUPPORT_READ=1 -DMNG_SUPPORT_WRITE=1 -DMNG_SUPPORT_DISPLAY=1 -DMNG_ACCESS_CHUNKS=1 -DMNG_ERROR_TELLTALE=1 -DHAVE_LIBZ=1 -DHAVE_LIBJPEG=1 -I. -I. -g -O2 -c libmng_jpeg.c -fPIC -DPIC -o .libs/libmng_jpeg.lo
libmng_jpeg.c: In function `mng_skip_input_data':
libmng_jpeg.c:112: structure has no member named `client_data'
libmng_jpeg.c: In function `mng_skip_input_data2':
libmng_jpeg.c:145: structure has no member named `client_data'
libmng_jpeg.c: In function `mng_error_exit':
libmng_jpeg.c:189: structure has no member named `client_data'
libmng_jpeg.c: In function `mngjpeg_initialize':
libmng_jpeg.c:236: structure has no member named `client_data'
libmng_jpeg.c:245: structure has no member named `client_data'
libmng_jpeg.c:254: structure has no member named `client_data'
make: *** [libmng_jpeg.lo] Error 1
And I get the same type of error (structure has no member named `client_data') when compiling gd, and in a jpeg related source file as well.
My question is a bit more general, not related to gd and libmng specifically. How can I find all instances of a library on my system, and is it safe to then remove all the ones other than the ones in /usr/lib or /usr/local/lib?
Because I downloaded a recent version of libjpeg, compiled it and installed it to /usr/lib, but I still get the errors. So I'm trying to find out what the problem is, and where there could be other versions of the library that make finds before the one in /usr/lib...
Thanks in advance.
|