Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 649CC2E003C for ; Mon, 24 Mar 2008 16:21:18 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 89127-01 for ; Mon, 24 Mar 2008 16:20:53 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from gmp-eb-inf-1.sun.com (gmp-eb-inf-1.sun.com [192.18.6.21]) by postgresql.org (Postfix) with ESMTP id 469B02E0054 for ; Mon, 24 Mar 2008 16:20:55 -0300 (ADT) Received: from fe-emea-09.sun.com (gmp-eb-lb-2-fe3.eu.sun.com [192.18.6.12]) by gmp-eb-inf-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id m2OJKmlr007025 for ; Mon, 24 Mar 2008 19:20:51 GMT Received: from conversion-daemon.fe-emea-09.sun.com by fe-emea-09.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0JY900I011NIJQ00@fe-emea-09.sun.com> (original mail from Zdenek.Kotala@Sun.COM) for pgsql-ports@postgresql.org; Mon, 24 Mar 2008 19:20:48 +0000 (GMT) Received: from [192.168.2.2] ([89.103.93.253]) by fe-emea-09.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0JY900FVX1QNO1A0@fe-emea-09.sun.com>; Mon, 24 Mar 2008 19:20:48 +0000 (GMT) Date: Mon, 24 Mar 2008 20:19:28 +0100 From: Zdenek Kotala Subject: Re: Postgres 8.3.1 configure fails on Solaris 10 using gcc 3.4.3 and building for 64 bit In-reply-to: To: haeb@pc60.demon.co.uk Cc: pgsql-ports@postgresql.org, Bjorn Munch Message-id: <47E7FEC0.9020603@sun.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=us-ascii Content-transfer-encoding: 7BIT References: User-Agent: Thunderbird 2.0.0.6 (X11/20071119) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200803/4 X-Sequence-Number: 2618 You can download 8.3.1 64bit version for Solaris from community web site http://www.postgresql.org/ftp/binary/v8.3.1/solaris/i386/ Or is there something missing what you need? I also put Bjorn on CC. He builded this packages, but we use Sun Studio compiler. You can also look how 8.2 is builded in opensolaris: http://src.opensolaris.org/source/xref/sfw/usr/src/cmd/postgres/postgresql-8.2/ Zdenek Harry Broomhall napsal(a): > I've been using Postgres for years on FreeBSD boxen with very > little problems. > > My company have now given me a big Sun box with 4 AMD64 processors > to told me to port my system to it. The problem is that I am not > fluent in Solaris! > > I am adding CFLAGS='-m64' to the configure line, but gcc and ld > seem strangely reluctant to use 64bit components, with the configure > script failing to run the test compile with the error: > > wrong ELF class: ELFCLASS32 > > I've used 'crle' to set the paths, but it appears that only controls > the loading, not the linking. > > So I would like to know just what parameters to hand to configure > to make this work. > > I had a look on the 'buildfarm' page, and saw that emperor_moth was > nominaly the same type of build. But I can't see there where a 64 bit > build is being requested. > > I'm probably missing somethig simple! > > Regards, > Harry.