AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2013.08.21 09:08 "[Tiff] compiling tiff on solaris for 64 bit", by KAs Coenen
2013.08.21 14:17 "Re: [Tiff] compiling tiff on solaris for 64 bit", by Bob Friesenhahn
2013.08.21 14:29 "Re: [Tiff] compiling tiff on solaris for 64 bit", by KAs Coenen
2013.08.21 15:36 "Re: [Tiff] compiling tiff on solaris for 64 bit", by Bob Friesenhahn

2013.08.21 15:36 "Re: [Tiff] compiling tiff on solaris for 64 bit", by Bob Friesenhahn

On Wed, 21 Aug 2013, KAs Coenen wrote:

>

> Although I have a 64 version on my system. If i change my configure command to this:

>

> ./configure CC=/opt/csw/bin/gcc-4.8 'CFLAGS=-m64' 'LDFLAGS=-m64 -L/opt/csw/lib/amd64:/usr/lib/amd64 -R/opt/csw/lib/amd64' --prefix=/usr/local --disable-static

>
> It fails with a slightly other message:
>

> libtool: link: g++ -shared  -fPIC -DPIC -nostdlib  /usr/lib/crti.o /usr/lib/values-Xa.o /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/crtbegin.o  .libs/tif_stream.o 

  -Wl,-z -Wl,allextract ../port/.libs/libport.a -Wl,-z -Wl,defaultextract -Wl,/export/home/coenenka/tiff-4.0.3/libtiff/.libs -Wl,-R -Wl,/usr/sfw/lib -Wl,-R  -Wl,-R

> -Wl,/usr/local/lib -Wl,-R -Wl,/usr/sfw/lib -Wl,-R -Wl,/opt/csw/lib/amd64 -L/opt/csw/lib/amd64:/usr/lib/amd64 ../libtiff/.libs/libtiff.so -lm -lm -ljpeg -lz -lm

 -L/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3 -L/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../.. /usr/sfw/lib/libstdc++.so -L/usr/sfw/lib -lgcc_s -lm -lm -lgcc_s

> -lgcc_s /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/crtend.o /usr/lib/crtn.o  -O2 -m64   -Wl,-h -Wl,libtiffxx.so.5 -o .libs/libtiffxx.so.5.2.0

ld: warning: file ../port/.libs/libport.a(dummy.o): wrong ELF class: ELFCLASS64
ld: fatal: file ../libtiff/.libs/libtiff.so: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to .libs/libtiffxx.so.5.2.0
collect2: ld returned 1 exit status
make[2]: *** [libtiffxx.la] Error 1
make[2]: Leaving directory `/export/home/coenenka/tiff-4.0.3/libtiff'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/export/home/coenenka/tiff-4.0.3/libtiff'
make: *** [all-recursive] Error 1

> But still pointing to a 32 bit version of the crtend.o file. Any ideas?

Add 'CXXFLAGS=-m64' to the configure options or else configure libtiff

to not use C++.

Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/