yayahjb / cbflib

CBFlib repository cloned from SF CBFlib repository as of 1 Dec 15
8 stars 20 forks source link

cbflib does not compile on OS X El Capitan with up-to-date XCode #2

Closed graeme-winter closed 8 years ago

graeme-winter commented 8 years ago

Not due to code itself but due to TIFFLIB:

..... snip ....

duplicate symbol _isspace in:
    CMakeFiles/tiff.dir/libtiff/tif_print.c.o
    CMakeFiles/tiff.dir/libtiff/tif_sprint.c.o
duplicate symbol ___sputc in:
    CMakeFiles/tiff.dir/libtiff/tif_aux.c.o
    CMakeFiles/tiff.dir/libtiff/tif_sprint.c.o
duplicate symbol _isalpha in:
    CMakeFiles/tiff.dir/libtiff/tif_print.c.o
    CMakeFiles/tiff.dir/libtiff/tif_sprint.c.o
duplicate symbol ___sputc in:
    CMakeFiles/tiff.dir/libtiff/tif_aux.c.o
    CMakeFiles/tiff.dir/libtiff/tif_strip.c.o
duplicate symbol ___sputc in:
    CMakeFiles/tiff.dir/libtiff/tif_aux.c.o
    CMakeFiles/tiff.dir/libtiff/tif_swab.c.o
duplicate symbol ___sputc in:
    CMakeFiles/tiff.dir/libtiff/tif_aux.c.o
    CMakeFiles/tiff.dir/libtiff/tif_thunder.c.o
duplicate symbol ___sputc in:
    CMakeFiles/tiff.dir/libtiff/tif_aux.c.o
    CMakeFiles/tiff.dir/libtiff/tif_tile.c.o
duplicate symbol ___sputc in:
    CMakeFiles/tiff.dir/libtiff/tif_aux.c.o
    CMakeFiles/tiff.dir/libtiff/tif_version.c.o
duplicate symbol ___sputc in:
    CMakeFiles/tiff.dir/libtiff/tif_aux.c.o
    CMakeFiles/tiff.dir/libtiff/tif_warning.c.o
duplicate symbol ___sputc in:
    CMakeFiles/tiff.dir/libtiff/tif_aux.c.o
    CMakeFiles/tiff.dir/libtiff/tif_write.c.o
duplicate symbol ___sputc in:
    CMakeFiles/tiff.dir/libtiff/tif_aux.c.o
    CMakeFiles/tiff.dir/libtiff/tif_zip.c.o
duplicate symbol ___sputc in:
    CMakeFiles/tiff.dir/libtiff/tif_aux.c.o
    CMakeFiles/tiff.dir/libtiff/tif_unix.c.o
ld: 118 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[5]: *** [libtiff.dylib] Error 1
make[4]: *** [CMakeFiles/tiff.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [tiff-4.0.3-rev-29Sep13-prefix/src/tiff-4.0.3-rev-29Sep13-stamp/tiff-4.0.3-rev-29Sep13-build] Error 2
make[1]: *** [CMakeFiles/tiff-4.0.3-rev-29Sep13.dir/all] Error 2
make: *** [all] Error 2

This is a known problem with TIFFLIB I think

Configuration:

CBF_USE_FORTRAN=NO /Applications/CMake.app/Contents/bin/cmake ../cbflib/
make

testing later tifflib now (seems to be up to 4.0.6 on ftp://download.osgeo.org/libtiff - canonical source today?)

graeme-winter commented 8 years ago

OK, that version seems to build correctly in isolation, old version fails with errors above; please could we consider updating to latest version which builds correctly?

yayahjb commented 8 years ago

Thanks -- I'll create an update of the modified tifflib that CBFlib uses.

Regards, Herbert

On Wed, Oct 26, 2016 at 5:25 AM, Graeme Winter notifications@github.com wrote:

OK, that version seems to build correctly in isolation, old version fails with errors above; please could we consider updating to latest version which builds correctly?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/yayahjb/cbflib/issues/2#issuecomment-256295016, or mute the thread https://github.com/notifications/unsubscribe-auth/AEPiAdwwL9DOtWOuXBU_q5fbChZ0yG7xks5q3xykgaJpZM4Kg8UQ .

yayahjb commented 8 years ago

Updated tifflib to patched version of 4.0.6 -- HJB