Skip site navigation (1) Skip section navigation (2)

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

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Stefan Lindner <lindner(at)visionet(dot)de>
Cc: <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 Solaris8
Date: 2002-04-15 18:38:32
Message-ID: Pine.LNX.4.30.0204151436310.834-100000@peter.localdomain (view raw or flat)
Thread:
Lists: pgsql-odbcpgsql-patches
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


In response to

Responses

pgsql-odbc by date

Next:From: Hiroshi InoueDate: 2002-04-16 10:28:27
Subject: Re: unexpected protocol charactor during authentication
Previous:From: Dave PageDate: 2002-04-15 13:54:46
Subject: psqlODBC 07.02.0001 (Win32) Released

pgsql-patches by date

Next:From: Rod TaylorDate: 2002-04-15 19:18:10
Subject: Re: Commands/ directory reorganisation
Previous:From: Neil ConwayDate: 2002-04-15 18:24:51
Subject: Re: Alter/update large tables - VERRRY annoying behaviour!

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group