FAQ
- ----- Forwarded message from bruc -----
From bruc Thu May 22 09:04:37 1997
Subject: Re: Big endian problem in pqcomprim.c (fwd)
To: dfriend@atlsci.atlsci.com (David Friend)
Date: Thu, 22 May 1997 09:04:37 -0400 (EDT)
Cc: pgsql-patches@postgresql.org
In-Reply-To: <Pine.LNX.3.95.970522064421.25797A-100000@atlsci.atlsci.com> from "David Friend" at May 22, 97 06:44:52 am
X-Mailer: ELM [version 2.4 PL25 ME8b]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 2510

Dear David,
My latest patch to pqcomprim.c was designed to work on any big
endian machine, but of course, I don't know that it will work on all
such machines. Please try it and let me and the Postgres developers
know the result. --Bob

David Friend writes:
On Tue, 20 May 1997, Tatsuo Ishii wrote:

Satoshi, Tatsuo: My system still does not work if I do not edit
pqcomprim.c as described above. Am I correct in assuming that both of you
are successfully compiling on Linux SPARC platforms without this
modification? What versions of the linux kernel (use "uname -a") are you
using? What distribution of Linux (e.g. Redhat v4.0)?
I also experienced exactly the same problem with my PowerPC
Mklinux. So my guess is the problem should exist in all platforms
which are:

o having endian.h
o BIG_ENDIAN machine

There are 2 way to solve the problem:

1. Do not use macros defined when BIG_ENDIAN (as you did)
2. Fix the bug in pqPutShort (as I did)
Thanks for replying.

I hadn't applied your patch since it appeared to be already applied. We
both now know that the patch was backward, judging by later messages.

Robert Bruccoleri posted another solution in PATCHES later yesterday that
appears to address the same endian problem in a different manner.

Tatsuo, Robert: Could you both comment on this? Which patch should be
applied to the source tree?

David Friend ! cq995@freenet.carleton.ca
Atlantis Scientific Systems Group Inc. ! david.friend@atlsci.com
1827 Woodward Drive ! 613-727-1087 (voice)
Ottawa, Ontario, CANADA K2C 0P9 ! 800-265-3894 (voice)
ERGOvista Scientific Image Analysis ! 613-727-5853 (fax)




+------------------------------------+-----------------------------------+
Robert E. Bruccoleri, Ph.D. | Bristol-Myers Squibb |
Principal Scientist | Pharmaceutical Research Institute |
Macromolecular Modeling | Room H.3812C, M/S H23-07 |
bruc@bms.com | Route 206 and Province Line Road |
Phone: (609) 252-6165 | P.O. Box 4000 |
Fax: (609) 252-6030 | Princeton, NJ 08543 USA |
+------------------------------------+-----------------------------------+
Member of the League for Programming Freedom |
+------------------------------------+-----------------------------------+

- ----- End of forwarded message from bruc -----
+------------------------------------+-----------------------------------+
Robert E. Bruccoleri, Ph.D. | Bristol-Myers Squibb |
Principal Scientist | Pharmaceutical Research Institute |
Macromolecular Modeling | Room H.3812C, M/S H23-07 |
bruc@bms.com | Route 206 and Province Line Road |
Phone: (609) 252-6165 | P.O. Box 4000 |
Fax: (609) 252-6030 | Princeton, NJ 08543 USA |
+------------------------------------+-----------------------------------+
Member of the League for Programming Freedom |
+------------------------------------+-----------------------------------+

------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppgsql-hackers @
categoriespostgresql
postedMay 22, '97 at 7:15p
activeMay 22, '97 at 7:15p
posts1
users1
websitepostgresql.org...
irc#postgresql

1 user in discussion

Robert Bruccoleri: 1 post

People

Translate

site design / logo © 2021 Grokbase