My apologies for not reporting this earlier. The postgresql in current (and
the new update for 1.2) fails to build under solaris because of a conflict
between solaris crypt.h header and old compatibility API of openssl. To get
it to build I had to define OPENSSL_DISABLE_OLD_DES_SUPPORT.
Martin
----
Martin Andrews
[EMAIL PROTECTED]
------------------------------------
Here is the patch
openpkg@redfish$ diff -u postgresql.spec~ postgresql.spec
--- postgresql.spec~ Sun Feb 16 08:50:13 2003
+++ postgresql.spec Sun Feb 16 08:52:22 2003
@@ -40,7 +40,7 @@
Group: Database
License: GPL
Version: %{V_postgresql}
-Release: 1.2.1
+Release: lion.1
# package options
%option with_cxx no
@@ -107,7 +107,8 @@
# configure package
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
- CPPFLAGS="%{l_cppflags}" \
+ # LION: Disable old openssl interface to avoid conflict with sun's
crypt.h
+ CPPFLAGS="%{l_cppflags} -DOPENSSL_DISABLE_OLD_DES_SUPPORT" \
LDFLAGS="%{l_ldflags}" \
./configure \
--prefix=%{l_prefix} \
------------------------------------
Here is the error before the patch:
make[3]: Entering directory
`/opt/openpkg/RPM/TMP/postgresql-7.3.2/src/interface
s/libpq'
/opt/openpkg/bin/cc -O2 -pipe -Wall -Wmissing-prototypes
-Wmissing-declarations
-I. -I../../../src/include -I/opt/openpkg/include -I/opt/openpkg/include
-DFRON
TEND -DSYSCONFDIR='"/opt/openpkg/etc/postgresql"' -c -o fe-connect.o
fe-connect
.c
In file included from fe-connect.c:46:
/usr/include/crypt.h:22: parse error before '(' token
/usr/include/crypt.h:22: parse error before "const"
make[3]: *** [fe-connect.o] Error 1
> -----Original Message-----
> From: Ralf S. Engelschall [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, February 16, 2003 4:15 AM
> To: [EMAIL PROTECTED]
> Subject: Re: postgresql-7.3.1-1.2.0 links to non-existant shared
> library?
>
>
> On Thu, Feb 13, 2003, Ralf S. Engelschall wrote:
>
> > > Just confirmed that the same happens on solaris 9. I see
> that the spec file
> > > explicitly removes all the shared libraries during the
> install phase. Maybe
> > > the --disable-shared option should be used with configure instead?
> >
> > The OpenPKG 1.2 PostgreSQL package unfortunately is fully
> broken under
> > run-time. The problems are already fixed in
> OpenPKG-CURRENT. I'll try to
> > merge the fixes back to 1.2 and release an 1.2.1
> "postgresql" package
> > for OpenPKG 1.2 today.
>
> Ok, I've now merged the large amount of fixes to the "postgresql"
> package from OpenPKG-CURRENT to OpenPKG 1.2-SOLID and released a
> postgresql-7.3.1-1.2.1.src.rpm update package. You can find it under
> ftp://ftp.openpkg.org/release/1.2/UPD/.
>
______________________________________________________________________
The OpenPKG Project www.openpkg.org
User Communication List [EMAIL PROTECTED]