Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-12-2003, 01:03 PM   #1
LQ Newbie
Registered: Jan 2003
Distribution: Fedora Core & Gentoo
Posts: 5

Rep: Reputation: 0
Question Library versions


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 :

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.
Old 01-23-2003, 07:32 AM   #2
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334

Rep: Reputation: 30
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/, that contain the usual path's used.

To check what library your program is using just type:

# ldd /path/program


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
adding a bulit in library to my library lg3 Linux - Software 1 10-17-2004 08:19 AM
versions rose Linux - Wireless Networking 2 10-11-2004 10:49 AM
howto compile bin with my library using all-static and shared linked standart library stpg Programming 4 06-29-2004 04:20 AM
what is the function library of the basic graphics library in rethat9.0? zerwolve Red Hat 0 04-29-2004 09:18 PM
Installing 2 versions of the same library pamide Linux - Software 0 01-15-2004 05:09 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:12 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration