bianliu1013 / musikcube

Automatically exported from code.google.com/p/musikcube
Other
0 stars 0 forks source link

win2000 support #79

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
"The procedure entry point freeaddrinfo oculd not be located in the dynamic
link library WS2_32.dll"

This error is fired on Win2000 after starting musikServer.exe

I wonder if the minimal required version for mC2 will be XP or Vista? It
would be a pity to know, because I discovered mC after foobar2000 abandoned
support for 2000.

Original issue reported on code.google.com by techtonik@gmail.com on 9 Dec 2008 at 12:38

GoogleCodeExporter commented 9 years ago
Although I haven't tried, but mC2 should work for win2000 as well.
It seems to be boost:asio related
http://daniel-albuschat.blogspot.com/2007/11/boostasio-visual-studio-2005-and.ht
ml

Original comment by onne...@gmail.com on 9 Dec 2008 at 12:46

GoogleCodeExporter commented 9 years ago
Unfortunately, a similar message is displayed by mC2.exe on startup. In this 
case it
could not locate getaddrinfo in the same library.

According to MSDN http://msdn.microsoft.com/en-us/library/ms738520(VS.85).aspx 
it
should be enough to include Wspiapi.h to make these functions work on Windows 
2000.

Original comment by techtonik@gmail.com on 9 Dec 2008 at 1:04

GoogleCodeExporter commented 9 years ago
I think the problem is that we have defined the _WIN32_WINNT to 0x0501 (XP).
I will try to define it to 0x0500 instead and see if that helps.

I do not have win2k installed. Can I send you an email to test the build when I 
have
the opportunity?

Original comment by onne...@gmail.com on 9 Dec 2008 at 1:20

GoogleCodeExporter commented 9 years ago
Sure. Use @gmail.com for contact.

Original comment by techtonik@gmail.com on 9 Dec 2008 at 2:01

GoogleCodeExporter commented 9 years ago
Seems to be plenty of work getting win2k support. Although there might be some 
way 
around this later. The main problem is the win32cpp namespace that is using 
plenty of 
XP specific defines.
I'll set low priority on this for now. We have other issues that are more 
important 
at the moment.

Original comment by onne...@gmail.com on 14 Dec 2008 at 11:23

GoogleCodeExporter commented 9 years ago
k. 
If the code depends on Windows API so heavily then I can foresee many problems 
with
porting to other platforms. 

Original comment by techtonik@gmail.com on 15 Dec 2008 at 7:42

GoogleCodeExporter commented 9 years ago
It's mostly the win32cpp namespace (wrapper for window handling) that is the 
problem.
And the win32cpp namespace is win32 specific. The core-part that handles all the
database, querying, tagging, playing, playlists, etc is written in a cross 
platform
manner and is easily ported. 
Porting of the musikServer to linux is already in progress :)

Original comment by onne...@gmail.com on 15 Dec 2008 at 8:52

GoogleCodeExporter commented 9 years ago
Seems like there is a solution to getaddrinfo/freeaddrinfo problem that makes it
impossible to run mc2 server on legacy w2k systems -
http://doxygen.postgresql.org/getaddrinfo_8c-source.html

Original comment by techtonik@gmail.com on 28 Feb 2009 at 12:13