|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
|
|||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Error building python bindings with MS Visual C++ 6.0 for SVN 1.4.0
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 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 SVN says about minimum requirement: swig 1.3.25 This is error message I receive: C:\SVN\src-trunk>msdev subversion_msvc.dsw /USEENV /MAKE "__SWIG_PYTHON__ - Win32 Release" --------------------Configuration: zlib - Win32 Release-------------------- 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 'zlibstat.lib' is up-to-date --------------------Configuration: neon - Win32 Release-------------------- --------------------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) Best regards, Ante Blaskovic --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe (AT) subversion (DOT) tigris.org For additional commands, e-mail: users-help (AT) subversion (DOT) tigris.org |
|
#2
|
|||
|
|||
|
No Subject
10/10/06, Ante Blaskovic <ante.blaskovic (AT) pakel (DOT) hrwrote:
> 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] 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_PYTHN__ - 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 (AT) subversion (DOT) tigris.org For additional commands, e-mail: users-help (AT) subversion (DOT) tigris.org |
|
#3
|
|||
|
|||
|
No Subject
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 (AT) subversion (DOT) tigris.org For additional commands, e-mail: users-help (AT) subversion (DOT) tigris.org |
![]() |
| Viewing: Web Development Archives > Mailing Lists > Development > Error building python bindings with MS Visual C++ 6.0 for SVN 1.4.0 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|