Changes between Version 2 and Version 3 of JasPer


Ignore:
Timestamp:
Nov 28, 2007, 9:22:27 AM (16 years ago)
Author:
Mateusz Łoskot
Comment:

Added notes about MH_DYLIB bug

Legend:

Unmodified
Added
Removed
Modified
  • JasPer

    v2 v3  
    1818  ./configure
    1919}}}
     20
     21== Troubleshooting ==
     22
     23If may encounter following error during linking, especially when building GDAL on Mac OS X:
     24
     25{{{
     26ld: common symbols not allowed with MH_DYLIB output format with the -multi_module option
     27/usr/local/lib/libjasper.a(jpc_t1cod.o) definition of common _jpc_magctxnolut (size 16384)
     28/usr/local/lib/libjasper.a(jpc_t1cod.o) definition of common _jpc_mqctxs (size 160)
     29/usr/local/lib/libjasper.a(jpc_t1cod.o) definition of common _jpc_refnmsedec (size 512)
     30/usr/local/lib/libjasper.a(jpc_t1cod.o) definition of common _jpc_refnmsedec0 (size 512)
     31/usr/local/lib/libjasper.a(jpc_t1cod.o) definition of common _jpc_scctxnolut (size 1024)
     32/usr/local/lib/libjasper.a(jpc_t1cod.o) definition of common _jpc_signmsedec (size 512)
     33/usr/local/lib/libjasper.a(jpc_t1cod.o) definition of common _jpc_signmsedec0 (size 512)
     34/usr/local/lib/libjasper.a(jpc_t1cod.o) definition of common _jpc_spblut (size 1024)
     35/usr/local/lib/libjasper.a(jpc_t1cod.o) definition of common _jpc_zcctxnolut (size 4096)
     36/usr/bin/libtool: internal link edit command failed
     37make[1]: *** [/Users/mloskot/dev/gdal/_svn/trunk/gdal/libgdal.dylib] Error 1
     38make: *** [check-lib] Error 2
     39}}}
     40
     41In order to fix it, it's required to rebuild JasPer with additional compilation option:
     42{{{
     43$ export CFLAGS="-fno-common"
     44$ export CXXFLAGS=$CFLAGS
     45$ ./configure
     46make clean
     47make
     48make install
     49}}}
     50
     51After new build of JasPer is installed, GDAL should compile and link with success.