openhpi2 / Open-HPI-base

Open HPI is an open source implementation of the SA Forum's Hardware Platform Interface (HPI). HPI provides an abstracted interface to managing computer hardware, typically for chassis and rack based servers
0 stars 1 forks source link

Sample fix to get py-openhpi 1.1 running on openhpi 2.14 #2203

Open openhpi2 opened 14 years ago

openhpi2 commented 14 years ago

As reported in an earlier post, py-openhpi version 1.1 does not compile on the latest linux releases (Centos, Fedora, etc...). the reason is because the code is created with a sahpi.i header file, then subsequently compiled against the sahpi.h header file installed on the system. currently it comes with openhpi 2.14.

One can either install an earlier version with all the complications we can imagine, or go into the sahpi.i file and make the following change: 2238d2237 < typedef SaHpiUint32T SaHpiDimiTotalTestsT; 2241c2240 < SaHpiDimiTotalTestsT NumberOfTests; /* It is recommended that the DIMI


> SaHpiUint32T NumberOfTests; /* It is recommended that the DIMI

Reported by: phipstrick

openhpi2 commented 14 years ago

Original comment by: sutula

openhpi2 commented 14 years ago

Original comment by: avpak

openhpi2 commented 14 years ago

Fixed in trunk (rev #7120)

I am not able to test the fix. Almost ignorant in Python. Could anyone verify it works?

Original comment by: avpak