Made 0.99 work under Windows 2000!

"Mike Houwers" <[email protected]>
Newsgroups gmane.comp.gnome.apps.pan.devel
Message-ID <[email protected]>
(First post to the mailing list; hopefully don't screw anything up...)

I seem to have managed to get Pan 0.99 working under Windows 2000. I, like
everyone else who tried, ran into the freeaddrinfo not found when trying the
newer
versions. I spent a few hours getting the mingw etc. set up and installed.
Got
0.99 successfully built (only a few deviations from the README.mingw). Of
course,
ran into the same old freeaddrinfo error.

After a bit of Googling, I ran into
http://blogs.msdn.com/seshadripv/archive/2005/10/21/483408.aspx
which looked promising. So, I modified socket-impl-gio.cc to include
<WSPiApi.h>, which I apparently have since I have Visual Studio .NET 2005
installed. After a strange looking compile error, I messed around for a bit
and
got everything to compile. In socket-impl-gio.cc, I changed the line

#include <WS2tcpip.h>

to be

#define __inline extern inline
#include <WS2tcpip.h>
#include <WSPiApi.h>

(the #define seemed to be the key to get the WSPiApi.h file to include
successfully.
I also had to throw the WSPiApi.h file somewhere in the include path.)

Now, I can compile and run Pan 0.99 under Windows 2000. Haven't done much,
but it runs and it gets the list of groups from the server. The
WSPiApi.hfile appears
to implement the freeaddrinfo/getaddrinfo routines inline, which gets around
the
functions not existing in ws2_32.dll in Windows 2000 (and presumably NT).

I realize this isn't a real solution since it needs a header file from
VS.NET <http://vs.net/> in order
to work, but someone smarter than me may be able to get it into the MinGW
arena,
as it appears other header files based on MS files have been.

Again, I apologize if this is out of line, but perhaps this will be of some
use in the
effort to get newer versions of Pan running under non-Windows XP OSes.

If I can be of any further help, please feel free to ask. I'll help out in
any way I can.

mike houwers

_______________________________________________
Pan-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/pan-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.