LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


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

Rep: Reputation: 0
Question 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.
 
Old 01-23-2003, 07:32 AM   #2
vladkrack
Member
 
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/ld.so.conf, that contain the usual path's used.

To check what library your program is using just type:

# ldd /path/program
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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