Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 9DDD1632B09 for ; Tue, 8 Jun 2010 22:51:07 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 35472-03 for ; Wed, 9 Jun 2010 01:50:58 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from qmta08.westchester.pa.mail.comcast.net (qmta08.westchester.pa.mail.comcast.net [76.96.62.80]) by mail.postgresql.org (Postfix) with ESMTP id 09B9963232B for ; Tue, 8 Jun 2010 22:50:59 -0300 (ADT) Received: from omta13.westchester.pa.mail.comcast.net ([76.96.62.52]) by qmta08.westchester.pa.mail.comcast.net with comcast id TbMi1e00517dt5G58dqzPa; Wed, 09 Jun 2010 01:50:59 +0000 Received: from sz0093.wc.mail.comcast.net ([76.96.58.151]) by omta13.westchester.pa.mail.comcast.net with comcast id Tdqy1e00o3FmDic3Zdqyi5; Wed, 09 Jun 2010 01:50:59 +0000 Date: Wed, 9 Jun 2010 01:50:58 +0000 (UTC) From: Lou Picciano To: Josh Berkus Cc: pgsql-testers Message-ID: <751110634.3549141276048258918.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net> In-Reply-To: <967846407.3547321276048004047.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net> Subject: Re: v9 beta 2 - Build on Solaris SPARC - links to two different libxml2 implementations? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_184132_1129559502.1276048258917" 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=-1.909 tagged_above=-10 required=5 tests=BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201006/9 X-Sequence-Number: 123 ------=_Part_184132_1129559502.1276048258917 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Josh, Yup, that was it. Now, with libxslt installed into /usr/local/lib, everything works great. ldd reports only one reference to each of libxml and libxslt, and the compile is nice and smooth... Hope at least this journey may help someone else. # ldd src/backend/postgres libxslt.so.1 => /usr/local/lib/libxslt.so.1 libxml2.so.2 => /usr/local/lib/libxml2.so.2 Meanwhile, it might be nice to have a syntax to hard wire specific library options, especially if available as an [=/path] option to the --with- directives. There may be occasions to do much more intricate specification of configuration (such as we were doing with our custom SSL builds). Thanks for your help. Lou Picciano ----- Original Message ----- From: "Lou Picciano" To: "Josh Berkus" Cc: "pgsql-testers" Sent: Tuesday, June 8, 2010 8:08:26 PM GMT -05:00 US/Canada Eastern Subject: Re: [TESTERS] v9 beta 2 - Build on Solaris SPARC - links to two different libxml2 implementations? We have: /usr/local/lib/ ...libxml2.so.2.6.31 also: /usr/local/bin/xml2-config /usr/lib/ ...libxml2.so.2 ...libxslt.so.1 with LDFLAGS="-L/usr/local/lib -R/usr/local/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib" I'd prefer to hard code paths myself (had to manually modify a php config script recently; yikes!), but those '--with-' syntaxes don't support the '=/path/name' options, do they? Oddly, there is no libsxlt in our designated LD path, yet configure finds it (presumably the config script is searching the more 'default' /usr/lib by design?) Next step, as I realize we don't have the SunFreeware xslt package installed, I'll install that next and try the build again. The SunFreeware stuff is installed into /usr/local, as you know. Lou ----- Original Message ----- From: "Josh Berkus" To: "Lou Picciano" Cc: pgsql-testers@postgresql.org Sent: Tuesday, June 8, 2010 2:24:10 PM GMT -05:00 US/Canada Eastern Subject: Re: [TESTERS] v9 beta 2 - Build on Solaris SPARC - links to two different libxml2 implementations? > --with-libxml \ > --with-libxslt \ Ok, so there's no specific locations there. Can you see what's in that LD path in terms of XML libraries? It's possible that you do have both libraries in the path you've defined, and libxml picked up one and libxslt the other. Solaris' OSS library situation is rather messed up, and I generally hardcode the links myself. -- -- Josh Berkus PostgreSQL Experts Inc. http://www.pgexperts.com ------=_Part_184132_1129559502.1276048258917 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <= div style=3D'font-family: Verdana; font-size: 12pt; color: #000000'>Josh,
Yup, that was it.  Now, with libxslt installed into = /usr/local/lib, everything works great.  ldd reports only one referenc= e to each of libxml and libxslt, and the compile is nice and smooth... &nbs= p;Hope at least this journey may help someone else.

# ldd src/backend/postgres
       &nbs= p;libxslt.so.1 =3D>  /usr/local/lib/libxslt.so.1
 &n= bsp;      libxml2.so.2 =3D>  /usr/local/lib/libxml2.= so.2

Meanwhile, it might be nice to have a syntax = to hard wire specific library options, especially if available as an [=3D/p= ath] option to the --with-<feature> directives.  There may be oc= casions to do much more intricate specification of configuration (such as w= e were doing with our custom SSL builds).

Thanks f= or your help.

Lou Picciano

---= -- Original Message -----
From: "Lou Picciano" <loupicciano@comcast.n= et>
To: "Josh Berkus" <josh@agliodbs.com>
Cc: "pgsql-testers= " <pgsql-testers@postgresql.org>
Sent: Tuesday, June 8, 2010 8:08:= 26 PM GMT -05:00 US/Canada Eastern
Subject: Re: [TESTERS] v9 beta 2 - Bu= ild on Solaris SPARC - links to two different libxml2 implementations?
<= br>
We have:
/usr/local/lib/
...libxml2.so.2.6.31

<= /div>
also: /usr/local/bin/xml2-config

/usr/li= b/
...libxml2.so.2
...libxslt.so.1

=
with LDFLAGS=3D"-L/usr/local/lib -R/usr/local/lib -L/usr/local/ss= l/lib -R/usr/local/ssl/lib"

I'd prefer to hard cod= e paths myself (had to manually modify a php config script recently; yikes!= ), but those '--with-' syntaxes don't support the '=3D/path/name' options, = do they?

Oddly, there is no libsxlt in our designa= ted LD path, yet configure finds it (presumably the config script is search= ing the more 'default' /usr/lib by design?)

Next s= tep, as I realize we don't have the SunFreeware xslt package installed, I'l= l install that next and try the build again.  The SunFreeware stuff is= installed into /usr/local, as you know.

Lou
=

----- Original Message -----
From: "Josh Berkus" <josh@aglio= dbs.com>
To: "Lou Picciano" <loupicciano@comcast.net>
Cc: pg= sql-testers@postgresql.org
Sent: Tuesday, June 8, 2010 2:24:10 PM GMT -0= 5:00 US/Canada Eastern
Subject: Re: [TESTERS] v9 beta 2 - Build on Solar= is SPARC - links to two different libxml2 implementations?


> = --with-libxml \
> --with-libxslt \

Ok, so there's no specific = locations there.  Can you see what's in that
LD path in terms of XM= L libraries?  It's possible that you do have both
libraries in the = path you've defined, and libxml picked up one and
libxslt the other. &nb= sp;Solaris' OSS library situation is rather messed up,
and I generally h= ardcode the links myself.

--
         &= nbsp;                    =    -- Josh Berkus
           &n= bsp;                     =     PostgreSQL Experts Inc.
         =                      = ;       http://www.pgexperts.com
= ------=_Part_184132_1129559502.1276048258917--