LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Library versions (https://www.linuxquestions.org/questions/linux-software-2/library-versions-41208/)

skylark 01-12-2003 01:03 PM

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.

vladkrack 01-23-2003 07:32 AM

Try to use ldconfig, it scans a running system and sets up the symbolic links that are
used to load shared libraries properly.

The directorys searched are in /etc/ld.so.conf, that contain the usual path's used.

To check what library your program is using just type:

# ldd /path/program


All times are GMT -5. The time now is 07:45 AM.