Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 5A56C63372F for ; Fri, 26 Mar 2010 16:41:32 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 03849-09 for ; Fri, 26 Mar 2010 19:41:21 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from qmta14.westchester.pa.mail.comcast.net (qmta14.westchester.pa.mail.comcast.net [76.96.59.212]) by mail.postgresql.org (Postfix) with ESMTP id 43DB36332F7 for ; Fri, 26 Mar 2010 16:41:09 -0300 (ADT) Received: from omta07.westchester.pa.mail.comcast.net ([76.96.62.59]) by qmta14.westchester.pa.mail.comcast.net with comcast id xlwo1d0021GhbT85Evh9dq; Fri, 26 Mar 2010 19:41:09 +0000 Received: from sz0093.wc.mail.comcast.net ([76.96.58.151]) by omta07.westchester.pa.mail.comcast.net with comcast id xvh91d0013FmDic3Tvh9ZS; Fri, 26 Mar 2010 19:41:09 +0000 Date: Fri, 26 Mar 2010 19:41:08 +0000 (UTC) From: Lou Picciano To: Josh Berkus Cc: pgsql-testers@postgresql.org, Zdenek Kotala , Bjorn Munch Message-ID: <925541093.6517701269632468920.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net> In-Reply-To: <1905082645.6517071269632372946.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net> Subject: Re: PostgreSQL 9.0alpha4: openSolaris 10 x86 snv_134: configure issues: C compiler cannot create executables MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_339671_1616130107.1269632468919" X-Originating-IP: [76.117.184.231] X-Mailer: Zimbra 5.0.19_GA_3172.RHEL5_64 (ZimbraWebClient - SAF3 (Mac)/5.0.19_GA_3177.RHEL5_64) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.598 tagged_above=-10 required=5 tests=BAYES_00=-2.599, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201003/15 X-Sequence-Number: 64 ------=_Part_339671_1616130107.1269632468919 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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 ------=_Part_339671_1616130107.1269632468919 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <= div style=3D'font-family: Verdana; font-size: 12pt; color: #000000'>Josh,
Many thanks for getting back.  Some new information = to add to the mix:

Imagine, if you will, that our&= nbsp;openSolaris 10 x86 snv_134 is a very 'standard' install of the OS.

On top of it, we've added key packages from Steve Chr= istensen's SunFreeware - into /usr/local - 
and then favored= those applications/libraries within the environment with:

PATH=3D/usr/local/sbin:/usr/local/bi= n:/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 tryi= ng 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 suspe= cts are there in /usr/local/bin: grep, ar, awk, gcc, sed, readline, perl - = and ld.  What other(s) may we be missing?

Sti= ll, could not get a successful compile.

 - I = did install SunStudio12u1 and, (you know where this is headed!)
<= br>
PostgreSQL configures and builds beautifully!  So, is it= safe to assume configure is 'finding' one or more tools outside of /usr/lo= cal?  Probably...?

...strangely, though, conf= igure still reports it's using Solaris ld, even though --with-gnu-ld has be= en 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 com= plicated: The real point to the whole exercise:

Is= to build and run PostgreSQL inside an open Solaris ipkg-branded zone. &nbs= p;To effect this test, a simple zone has been set up with /usr/local as a l= oopback (lofs) device.  Of course, this zone doesn't 'see' anything in= the /opt path.

As in the root zone, configur= e starts to fail at about line 3316:

configure:3316: gcc    conftest.c &nb= sp;>&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 retur= ned 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 Zde= nek or Bjorn will have an idea.  Wonder if there's a way to direct con= figure to gnu-ld directly?

Yes, a very long email = - but hopefully this will be useful to others moving down the same road...<= /div>

Regards,  Lou Picciano

---
S= ubject: Re: [TESTERS] PostgreSQL 9.0alpha4: openSolaris 10 x86 snv_134: con= figure 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 Bjo= rn who have way more Solaris-compile-fu
than me.

   &nb= sp;                     &= nbsp;        -- Josh Berkus
     &nbs= p;                     &n= bsp;         PostgreSQL Experts Inc.
   &n= bsp;                     =             http://www.pgexperts.com
------=_Part_339671_1616130107.1269632468919--