[nut-Bugs][301880] amd64 support enhancement

nut-bugs at alioth.debian.org nut-bugs at alioth.debian.org
Sat Jan 6 03:32:23 CET 2007


Bugs item #301880, was opened at 2005-07-04 08:43
>Status: Closed
Priority: 5
Submitted By: Arnaud Quette (aquette)
Assigned to: Nobody (None)
Summary: amd64 support enhancement 
>Resolution: Works For Me
Group: None
Category: None


Initial Comment:
it seems the amd64 support is partly broken, as I (Arnaud) have received a report about MGE PSP compilation problem due to the prototypes in upsclient.h (upscli_get()). It seems linked to the "unsigned int" type.

From:
http://www.amd.com/us-en/assets/content_type/DownloadableAssets/Porting_x86_Linux_device_drivers_to_AMD64_Technology.htm

> ...
> The common x86 practice of using an unsigned int to represent a pointer
> causes the most bugs when recompiling drivers to AMD64 architecture.
> The correct Linux idiom is to use an unsigned long, which is defined to be
> the size of an general purpose register in the current architecture.

Thanks to Filiep Declerck for reporting it.


----------------------------------------------------------------------

>Comment By: Peter Selinger (selinger-guest)
Date: 2007-01-05 22:32

Message:
I just compiled NUT (r705) on my AMD64 machine, using -Wall,
and there were absolutely no compiler warnings related to
upsclient.h.

Newhidups, upsd, upsc, upscmd, and upsmon all ran without
complaints. 

I also did not see any typecasts from pointer to unsigned
int in upscli_get(). What is the proposed problem? Perhaps
there was a problem in an earlier obsolete NUT version? 

I am closing this bug report because it can't be verified. 
If re-submitting a bug report on this topic, please include
detailed information.

-- Peter

----------------------------------------------------------------------

Comment By: Arjen de Korte (adkorte-guest)
Date: 2007-01-04 12:07

Message:
The description is non specific. We need more info, for
instance the compiler warnings/errors.

----------------------------------------------------------------------

Comment By: Charles Lepple (clepple-guest)
Date: 2006-12-15 15:29

Message:
No patch attached, therefore this is a bug.

----------------------------------------------------------------------

You can respond by visiting: 
http://alioth.debian.org/tracker/?func=detail&atid=411542&aid=301880&group_id=30602



More information about the NUT-tracker mailing list