pg.ddx.io pgsql-testers@postgresql.org mailing list archive
help / color / mirror / Atom feedv9 beta 2 - Build on Solaris SPARC - links to two different libxml2 implementations?
7+ messages / 2 participants
[nested] [flat]
* v9 beta 2 - Build on Solaris SPARC - links to two different libxml2 implementations?
@ 2010-06-08 11:58 Lou Picciano <loupicciano@comcast.net>
2010-06-08 17:45 ` Re: v9 beta 2 - Build on Solaris SPARC - links to two different libxml2 implementations? Josh Berkus <josh@agliodbs.com>
0 siblings, 1 reply; 7+ messages in thread
From: Lou Picciano @ 2010-06-08 11:58 UTC (permalink / raw)
To: pgsql-testers
[TEST REPORT]
[Release]: 9.0beta2 - via source
[Test Type]: Configure and Install
[Test]: Build of PostgreSQL on Solaris; as usual, it's a nice, smooth, easy process. Thanks, Team!
We tend to build with custom packages, sometimes custom-built themselves, so experiment with the various environment variables to see if they get us where we want to be:
export LDFLAGS="-L/usr/local/lib -R/usr/local/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib"
export LIBS=" -lssl -lcrypto -lsasl2 -lz -lm"
export CPPFLAGS="-I/usr/local/include -I/usr/local/ssl/include"
export PYTHON="/usr/local/bin/python3"
[Platform]: Solaris quad Enterprise 450
[Parameters]: We do have libxml2 installed, under the /usr/local 'tree' and, for the moment, have made no effort to remove any SUN-provided xml2 package.
[Failure]: NO
[Results]:
Configure/Build proceeds smoothly, without error.
But linking appears to be looking for two different versions of libxml...??
Checking results of linking produces the following - ambiguous? - output:
# ldd src/backend/postgres
...
libxml2.so.2 => /usr/local/lib/libxml2.so.2
...
libxml2.so.2 (SUNW_1.6) => (version not found)
[Comments]: Haven't yet assessed what the impact of this might be at runtime; wanted to run it by the experts first.
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: v9 beta 2 - Build on Solaris SPARC - links to two different libxml2 implementations?
2010-06-08 11:58 v9 beta 2 - Build on Solaris SPARC - links to two different libxml2 implementations? Lou Picciano <loupicciano@comcast.net>
@ 2010-06-08 17:45 ` Josh Berkus <josh@agliodbs.com>
2010-06-08 18:20 ` Re: v9 beta 2 - Build on Solaris SPARC - links to two different libxml2 implementations? Lou Picciano <loupicciano@comcast.net>
0 siblings, 1 reply; 7+ messages in thread
From: Josh Berkus @ 2010-06-08 17:45 UTC (permalink / raw)
To: Lou Picciano <loupicciano@comcast.net>; +Cc: pgsql-testers
> *[Results]:*
>
> Configure/Build proceeds smoothly, without error.
>
> But linking appears to be looking for two different versions of libxml...??
What configure parameters did you use?
--
-- Josh Berkus
PostgreSQL Experts Inc.
http://www.pgexperts.com
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: v9 beta 2 - Build on Solaris SPARC - links to two different libxml2 implementations?
2010-06-08 11:58 v9 beta 2 - Build on Solaris SPARC - links to two different libxml2 implementations? Lou Picciano <loupicciano@comcast.net>
2010-06-08 17:45 ` Re: v9 beta 2 - Build on Solaris SPARC - links to two different libxml2 implementations? Josh Berkus <josh@agliodbs.com>
@ 2010-06-08 18:20 ` Lou Picciano <loupicciano@comcast.net>
2010-06-08 18:24 ` Re: v9 beta 2 - Build on Solaris SPARC - links to two different libxml2 implementations? Josh Berkus <josh@agliodbs.com>
0 siblings, 1 reply; 7+ messages in thread
From: Lou Picciano @ 2010-06-08 18:20 UTC (permalink / raw)
To: Josh Berkus <josh@agliodbs.com>; +Cc: pgsql-testers
export LDFLAGS="-L/usr/local/lib -R/usr/local/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib"
export LIBS=" -lssl -lcrypto -lsasl2 -lz -lm"
export CPPFLAGS="-I/usr/local/include -I/usr/local/ssl/include"
export PYTHON="/usr/local/bin/python3"
# make distclean
# ./configure --prefix=/usr/local/postgres/9.0-beta2 \
--enable-dtrace \
--with-perl \
--with-python \
--with-krb5 \
--with-libxml \
--with-libxslt \
--with-ldap \
--with-openssl \
> CONFIG.OUTPUT
----- Original Message -----
From: "Josh Berkus" <josh@agliodbs.com>
To: "Lou Picciano" <loupicciano@comcast.net>
Cc: pgsql-testers@postgresql.org
Sent: Tuesday, June 8, 2010 1:45:25 PM GMT -05:00 US/Canada Eastern
Subject: Re: [TESTERS] v9 beta 2 - Build on Solaris SPARC - links to two different libxml2 implementations?
> *[Results]:*
>
> Configure/Build proceeds smoothly, without error.
>
> But linking appears to be looking for two different versions of libxml...??
What configure parameters did you use?
--
-- Josh Berkus
PostgreSQL Experts Inc.
http://www.pgexperts.com
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: v9 beta 2 - Build on Solaris SPARC - links to two different libxml2 implementations?
2010-06-08 11:58 v9 beta 2 - Build on Solaris SPARC - links to two different libxml2 implementations? Lou Picciano <loupicciano@comcast.net>
2010-06-08 17:45 ` Re: v9 beta 2 - Build on Solaris SPARC - links to two different libxml2 implementations? Josh Berkus <josh@agliodbs.com>
2010-06-08 18:20 ` Re: v9 beta 2 - Build on Solaris SPARC - links to two different libxml2 implementations? Lou Picciano <loupicciano@comcast.net>
@ 2010-06-08 18:24 ` Josh Berkus <josh@agliodbs.com>
0 siblings, 0 replies; 7+ messages in thread
From: Josh Berkus @ 2010-06-08 18:24 UTC (permalink / raw)
To: Lou Picciano <loupicciano@comcast.net>; +Cc: pgsql-testers
> --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
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: v9 beta 2 - Build on Solaris SPARC - links to two different libxml2 implementations?
@ 2010-06-09 00:08 Lou Picciano <loupicciano@comcast.net>
0 siblings, 0 replies; 7+ messages in thread
From: Lou Picciano @ 2010-06-09 00:08 UTC (permalink / raw)
To: Josh Berkus <josh@agliodbs.com>; +Cc: pgsql-testers
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@agliodbs.com>
To: "Lou Picciano" <loupicciano@comcast.net>
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
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: v9 beta 2 - Build on Solaris SPARC - links to two different libxml2 implementations?
@ 2010-06-09 01:50 Lou Picciano <loupicciano@comcast.net>
2010-06-09 17:47 ` Re: v9 beta 2 - Build on Solaris SPARC - links to two different libxml2 implementations? Josh Berkus <josh@agliodbs.com>
0 siblings, 1 reply; 7+ messages in thread
From: Lou Picciano @ 2010-06-09 01:50 UTC (permalink / raw)
To: Josh Berkus <josh@agliodbs.com>; +Cc: 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@comcast.net>
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 - 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@agliodbs.com>
To: "Lou Picciano" <loupicciano@comcast.net>
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
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: v9 beta 2 - Build on Solaris SPARC - links to two different libxml2 implementations?
2010-06-09 01:50 Re: v9 beta 2 - Build on Solaris SPARC - links to two different libxml2 implementations? Lou Picciano <loupicciano@comcast.net>
@ 2010-06-09 17:47 ` Josh Berkus <josh@agliodbs.com>
0 siblings, 0 replies; 7+ messages in thread
From: Josh Berkus @ 2010-06-09 17:47 UTC (permalink / raw)
To: Lou Picciano <loupicciano@comcast.net>; +Cc: pgsql-testers
> 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).
You'd have to take this up with Peter Eisentraut. I already had this
argument with him and lost.
--
-- Josh Berkus
PostgreSQL Experts Inc.
http://www.pgexperts.com
^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2010-06-09 17:47 UTC | newest]
Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-06-08 11:58 v9 beta 2 - Build on Solaris SPARC - links to two different libxml2 implementations? Lou Picciano <loupicciano@comcast.net>
2010-06-08 17:45 ` Josh Berkus <josh@agliodbs.com>
2010-06-08 18:20 ` Lou Picciano <loupicciano@comcast.net>
2010-06-08 18:24 ` Josh Berkus <josh@agliodbs.com>
2010-06-09 00:08 Re: v9 beta 2 - Build on Solaris SPARC - links to two different libxml2 implementations? Lou Picciano <loupicciano@comcast.net>
2010-06-09 01:50 Re: v9 beta 2 - Build on Solaris SPARC - links to two different libxml2 implementations? Lou Picciano <loupicciano@comcast.net>
2010-06-09 17:47 ` Josh Berkus <josh@agliodbs.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox