Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id D8DE263321A for ; Mon, 29 Mar 2010 05:01:11 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 30601-02 for ; Mon, 29 Mar 2010 08:00:53 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gmp-eb-inf-2.sun.com (gmp-eb-inf-2.sun.com [192.18.6.24]) by mail.postgresql.org (Postfix) with ESMTP id 471B06331E6 for ; Mon, 29 Mar 2010 05:00:31 -0300 (ADT) Received: from fe-emea-09.sun.com (gmp-eb-lb-1-fe1.eu.sun.com [192.18.6.7] (may be forged)) by gmp-eb-inf-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id o2T80RdG011954 for ; Mon, 29 Mar 2010 08:00:28 GMT MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset=UTF-8 Received: from conversion-daemon.fe-emea-09.sun.com by fe-emea-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) id <0L01008008ORZ900@fe-emea-09.sun.com> for pgsql-testers@postgresql.org; Mon, 29 Mar 2010 09:00:08 +0100 (BST) Received: from [192.168.1.101] ([unknown] [89.102.229.24]) by fe-emea-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) with ESMTPSA id <0L0100L89A7V0T40@fe-emea-09.sun.com>; Mon, 29 Mar 2010 08:59:56 +0100 (BST) Date: Mon, 29 Mar 2010 10:03:54 +0200 From: Zdenek Kotala Subject: Re: PostgreSQL 9.0alpha4: openSolaris 10 x86 snv_134: configure issues: C compiler cannot create executables In-reply-to: <925541093.6517701269632468920.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net> To: Lou Picciano Cc: Josh Berkus , pgsql-testers@postgresql.org, Bjorn Munch Message-id: <1269849834.1427.18.camel@localhost> References: <925541093.6517701269632468920.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.54 tagged_above=-10 required=5 tests=AWL=-0.800, BAYES_20=-0.74 X-Spam-Level: X-Archive-Number: 201003/19 X-Sequence-Number: 68 There is my answer. I hope that it helps: You use own tools in /usr/local like grep and so on. But all these tools are already on the system in /usr/gnu/bin directory. Most of them are patched for better integration with solaris. Use own compiled version is risky and IIRC only gmake is what you really need for build. All other original Solaris tools works fine. I run buildfarm on Solaris snv and it works fine. You can see configuration here: http://www.pgbuildfarm.org/cgi-bin/show_log.pl?nm=luna_moth&dt=2010-03-26%2022:06:00 Zdenek Lou Picciano píše v pá 26. 03. 2010 v 19:41 +0000: > Josh, > > > Many thanks for getting back. Some new information to add to the mix: > > > Imagine, if you will, that our openSolaris 10 x86 snv_134 is a very > 'standard' install of the OS. > > > On top of it, we've added key packages from Steve Christensen's > SunFreeware - into /usr/local - > and then favored those applications/libraries within the environment > with: > > > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin > > > This brought us to my last email: C compiler cannot create > executables. > > > Stubbornly (and granted, academically at this point), we've been > trying to find what tools may be missing, and have installed a few > which may be needed - to achieve the build without SunStudio. All the > usual suspects are there in /usr/local/bin: grep, ar, awk, gcc, sed, > readline, perl - and ld. What other(s) may we be missing? > > > Still, could not get a successful compile. > > > - I did install SunStudio12u1 and, (you know where this is headed!) > > > PostgreSQL configures and builds beautifully! So, is it safe to > assume configure is 'finding' one or more tools outside > of /usr/local? Probably...? > > > ...strangely, though, configure still reports it's using Solaris ld, > even though --with-gnu-ld has been specified: > > > checking for ld used by GCC... /usr/ccs/bin/ld > checking if the linker (/usr/ccs/bin/ld) is GNU ld... no > > > - - - - But now, to make things a bit more complicated: The real point > to the whole exercise: > > > Is to build and run PostgreSQL inside an open Solaris ipkg-branded > zone. To effect this test, a simple zone has been set up > with /usr/local as a loopback (lofs) device. Of course, this zone > doesn't 'see' anything in the /opt path. > > > As in the root zone, configure starts to fail at about line 3316: > > > configure:3316: gcc conftest.c >&5 > ld: fatal: file values-Xa.o: open failed: No such file or > directory > ld: fatal: file processing errors. No output written to a.out > collect2: ld returned 1 exit status > > > suggesting to me that I've got one or two utilities missing. I'll > have to develop my script reading skills to deconstruct this; > meanwhile... Hoping Zdenek or Bjorn will have an idea. Wonder if > there's a way to direct configure to gnu-ld directly? > > > Yes, a very long email - but hopefully this will be useful to others > moving down the same road... > > > Regards, Lou Picciano > > --- > Subject: Re: [TESTERS] PostgreSQL 9.0alpha4: openSolaris 10 x86 > snv_134: configure issues: C compiler cannot create executables > > On 3/26/10 7:18 AM, Lou Picciano wrote: > > Or is using SunStudio a must on openSolaris? > > In my experience? Yes. > > However, cc'ing Zdenek and Bjorn who have way more Solaris-compile-fu > than me. > > -- Josh Berkus > PostgreSQL Experts Inc. > http://www.pgexperts.com >