On 10/10/06, Ante Blaskovic <ante.blaskovic@pakel.hr> wrote:
>
> Hi,
>
> First of all, sorry to contact you personally but I allready sent two
> mails to mailing list but I don't see them there.
>
> I'm having problems to build pyhon bindings, I got
> error C2632: 'int' followed by 'int' is illegal
>
> Using:
> Microsoft Visual C++ 6.0
> Microsoft Core SDK (FEB -2003)
> Swigwin 1.3.25
> Apache 2.2.3
> Subversion 1.4.0
Unless you have manually patched Apache 2.2.3 then you are going to
have trouble at runtime -- Apache 2.2.x needs a fix that has been
commited but not yet released in order to work with Subversion on
Windows.
[snip]
> --------------------Configuration: libsvn_swig_py - Win32
> Release--------------------
> Compiling...
> swigutil_py.c
> C:\Program Files\Microsoft SDK\Include\ws2tcpip.h(593) : error C2632: 'int'
> followed by 'int' is illegal
> C:\Program Files\Microsoft SDK\Include\ws2tcpip.h(593) : warning C4091:
> 'typedef ' : ignored on left of 'int ' when no variable is declared
> Error executing cl.exe.
>
> __SWIG_PYTHON__ - 1 error(s), 1 warning(s)
>
It looks like you are building against Python 2.4? I recall having to
tweak a Python header in order to get it to compile on VC6 (they
recommend using VS2003, IIRC) -- pyconfig.h where it conditionally
defines socklen_t. They are using the compiler version rather than
the SDK version to determine if they need to define socklen_t, which
doesn't work if you are using an older compiler with a newer SDK (like
you are). Try commenting out their #define of socklen_t or fixing the
conditional check.
DJ
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Oct 11 02:35:49 2006