Thread: Symbols classing during linking

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Kung Fu Kitty Angus's Avatar
    Join Date
    Oct 2008
    Location
    Montreal, Canada
    Posts
    115

    Symbols clashing during linking

    I have this problem that seems to come down to calls to the libjpeg library from different shared libraries. Here's a snip of my valgrind report:

    ==25374== Invalid write of size 4
    ==25374== at 0x5025FC3: jpeg_CreateDecompress (in /usr/local/lib/libPdfOptimizeAPI.so)
    ==25374== by 0x59AAAA3: DCTStream::init() (in /usr/lib64/libpoppler.so.4.0.0)

    libpoppler is one library that is supposed to have nothing to do w/libPdfOptimizeAPI. I've run ldd on both libs, and they don't mention each other, but Poppler does mention libjpeg.so.62. So it seems that Poppler links libjpeg as a shared, but PDFOptimize links it statically. Whatever the case, it seems that Poppler is calling PdfOptimize, which it has no business doing. How do I stop this?
    Last edited by Angus; 05-12-2009 at 03:15 PM. Reason: typo in the title

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linux Putting my children to sleep with futex!?
    By Abs in forum Linux Programming
    Replies: 18
    Last Post: 02-12-2009, 06:43 PM
  2. Replies: 7
    Last Post: 02-02-2009, 07:27 AM
  3. unresolved external symbols...linking errors in VC++
    By rammohan2b in forum C++ Programming
    Replies: 2
    Last Post: 01-22-2009, 02:19 AM
  4. Trouble with Windows/DirectX programming
    By bobbelPoP in forum Windows Programming
    Replies: 16
    Last Post: 07-08-2008, 02:27 AM
  5. Strange error?
    By MrLucky in forum C++ Programming
    Replies: 5
    Last Post: 02-04-2006, 03:01 PM

Tags for this Thread