[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: swig problems on win32

From: Mats Nilsson <mats.nilsson_at_xware.se>
Date: 2002-10-31 15:43:46 CET

At 14:06 2002-10-30, Mats Nilsson wrote:
>I've built a static lib around swigutil_py.c and I've almost
>completed the dll corresponding to svn_client.i.
>
>The only thing I'm missing right now is the swigpy.lib to resolve some
>references to _SWIG_ConvertPtr and others.

Which turned out to have a simple quick'n-dirty fix. I added a file to my
swigutil_py project that #includes various parts of the SWIG distro.

After some more modifications to the .i files, I've finally managed to
build all the .pyd files. But, cvs2svn crashes during pass 4, so I gather
my changes were not entirely correct :-)

For one thing, the following snippet from apr.i seems wrong for windows/msvc:
         %apply long long { apr_time_t };

This causes the incompilable code to be emitted when processing util.i

On the other hand,
         %apply long *OUTPUT { apr_off_t * };
causes warnings during compilation of code generated from svn_fs.i, since
on windows, apr_off_t is an __int64.

So after fixing these problems by hand (apr_off_t -> long long in .i, and
replacing "long long" with corresponding apr_off_t, or apr_time_t in the
generated code), I run cvs2svn.py and get the following output.

C:\temp\svn\subversion\tools\cvs2svn>svnadmin create c:/temp/s1
C:\temp\svn\subversion\tools\cvs2svn>python cvs2svn.py -p 4 -s c:/temp/s1
-v c:/temp/cvsrepos/
----- pass 4 -----
committing: Mon Oct 30 18:00:34 2002, over 30 seconds
     changing 1.1 : /trunk/foo\bar.cpp
     making dir: /trunk/foo
     changing 1.1 : /trunk/foo\bar.h
Traceback (most recent call last):
   File "cvs2svn.py", line 702, in ?
     main()
   File "cvs2svn.py", line 699, in main
     util.run_app(convert, ctx, start_pass=start_pass)
   File "svn\util.py", line 38, in run_app
     return apply(func, (pool,) + args, kw)
   File "cvs2svn.py", line 632, in convert
     _passes[i](ctx)
   File "cvs2svn.py", line 589, in pass4
     c.commit(t_fs, ctx)
   File "cvs2svn.py", line 439, in commit
     author, log, date = self.get_metadata(c_pool)
   File "cvs2svn.py", line 310, in get_metadata
     a_t = util.apr_time_ansi_put(self.t_max)[1]
TypeError: Type error. Expected _p_time_t

By chance, does anyone know what this is about?

Thanks,

Mats

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 31 15:44:09 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.