Re: [HACKERS] build of 7.2.1 on SCO Openserver and

From: Larry Rosenman <ler(at)lerctr(dot)org>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Nicolas Bazin <nbazin(at)ingenico(dot)com(dot)au>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [HACKERS] build of 7.2.1 on SCO Openserver and
Date: 2002-04-18 01:21:45
Message-ID: 1019092906.292.2.camel@lerlaptop
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

The have_unix_sockets test in the regression test script should NOT
include sysv5. They work fine in UnixWare 7.1.1 and OU8.

On Wed, 2002-04-17 at 20:17, Bruce Momjian wrote:
> Nicolas Bazin wrote:
> > Sorry for the package, but the following patch need to be applied
> > to get the new verion compiled on SCO Openserver 5.0.5 and
> > Unixware 7.1.1
>
> Reworked patch attached. I reordered configure.in (autoconf will need
> to be run). I fixed the ODBC pow() call as Tom suggested, and the
> regression script. I did not touch TCL because that should be reworked
> for 7.3 anyway.
>
> --
> Bruce Momjian | http://candle.pha.pa.us
> pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
> + If your life is a hard drive, | 830 Blythe Avenue
> + Christ can be your backup. | Drexel Hill, Pennsylvania 19026
> ----
>

> Index: configure.in
> ===================================================================
> RCS file: /cvsroot/pgsql/configure.in,v
> retrieving revision 1.178
> diff -c -r1.178 configure.in
> *** configure.in 14 Apr 2002 17:23:20 -0000 1.178
> --- configure.in 18 Apr 2002 01:14:14 -0000
> ***************
> *** 696,703 ****
> AC_CHECK_LIB(util, setproctitle)
> AC_CHECK_LIB(m, main)
> AC_CHECK_LIB(dl, main)
> - AC_CHECK_LIB(socket, main)
> AC_CHECK_LIB(nsl, main)
> AC_CHECK_LIB(ipc, main)
> AC_CHECK_LIB(IPC, main)
> AC_CHECK_LIB(lc, main)
> --- 696,703 ----
> AC_CHECK_LIB(util, setproctitle)
> AC_CHECK_LIB(m, main)
> AC_CHECK_LIB(dl, main)
> AC_CHECK_LIB(nsl, main)
> + AC_CHECK_LIB(socket, main)
> AC_CHECK_LIB(ipc, main)
> AC_CHECK_LIB(IPC, main)
> AC_CHECK_LIB(lc, main)
> Index: src/interfaces/odbc/convert.c
> ===================================================================
> RCS file: /cvsroot/pgsql/src/interfaces/odbc/convert.c,v
> retrieving revision 1.78
> diff -c -r1.78 convert.c
> *** src/interfaces/odbc/convert.c 1 Apr 2002 03:01:14 -0000 1.78
> --- src/interfaces/odbc/convert.c 18 Apr 2002 01:14:29 -0000
> ***************
> *** 2717,2723 ****
> y = 0;
>
> for (i = 1; i <= 3; i++)
> ! y += (s[i] - 48) * (int) pow(8, 3 - i);
>
> return y;
>
> --- 2717,2723 ----
> y = 0;
>
> for (i = 1; i <= 3; i++)
> ! y += (s[i] - '0') << (3 * (3 - i));
>
> return y;
>
> ***************
> *** 2740,2746 ****
> else
> val = s[i] - '0';
>
> ! y += val * (int) pow(16, 2 - i);
> }
>
> return y;
> --- 2740,2746 ----
> else
> val = s[i] - '0';
>
> ! y += val << (4 * (2 - i));
> }
>
> return y;
> ***************
> *** 2795,2801 ****
>
> for (i = 4; i > 1; i--)
> {
> ! x[i] = (val & 7) + 48;
> val >>= 3;
> }
>
> --- 2795,2801 ----
>
> for (i = 4; i > 1; i--)
> {
> ! x[i] = (val & 7) + '0';
> val >>= 3;
> }
>
> Index: src/test/regress/pg_regress.sh
> ===================================================================
> RCS file: /cvsroot/pgsql/src/test/regress/pg_regress.sh,v
> retrieving revision 1.23
> diff -c -r1.23 pg_regress.sh
> *** src/test/regress/pg_regress.sh 3 Jan 2002 21:52:05 -0000 1.23
> --- src/test/regress/pg_regress.sh 18 Apr 2002 01:14:30 -0000
> ***************
> *** 161,167 ****
> # ----------
>
> case $host_platform in
> ! *-*-qnx* | *beos*)
> unix_sockets=no;;
> *)
> unix_sockets=yes;;
> --- 161,167 ----
> # ----------
>
> case $host_platform in
> ! *-*-qnx* | *beos* | *-*-sco3.2v5* | *-*-sysv5)
> unix_sockets=no;;
> *)
> unix_sockets=yes;;
> ----
>

>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-04-18 01:23:19 Re: [HACKERS] build of 7.2.1 on SCO Openserver and Unixware
Previous Message Bruce Momjian 2002-04-18 01:17:52 Re: [HACKERS] build of 7.2.1 on SCO Openserver and Unixware 7.1.1

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2002-04-18 01:23:19 Re: [HACKERS] build of 7.2.1 on SCO Openserver and Unixware
Previous Message Bruce Momjian 2002-04-18 01:17:52 Re: [HACKERS] build of 7.2.1 on SCO Openserver and Unixware 7.1.1