logo       

Re: [HACKERS] build of 7.2.1 on SCO Openserver and Unixware 7.1.1: msg#00137

Subject: Re: [HACKERS] build of 7.2.1 on SCO Openserver and Unixware 7.1.1
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@xxxxxxxxxxxxxxxx               |  (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
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe