On Wed, Jan 12, 2005 at 07:36:52PM +0100, Reinhard Max wrote:
>
> The problem is, that the heimdal implementation of kerberos5 used on
> sles8 needs an extra include statement for com_err.h in
> src/interfaces/libpq/fe-auth.c to get the prototype for
> error_message(), while on newer SUSE-releases using the MIT Kerberos5
> implementation this prototype is provided by krb5.h itself.
[...]
> I am still not sure why the crash only happened on x86_64.
This is because the proper prototype is:
extern char const *error_message (long);
And C automaticly generates a prototype with in int instead.
On 32 bit platforms this ussualy isn't a problem since both int
and long are ussualy both 32 bit, but on x86_64 a long is 64 bit
while an int is only 32.
Kurt