Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old November 24th, 2006, 06:31 PM
Ante Blaskovic
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
  #2  
Old November 25th, 2006, 08:31 AM
D.J. Heap
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
  #3  
Old November 25th, 2006, 08:10 PM
Ante Blaskovic
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
Reply

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 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek