#3 Undefined symbols in fract4dc.so

closed
nobody
None
5
2006-05-06
2006-04-30
Robert Nowotniak
No

gnofract4d-2.13 complains about missing symbols in
fract4dc.so library:

$ ./gnofract4d

Can't import a required module.
If you haven't set up Gnofract 4D yet, run './setup.py
build'
Error was: '/tmp/gnofract4d-2.13/fract4d/fract4dc.so:
undefined symbol:
_Z20jpeg_finish_compressP20jpeg_compress_struct'
$ _

Following patch is the solution for this issue:

--- fract4d/c/imageWriter.cpp.orig 2006-03-02
17:36:56.000000000 +0100
+++ fract4d/c/imageWriter.cpp 2006-04-30
13:12:31.000000000 +0200
@@ -171,7 +171,9 @@
#endif

#ifdef JPG_ENABLED
+extern "C" {
#include "jpeglib.h"
+}

class jpg_writer : public image_writer
{

Discussion

  • Edwin Young
    Edwin Young
    2006-05-02

    Logged In: YES
    user_id=2194

    Thanks, Robert.

    Yes, you'll see this problem on some distributions (incl.
    SuSE) - not sure why it doesn't show up on Fedora.

    I'll fix it in the next release. Until then, this fix should
    work fine, or use the binary drops.

     
  • Edwin Young
    Edwin Young
    2006-05-06

    • status: open --> closed
     
  • Edwin Young
    Edwin Young
    2006-05-06

    Logged In: YES
    user_id=2194

    Fixed in 2.14