AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2006.07.24 14:39 "[Tiff] "Elf Error" building tifflib on Solaris 2.5", by John Prenis
2006.09.05 08:09 "[Tiff] Cross compilation mac os x/linux", by Ivan LAURETTE
2006.09.05 15:07 "Re: [Tiff] Cross compilation mac os x/linux", by Bob Friesenhahn
2006.09.26 13:25 "RE: [Tiff] Cross compilation mac os x/linux", by Ivan LAURETTE

2006.09.05 08:09 "[Tiff] Cross compilation mac os x/linux", by Ivan LAURETTE

Hello,

I'm trying to cross compile the libtiff 3.8.2 for a PowerPC-860 (linux) on my PowerPC G5 (Mac OS 10.4.7). I'm using gcc as crosscompiler. I configured the compilation with:

./configure \
        --prefix /Volumes/Donnees/Users/ivan/local/nslu2/local \
        --with-zlib-include-dir=/Volumes/Donnees/Users/ivan/local/nslu2/
include \
        --with-zlib-lib-dir=/Volumes/Donnees/Users/ivan/local/nslu2/lib \
        --host=powerpc-860-linux-gnu \
        CC=/Volumes/Donnees/Users/ivan/local/nslu2/bin/powerpc-860-linux-gnu-
gcc \
        LDFLAGS=-L/Volumes/Donnees/Users/ivan/local/nslu2/lib \
        CPPFLAGS=-I/Volumes/Donnees/Users/ivan/local/nslu2/include \
        CXX=/Volumes/Donnees/Users/ivan/local/nslu2/bin/powerpc-860-linux-
gnu-g++ \
        CPP=/Volumes/Donnees/Users/ivan/local/nslu2/bin/powerpc-860-linux-
gnu-cpp \
        CXXCPP=/Volumes/Donnees/Users/ivan/local/nslu2/bin/powerpc-860-linux-
gnu-cpp

At compilation, I get the following error:

/bin/sh ../libtool --tag=CC --mode=link /Volumes/Donnees/Users/ivan/ local/nslu2/bin/powerpc-860-linux-gnu-gcc -I/Volumes/Donnees/Users/ ivan/local/nslu2/include -Wall -W -L/Volumes/Donnees/Users/ivan/ local/nslu2/lib -L/Volumes/Donnees/Users/ivan/local/nslu2/lib -o libtiff.la -rpath /Volumes/Donnees/Users/ivan/local/nslu2/local/lib - no-undefined -version-number 3:8:2 tif_aux.lo tif_close.lo tif_codec.lo tif_color.lo tif_compress.lo tif_dir.lo tif_dirinfo.lo tif_dirread.lo tif_dirwrite.lo tif_dumpmode.lo tif_error.lo

tif_extension.lo tif_fax3.lo tif_fax3sm.lo tif_flush.lo tif_getimage.lo tif_jpeg.lo tif_luv.lo tif_lzw.lo tif_next.lo

tif_ojpeg.lo tif_open.lo tif_packbits.lo tif_pixarlog.lo tif_predict.lo tif_print.lo tif_read.lo tif_strip.lo tif_swab.lo

tif_thunder.lo tif_tile.lo tif_unix.lo tif_version.lo tif_warning.lo tif_write.lo tif_zip.lo ../port/libport.la -lz -lm -lc libtool: link: /Volumes/Donnees/Users/ivan/local/nslu2/bin/ powerpc-860-linux-gnu-gcc -shared .libs/tif_aux.o .libs/ tif_close.o .libs/tif_codec.o .libs/tif_color.o .libs/ tif_compress.o .libs/tif_dir.o .libs/tif_dirinfo.o .libs/

tif_dirread.o .libs/tif_dirwrite.o .libs/tif_dumpmode.o .libs/ tif_error.o .libs/tif_extension.o .libs/tif_fax3.o .libs/

tif_fax3sm.o .libs/tif_flush.o .libs/tif_getimage.o .libs/

tif_jpeg.o .libs/tif_luv.o .libs/tif_lzw.o .libs/tif_next.o .libs/ tif_ojpeg.o .libs/tif_open.o .libs/tif_packbits.o .libs/

tif_pixarlog.o .libs/tif_predict.o .libs/tif_print.o .libs/ tif_read.o .libs/tif_strip.o .libs/tif_swab.o .libs/

tif_thunder.o .libs/tif_tile.o .libs/tif_unix.o .libs/ tif_version.o .libs/tif_warning.o .libs/tif_write.o .libs/tif_zip.o - Wl,--whole-archive ../port/.libs/libport.a -Wl,--no-whole-archive -L/ Volumes/Donnees/Users/ivan/local/nslu2/lib -lz -lm -lc -Wl,-soname -Wl,libtiff.so.3 -o .libs/libtiff.so.3.8.2 ../port/.libs/libport.a: member ../port/.libs/libport.a(__.SYMDEF SORTED) in archive is not an object

collect2: ld returned 1 exit status

make[2]: *** [libtiff.la] Error 1

make[1]: *** [all] Error 2

make: *** [all-recursive] Error 1

Thanks in advance for any help,

Ivan LAURETTE