You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Ante Blaskovic <an...@pakel.hr> on 2006/10/10 12:59:42 UTC
Error building python bindings with MS Visual C++ 6.0 for SVN 1.4.0
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<div class="moz-text-html" lang="x-western"> Hi,
<br>
<div class="moz-text-html" lang="x-western">
<div class="moz-text-flowed"
style="font-family: -moz-fixed; font-size: 13px;" lang="x-western"><br>
First of all, sorry to contact you personally but I allready sent two
mails to mailing list but I don't see them there.<br>
<br>
I'm having problems to build pyhon bindings, I got
<br>
error C2632: 'int' followed by 'int' is illegal
<br>
<br>
Using:
<br>
Microsoft Visual C++ 6.0
<br>
Microsoft Core SDK (FEB -2003)
<br>
Swigwin 1.3.25
<br>
Apache 2.2.3
<br>
Subversion 1.4.0
<br>
<br>
I build Apache and SVN from source, but I can not build paython
bindings. I read somewhere on your mailing list that VC 6.0 is not
compatible with SWIG 1.3.25., but is compatible with SWIG 1.3.21
<br>
SVN says about minimum requirement: swig 1.3.25
<br>
<br>
This is error message I receive:
<br>
<br>
C:\SVN\src-trunk>msdev subversion_msvc.dsw /USEENV /MAKE
"__SWIG_PYTHON__ - Win32 Release"
<br>
--------------------Configuration: zlib - Win32
Release--------------------
<br>
nmake /f win32\Makefile.msc ASFLAGS="-nologo -Zi -coff" LOC="-DASMV
-DASMINF" OBJA="gvmat32c.obj gvmat32.obj inffas32.obj" CFLAGS="/nologo
/W3 /FD /GX /DWIN32 /D_WINDOWS /MD /O2 /Zi $(LOC)"
STATICLIB=zlibstat.lib zlibstat.lib
<br>
'zlibstat.lib' is up-to-date
<br>
--------------------Configuration: neon - Win32
Release--------------------
<br>
--------------------Configuration: libsvn_swig_py - Win32
Release--------------------
<br>
Compiling...
<br>
swigutil_py.c
<br>
C:\Program Files\Microsoft SDK\Include\ws2tcpip.h(593) : error C2632:
'int' followed by 'int' is illegal
<br>
C:\Program Files\Microsoft SDK\Include\ws2tcpip.h(593) : warning C4091:
'typedef ' : ignored on left of 'int ' when no variable is declared
<br>
Error executing cl.exe.
<br>
<br>
__SWIG_PYTHON__ - 1 error(s), 1 warning(s)
<br>
<br>
<br>
Best regards,<br>
Ante Blaskovic<br>
<br>
</div>
<br>
</div>
</div>
</body>
</html>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Error building python bindings with MS Visual C++ 6.0 for
SVN1.4.0
Posted by Ante Blaskovic <an...@pakel.hr>.
Hi
> 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.
I applied patch for APR ( more info in SVN's INSTALL file)
> . Try commenting out their #define of socklen_t or fixing the
> conditional check.
This solved problem and error C2632: 'int' followed by 'int' is
illegal is now history :)
D.J. Heap, thank you for help
Best regards
Ante.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Error building python bindings with MS Visual C++ 6.0 for SVN 1.4.0
Posted by "D.J. Heap" <dj...@gmail.com>.
On 10/10/06, Ante Blaskovic <an...@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