[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#444214: konqueror-nsplugins: nspluginviewer crashes on amd64 (with explanation of the cause)



notfound 444214 4:3.5.7-4
thanks


On Wed, Sep 26, 2007 at 05:27:55PM -0400, Leon Bottou wrote:
> Package: konqueror-nsplugins
> Version: 4:3.5.5a.dfsg.1-6etch1
> Severity: grave
> Justification: renders package unusable
> 
> 
> Nspluginviewer crashes immediately on AMD64 
> without displaying anything.
> 
> Version 4:3.5.5a.dfsg.1-6etch1 of konqueror-nsplugins
> was apparently compiled using an ancient version
> of the netscape sdk that declares uint32 as long
> on all platforms except the alpha.
> This is obviously wrong on amd64.
> 
> Related upstream bug:
> http://bugs.kde.org/show_bug.cgi?id=150241
> 
> Fix:
>  Line 190 of npapi.h should be
>   #if defined(__alpha) || defined(__x86_64__) || defined(__LP64__)
>  instead of
>   #if defined(__alpha) 
>

This seems to be fine in KDE 3.5.7:

[...]

/*----------------------------------------------------------------------*/
/*         Definition of Basic Types        */
/*----------------------------------------------------------------------*/

#ifndef _UINT16
typedef unsigned short uint16;
#endif
#ifndef _UINT32
#if defined(__alpha) || defined(_AIX) || defined(__x86_64__) ||
defined(__LP64__)
typedef unsigned int uint32;
#else /* __alpha || _AIX || __x86_64__ || __LP64__ */
typedef unsigned long uint32;
#endif /* __alpha || _AIX || __x86_64__ || __LP64__ */
#endif
#ifndef _INT16
typedef short int16;
#endif
#ifndef _INT32
#if defined(__alpha) || defined(_AIX) || defined(__x86_64__) ||
defined(__LP64__)
typedef int int32;
#else /* __alpha || _AIX || __x86_64__ || __LP64__ */
typedef long int32;
#endif /* __alpha || _AIX || __x86_64__ || __LP64__ */
#endif


[...]





Reply to: