Re: v9 beta 2 - Build on Solaris SPARC - links to two different libxml2 implementations?

From: Lou Picciano <loupicciano(at)comcast(dot)net>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: pgsql-testers <pgsql-testers(at)postgresql(dot)org>
Subject: Re: v9 beta 2 - Build on Solaris SPARC - links to two different libxml2 implementations?
Date: 2010-06-09 01:50:58
Message-ID: 751110634.3549141276048258918.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-testers

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-<feature> 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" <loupicciano(at)comcast(dot)net>
To: "Josh Berkus" <josh(at)agliodbs(dot)com>
Cc: "pgsql-testers" <pgsql-testers(at)postgresql(dot)org>
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" <josh(at)agliodbs(dot)com>
To: "Lou Picciano" <loupicciano(at)comcast(dot)net>
Cc: pgsql-testers(at)postgresql(dot)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

Responses

Browse pgsql-testers by date

  From Date Subject
Next Message Glen Barber 2010-06-09 12:39:36 Re: Misplaced pg_upgrade_support.so ?
Previous Message Lou Picciano 2010-06-09 00:08:26 Re: v9 beta 2 - Build on Solaris SPARC - links to two different libxml2 implementations?