Is windows a supported platform? The application I'm making is meant to run on both unix and windows boxes. I'm developing on windows because a big chunk of our clients use windows, plus I don't have a unix box set up with our environment handy where I'm at right now.

I'm willing to keep working on this, but if someone happened to email me a windows DLL so I can give it a shot, I wouldn't say no.

I excised (well, commented out)the poll stuff entirely, since it's only used in one part of nsproxy (Wait()) and I wanted to see if I could get it to compile. It next choked on some data types... The first is uint32_t and then unit16_t. I added those (cribbed from some cygwin include files) and it's now complaining about FatalExit, it appears to collide with some windows function (the error implies that it's redefined with new paramters). I'm not sure windows even has the poll() function (I think maybe you'd need to use select()? Not sure) so including that little chunk of the header file might not help. As I said above, I'm willing to temporarily remove the poll() reference if I can get it to compile.

Here's my error msg:

Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.

cl /EHsc /W3 /nologo /c /MD /O2 /D "_WINDOWS" /D "TCL_THREADS=1" /D "WI N32" /D "FD_SETSIZE=128" /D "NO_CONST=1" /D "_MBCS" /D "NDEBUG" /I "c:\dev\aols
erver\include" /I "c:\dev\aolserver\include" /c /Fonsproxylib.o nsproxylib.c
nsproxylib.c
nsproxylib.c(202) : error C2373: 'FatalExit' : redefinition; different type modi
fiers
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Inclu
de\WinBase.h(2305) : see declaration of 'FatalExit'
nsproxylib.c(261) : warning C4273: 'Ns_ProxyInit' : inconsistent dll linkage
nsproxylib.c(300) : warning C4273: 'Ns_ProxyMain' : inconsistent dll linkage
nsproxylib.c(330) : warning C4047: 'function' : 'int' differs in levels of indir
ection from 'char [4]'
nsproxylib.c(334) : warning C4047: 'function' : 'int' differs in levels of indir
ection from 'char [4]'
nsproxylib.c(338) : warning C4047: 'function' : 'int' differs in levels of indir
ection from 'char [5]'
nsproxylib.c(342) : warning C4047: 'function' : 'int' differs in levels of indir
ection from 'char [4]'
nsproxylib.c(352) : warning C4047: 'function' : 'int' differs in levels of indir
ection from 'char *'
nsproxylib.c(368) : warning C4047: 'function' : 'int' differs in levels of indir
ection from 'char [17]'
nsproxylib.c(391) : warning C4047: 'function' : 'int' differs in levels of indir
ection from 'char [15]'
nsproxylib.c(424) : warning C4273: 'Ns_ProxyCleanup' : inconsistent dll linkage
nsproxylib.c(1307) : error C2065: 'caddr_t' : undeclared identifier
nsproxylib.c(1307) : warning C4047: '=' : 'char *' differs in levels of indirect
ion from 'uint32_t'
nsproxylib.c(1312) : warning C4013: 'writev' undefined; assuming extern returnin
g int
nsproxylib.c(1351) : warning C4047: '=' : 'char *' differs in levels of indirect
ion from 'uint32_t'
nsproxylib.c(1356) : warning C4013: 'readv' undefined; assuming extern returning
int
nsproxylib.c(1449) : warning C4018: '>=' : signed/unsigned mismatch
nsproxylib.c(1547) : warning C4018: '>' : signed/unsigned mismatch
nsproxylib.c(1895) : error C2373: 'FatalExit' : redefinition; different type mod
ifiers
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Inclu
de\WinBase.h(2305) : see declaration of 'FatalExit'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.

Dossy Shiobara wrote:
On 2006.08.25, Rusty Brooks <[EMAIL PROTECTED]> wrote:
Maybe this is a Windows problem...

Very likely.  I don't think nsproxy was built on Win32 before we
released.  Oops.

nsproxy does not build by default on windows. Actually grepping through the files I don't think it gets built automatically on any platform since I don't see any mention of it in there anywhere.

Anyhow, I go into the nsproxy directory and try to compile it, and it's looking for "poll.h". I have this file in cygwin but I built AOLServer using Visual Studio so compiling the module in cygwin doesn't really work (using regular make that is)

OK, try replacing this (in nsproxy/nsproxylib.c):

#include <poll.h>

with this (from nsd/nsd.h):

#ifdef HAVE_POLL
  #include <poll.h>
#else
  #define POLLIN 1
  #define POLLOUT 2
  #define POLLPRI 4
  #define POLLHUP 8
  struct pollfd {
    int fd;
    short events;
    short revents;
  };
  extern int poll(struct pollfd *, unsigned long, int);
#endif

There may be other issues of getting this to build and even run on
Win32.  Lets figure it out.  :-)

-- Dossy



--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to