Re: [PATCHES] PostgreSQL 7.2.1 and Sun's C compiler under

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Stefan Lindner <lindner(at)visionet(dot)de>, <pgsql-patches(at)postgresql(dot)org>, <pgsql-odbc(at)postgresql(dot)org>
Subject: Re: [PATCHES] PostgreSQL 7.2.1 and Sun's C compiler under
Date: 2002-06-23 21:51:25
Message-ID: Pine.LNX.4.44.0206232255470.929-100000@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc pgsql-patches

Bruce Momjian writes:

> Did we ever get a reply to this from the ODBC folks?

Nope. Still open.

I'd really like to fix this and make the ODBC compile the default so we
can get more testing.

>
> ---------------------------------------------------------------------------
>
> Peter Eisentraut wrote:
> > I think we should get rid of the _init and _fini functions altogether,
> > because Solaris is not the only platform where this is a problem.
> > Evidently, there are already workarounds in place in case they don't work,
> > so it shouldn't be a problem to remove them. Let's see what the ODBC guys
> > say.
> >
> > Stefan Lindner writes:
> >
> > > Hi,
> > >
> > > PostgreSQL works well with this combination but with one modification:
> > >
> > > It will not compile with SunC Version 5.3 (no experience with other
> > > versions) unless
> > > you make the following change in file psqlodbc.c: remove the functions
> > > "_init" and "_fini". The crt.o library of Sun's C compiler contains this
> > > functions.
> > > This could be done by adding lines like
> > >
> > > #if !defined (__SUNPRO_C)
> > > ...
> > > #endif
> > >
> > > The attachement is a modified version of psqlodbc according to this
> > > suggestion
> > >
> > >
> > > Stefan Lindner
> > > ---
> > > Visionet GmbH, Am Weichselgarten 7, 91058 Erlangen
> > > Tel.: 09131/691230, FAX:09131/691111
> > > mailto:lindner(at)visionet(dot)de, http://www.visionet.de
> > >
> > > Beware of bugs in the above code; I have only proved it correct, not
> > > tried it. (Donald E. Knuth)
> > >
> >
> > --
> > Peter Eisentraut peter_e(at)gmx(dot)net
> >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 3: if posting/reading through Usenet, please send an appropriate
> > subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> > message can get through to the mailing list cleanly
> >
>
>

--
Peter Eisentraut peter_e(at)gmx(dot)net

In response to

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Bruce Momjian 2002-06-23 21:52:12 Re: [PATCHES] PostgreSQL 7.2.1 and Sun's C compiler under Solaris8
Previous Message Bruce Momjian 2002-06-22 23:34:51 Re: ODBC Patch to prevent setting of KSQO on 7.3+ servers

Browse pgsql-patches by date

  From Date Subject
Next Message Peter Eisentraut 2002-06-23 21:51:40 Re: show() function
Previous Message Peter Eisentraut 2002-06-23 21:49:55 Re: [PATCHES] pg_dumpall should permit quiet operation