Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx-z.one.com (mx-z.one.com [195.47.247.151])
	by mail6.local (Postfix) with ESMTP id 892A88014FAC7
	for <filtered@awaresystems.be>; Wed, 21 Aug 2013 17:45:01 +0200 (CEST)
X-Virus-Scanned: by one.com
Received-SPF: pass (mx-z: domain of awaresystems.be+caf_=filtered=awaresystems.be@gmail.com designates 209.85.215.42 as permitted sender)
X-Greylist: whitelisted by SQLgrey-1.8.0-rc2
Received: from mail-la0-f42.google.com (mail-la0-f42.google.com [209.85.215.42])
	by mx-z.one.com (Postfix) with ESMTP id 384DE22EFE602
	for <filtered@awaresystems.be>; Wed, 21 Aug 2013 15:45:01 +0000 (UTC)
Received: by mail-la0-f42.google.com with SMTP id ep20so491742lab.29
        for <filtered@awaresystems.be>; Wed, 21 Aug 2013 08:45:00 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=google.com; s=20120113;
        h=delivered-to:domainkey-status:delivered-to:date:from:to:in-reply-to
         :message-id:references:user-agent:mime-version:content-type:cc
         :subject:precedence:list-id:list-unsubscribe:list-archive:list-post
         :list-help:list-subscribe:sender:errors-to;
        bh=ex1CugCQy/lOEEpPZ1jPJAwgm0bqE7Z7WDzcaupKQKY=;
        b=Xj3aJydH5ubius9viycTpK3jYJE0g6/GNXYBcV9ytirXiQcZl54fQCZLDg9zU2jSrM
         Izy+VPc/IzbIi+4ZZU1UswAuERqF3sQLvJE0X/1ZPdfcNC+TDEhJLASqUnn15j7WAKDM
         sgOMPw9d42yoN5/y7pItv4KBLxE9I1py8k9z/is0NHFagjwFKZb8EXf7dKVIymrWysDm
         2XEkrQU4MdiDQDUq358pY/n0uZmeioYrB7hmU3nT/IcKNMmr9DddSYbKkHtqoA5mtX9Q
         a0yvbSO/HZqj4UIy80CsgRrU9GJgRyfPkLLe1ktqS6zNx5hhnfCQnp53L8RQ7pjiMgVX
         uEsg==
X-Received: by 10.152.115.176 with SMTP id jp16mr6501423lab.17.1377099900766;
        Wed, 21 Aug 2013 08:45:00 -0700 (PDT)
X-Forwarded-To: filtered@awaresystems.be
X-Forwarded-For: awaresystems.be@gmail.com filtered@awaresystems.be
Delivered-To: awaresystems.be@gmail.com
Received: by 10.114.2.237 with SMTP id 13csp198307ldx;
        Wed, 21 Aug 2013 08:45:00 -0700 (PDT)
X-Received: by 10.152.8.51 with SMTP id o19mr1781891laa.42.1377099899098;
        Wed, 21 Aug 2013 08:44:59 -0700 (PDT)
DomainKey-Status: bad format
Received-SPF: neutral (google.com: 91.198.169.60 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) client-ip=91.198.169.60;
Received: by 10.152.99.180 with POP3 id er20mf900127lab.12;
        Wed, 21 Aug 2013 08:44:58 -0700 (PDT)
X-Gmail-Fetch-Info: info@awaresystems.be 1 pop.awaresystems.be 110 info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-m.one.com (mx-m.one.com [91.198.169.60])
	by mail6.local (Postfix) with ESMTP id 4341D8014FAC7
	for <info@awaresystems.be>; Wed, 21 Aug 2013 17:41:14 +0200 (CEST)
X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2
Received: from lists.maptools.org (ks365428.kimsufi.com [94.23.4.142])
	by mx-m.one.com (Postfix) with ESMTP id BBBFE8DEC5
	for <info@awaresystems.be>; Wed, 21 Aug 2013 15:41:13 +0000 (UTC)
Received: from [10.1.0.241] (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 4CA1935C02C;
	Wed, 21 Aug 2013 10:40:38 -0500 (EST)
Received: from blade.simplesystems.org (blade.simplesystems.org [65.66.246.74])
	by lists.maptools.org (Postfix) with ESMTPS id EFC6F35C02C
	for <tiff@lists.maptools.org>; Wed, 21 Aug 2013 10:36:21 -0500 (EST)
Received: from freddy.simplesystems.org (freddy.simplesystems.org
	[65.66.246.65])
	by blade.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id
	r7LFaI0r003107; Wed, 21 Aug 2013 10:36:19 -0500 (CDT)
Date: Wed, 21 Aug 2013 10:36:18 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@freddy.simplesystems.org
To: KAs Coenen <kascoenen@hotmail.com>
In-Reply-To: <DUB116-W80B172ED78E6468CB93013BA4C0@phx.gbl>
Message-ID: <alpine.GSO.2.01.1308211034100.9488@freddy.simplesystems.org>
References: <DUB116-W25FA03A36FDE7DBC4A1A34BA4C0@phx.gbl>,
	<alpine.GSO.2.01.1308210908070.2267@freddy.simplesystems.org>
	<DUB116-W80B172ED78E6468CB93013BA4C0@phx.gbl>
User-Agent: Alpine 2.01 (GSO 1266 2009-07-14)
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-5916492-1377099379=:9488"
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2
	(blade.simplesystems.org [65.66.246.90]);
	Wed, 21 Aug 2013 10:36:19 -0500 (CDT)
Cc: "tiff@lists.maptools.org" <tiff@lists.maptools.org>
Subject: Re: [Tiff] compiling tiff on solaris for 64 bit
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

---559023410-5916492-1377099379=:9488
Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8BIT

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,-R -Wl,/export/home/coenenka/tiff-4.0.3/libtiff/.libs -Wl,-R -Wl,/usr/sfw/lib -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/
---559023410-5916492-1377099379=:9488
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
---559023410-5916492-1377099379=:9488--
