Re: Call for platforms

From: Tom Ivar Helbekkmo <tih(at)kpnQwest(dot)no>
To: lockhart(at)fourpalms(dot)org
Cc: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>, hotz(at)jpl(dot)nasa(dot)gov, scrappy(at)hub(dot)org, Hackers List <pgsql-hackers(at)postgresql(dot)org>, ask(at)wisdom(dot)weizmann(dot)ac(dot)il, thomas(at)pgsql(dot)com
Subject: Re: Call for platforms
Date: 2001-04-01 08:16:56
Message-ID: 86g0ftghl3.fsf@athene.i.eunet.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Tom Ivar Helbekkmo <tih(at)kpnQwest(dot)no> writes:

> > We need some NetBSD folks to speak up!
>
> I've once again got a VAX that should be able to run PostgreSQL on
> NetBSD/vax, so I hope to be able to help revitalize that port soon...

It still works. RC1 configures, compiles and runs on my VAX 4000/500
with NetBSD-current -- but the regression tests give a lot of failures
because the VAX doesn't have IEEE math, leading to different rounding
and erroneous assumptions about the limits of floating point values.
I'll be looking at this more closely.

Also, dynamic loading now works on NetBSD/vax, so my old #ifdef for
that in the backend/port/bsd.c file, which has since propagated into
the new *bsd.c files, can go away (actually, I'm suspicious of the
MIPS part of those, too, but I didn't put that in, and I don't have
any MIPS-based machines):

Index: src/backend/port/dynloader/freebsd.c
===================================================================
RCS file: /home/projects/pgsql/cvsroot/pgsql/src/backend/port/dynloader/freebsd.c,v
retrieving revision 1.9
diff -c -r1.9 freebsd.c
*** src/backend/port/dynloader/freebsd.c 2001/02/10 02:31:26 1.9
--- src/backend/port/dynloader/freebsd.c 2001/04/01 08:01:20
***************
*** 63,69 ****
void *
BSD44_derived_dlopen(const char *file, int num)
{
! #if defined(__mips__) || (defined(__NetBSD__) && defined(__vax__))
sprintf(error_message, "dlopen (%s) not supported", file);
return NULL;
#else
--- 63,69 ----
void *
BSD44_derived_dlopen(const char *file, int num)
{
! #if defined(__mips__)
sprintf(error_message, "dlopen (%s) not supported", file);
return NULL;
#else
***************
*** 78,84 ****
void *
BSD44_derived_dlsym(void *handle, const char *name)
{
! #if defined(__mips__) || (defined(__NetBSD__) && defined(__vax__))
sprintf(error_message, "dlsym (%s) failed", name);
return NULL;
#else
--- 78,84 ----
void *
BSD44_derived_dlsym(void *handle, const char *name)
{
! #if defined(__mips__)
sprintf(error_message, "dlsym (%s) failed", name);
return NULL;
#else
***************
*** 101,107 ****
void
BSD44_derived_dlclose(void *handle)
{
! #if defined(__mips__) || (defined(__NetBSD__) && defined(__vax__))
#else
dlclose(handle);
#endif
--- 101,107 ----
void
BSD44_derived_dlclose(void *handle)
{
! #if defined(__mips__)
#else
dlclose(handle);
#endif
Index: src/backend/port/dynloader/netbsd.c
===================================================================
RCS file: /home/projects/pgsql/cvsroot/pgsql/src/backend/port/dynloader/netbsd.c,v
retrieving revision 1.3
diff -c -r1.3 netbsd.c
*** src/backend/port/dynloader/netbsd.c 2001/02/10 02:31:26 1.3
--- src/backend/port/dynloader/netbsd.c 2001/04/01 08:01:20
***************
*** 63,69 ****
void *
BSD44_derived_dlopen(const char *file, int num)
{
! #if defined(__mips__) || (defined(__NetBSD__) && defined(__vax__))
sprintf(error_message, "dlopen (%s) not supported", file);
return NULL;
#else
--- 63,69 ----
void *
BSD44_derived_dlopen(const char *file, int num)
{
! #if defined(__mips__)
sprintf(error_message, "dlopen (%s) not supported", file);
return NULL;
#else
***************
*** 78,84 ****
void *
BSD44_derived_dlsym(void *handle, const char *name)
{
! #if defined(__mips__) || (defined(__NetBSD__) && defined(__vax__))
sprintf(error_message, "dlsym (%s) failed", name);
return NULL;
#elif defined(__ELF__)
--- 78,84 ----
void *
BSD44_derived_dlsym(void *handle, const char *name)
{
! #if defined(__mips__)
sprintf(error_message, "dlsym (%s) failed", name);
return NULL;
#elif defined(__ELF__)
***************
*** 101,107 ****
void
BSD44_derived_dlclose(void *handle)
{
! #if defined(__mips__) || (defined(__NetBSD__) && defined(__vax__))
#else
dlclose(handle);
#endif
--- 101,107 ----
void
BSD44_derived_dlclose(void *handle)
{
! #if defined(__mips__)
#else
dlclose(handle);
#endif
Index: src/backend/port/dynloader/openbsd.c
===================================================================
RCS file: /home/projects/pgsql/cvsroot/pgsql/src/backend/port/dynloader/openbsd.c,v
retrieving revision 1.3
diff -c -r1.3 openbsd.c
*** src/backend/port/dynloader/openbsd.c 2001/02/10 02:31:26 1.3
--- src/backend/port/dynloader/openbsd.c 2001/04/01 08:01:20
***************
*** 63,69 ****
void *
BSD44_derived_dlopen(const char *file, int num)
{
! #if defined(__mips__) || (defined(__NetBSD__) && defined(__vax__))
sprintf(error_message, "dlopen (%s) not supported", file);
return NULL;
#else
--- 63,69 ----
void *
BSD44_derived_dlopen(const char *file, int num)
{
! #if defined(__mips__)
sprintf(error_message, "dlopen (%s) not supported", file);
return NULL;
#else
***************
*** 78,84 ****
void *
BSD44_derived_dlsym(void *handle, const char *name)
{
! #if defined(__mips__) || (defined(__NetBSD__) && defined(__vax__))
sprintf(error_message, "dlsym (%s) failed", name);
return NULL;
#elif defined(__ELF__)
--- 78,84 ----
void *
BSD44_derived_dlsym(void *handle, const char *name)
{
! #if defined(__mips__)
sprintf(error_message, "dlsym (%s) failed", name);
return NULL;
#elif defined(__ELF__)
***************
*** 101,107 ****
void
BSD44_derived_dlclose(void *handle)
{
! #if defined(__mips__) || (defined(__NetBSD__) && defined(__vax__))
#else
dlclose(handle);
#endif
--- 101,107 ----
void
BSD44_derived_dlclose(void *handle)
{
! #if defined(__mips__)
#else
dlclose(handle);
#endif

-tih
--
The basic difference is this: hackers build things, crackers break them.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Pluto 2001-04-01 08:38:35 Re: Data access permission?
Previous Message Eric G. Miller 2001-04-01 05:56:50 Re: SELECT MAX question

Browse pgsql-hackers by date

  From Date Subject
Next Message Kaare Rasmussen 2001-04-01 08:32:07 PL/SQL and null
Previous Message Roberto Mello 2001-04-01 05:15:36 [pgsql-hackers-owner+M6959@postgresql.org: Majordomo Delivery Error]