mohandev2 / openhpi_old

Other
0 stars 0 forks source link

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

Open mohandev2 opened 14 years ago

mohandev2 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

Original Ticket: openhpi/bugs/1500

mohandev2 commented 14 years ago

Original comment by: sutula

mohandev2 commented 14 years ago

Original comment by: avpak

mohandev2 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