News:

Latest versions:
Server plugin: 0.5.1
MVP dongle: 0.5.2
Raspberry Pi client: 0.5.2
Windows client: 0.5.2-1

Main Menu

vompserver on 64 bit machines. Very important fix

Started by sirwio, October 09, 2006, 20:04:22

Previous topic - Next topic

sirwio

Hi,

I just realized narrowing down the problems I've seen on my H3 mediamvp that the vompserver code isn't 64 bit compatible. Since a fair amount of my daily work is related to writing and porting code to new platforms I should have seen the fault at once.

The use of long as the type ULONG defined in defines.h is not very portable. The size of long differ between 32 bit platforms (ILP32) and 64 bit platforms (LP64). The long is 32 bits on ILP32 and 64 bits on LP64.

The quick fix for the vompserver is to change the ULONG define to be an unsigned int instead of an unsigned long in defines.h. I recompiled my vompserver, that runs on an 64 bit machine, with this change and voila now livetv, recordings, epg etc works like a charm. Even the windows vompclient began to work!!!

Someone need to go over the code with regard to 64 bit machine compability in mind and post a better patch. I will probably do so over the days but encourage others to work on the issue as well.

- Magnus S.