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

Re: .swg files in subversion-1.3.0-rc2

From: Mathias Weinert <mathias.weinert_at_gfa-net.de>
Date: 2005-11-16 09:57:04 CET

james82@gmail.com wrote:
> On 11/15/05, Mathias Weinert <mathias.weinert@gfa-net.de> wrote:
> > I just downloaded rc2 of Subversion 1.3.0 (better late than
> > never ;) ) from lolut.utbm.info/pub/subversion-1.3.0/rc2
> > as proposed some days/weeks ago (I chose
> > subversion-1.3.0-rc2-nodeps.tar.bz2).
> >
> > When I wanted to build it under cygwin (including the
> > Subversion Perl) bindings I got some compile errors.
> > The solution to this was that the archive contains .swg
> > files in subversion/bindings/swig/proxy.
> > After removing these files everything went fine.
> What version of SWIG are you using? Also, which compiler are you
> using? What compile errors did you run into?
>

After 'make' I do 'make swig-pl' and get
the following (line breaks and extra lines added
for readability):

-----------------------------------

/usr/bin/python /tmp/subversion-1.3.0-rc2/build/
generator/swig/header_wrappers.py /tmp/subversion-1.3.0-rc2/
build.conf /usr/bin/swig /tmp/subversion-1.3.0-rc2/
subversion/include/svn_client.h

/usr/bin/python /tmp/subversion-1.3.0-rc2/build/
generator/swig/header_wrappers.py /tmp/subversion-1.3.0-rc2/
build.conf /usr/bin/swig /tmp/subversion-1.3.0-rc2/
subversion/include/svn_ra_svn.h

/usr/bin/python /tmp/subversion-1.3.0-rc2/build/
generator/swig/header_wrappers.py /tmp/subversion-1.3.0-rc2/
build.conf /usr/bin/swig /tmp/subversion-1.3.0-rc2/
subversion/include/svn_repos.h

/tmp/subversion-1.3.0-rc2/subversion/include/svn_client.h:329:
 Warning(451): Setting const char * member may leak memory.

/tmp/subversion-1.3.0-rc2/subversion/include/svn_client.h:378:
 Warning(451): Setting const char * member may leak memory.

/tmp/subversion-1.3.0-rc2/subversion/include/svn_client.h:2251:
 Warning(451): Setting const char * member may leak memory.

/usr/bin/python /tmp/subversion-1.3.0-rc2/build/
generator/swig/header_wrappers.py /tmp/subversion-1.3.0-rc2/
build.conf /usr/bin/swig /tmp/subversion-1.3.0-rc2/
subversion/include/svn_version.h

/tmp/subversion-1.3.0-rc2/subversion/include/svn_repos.h:1305:
 Warning(451): Setting const char * member may leak memory.

/tmp/subversion-1.3.0-rc2/subversion/include/svn_wc.h:1125:
 Warning(451): Setting const char * member may leak memory.

/usr/bin/swig -I/tmp/subversion-1.3.0-rc2/subversion/
bindings/swig -I/tmp/subversion-1.3.0-rc2/subversion/
bindings/swig/include -I/tmp/subversion-1.3.0-rc2/
subversion/bindings/swig/proxy -I/tmp/subversion-1.3.0-rc2/
subversion/bindings/swig/proxy -I/tmp/subversion-1.3.0-rc2/
subversion/include -I/usr/local/apr/include/apr-0
  -I/usr/include -perl -nopm -noproxy -w453
-o subversion/bindings/swig/perl/native/core.c
/tmp/subversion-1.3.0-rc2/subversion/bindings/swig/core.i

[...]

cp ../../../../../subversion/bindings/swig/perl/native/Client.pm
 blib/lib/SVN/Client.pm

gcc -c -I/usr/local/apr/include/apr-0 -I/usr/include
   -I../../../../../subversion/bindings/swig/perl/libsvn_swig_perl
  -I../../../../../subversion/include
  -I../../../../../subversion/bindings/swig
 -g -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe
 -I/usr/local/include -DUSEIMPORTLIB -O3
   -DVERSION=\"\" -DXS_VERSION=\"\" "-I/usr/lib/perl5/5.8/cygwin/CORE"
   core.c

core.c:104: error: syntax error before "int"

core.c:119: error: syntax error before "int"

core.c:138: error: syntax error before "int"

core.c:179: error: syntax error before "swig_cast_info"

[...]

make[1]: *** [core.o] Error 1

make[1]: Leaving directory `/tmp/subversion-1.3.0-rc2/
subversion/bindings/swig/perl/native'

make: *** [swig-pl] Error 2

-----------------------------------

core.c:104 says: SWIGRUNTIME int

And in core.c SWIGRUNTIME is defined as:

#ifndef SWIGRUNTIME
# define SWIGRUNTIME SWIGINTERN
#endif

If I rebuild all the .swg files I get:

#ifndef SWIGRUNTIME
#define SWIGRUNTIME static
#endif

instead in core.c.

FYI I am using SWIG Version 1.3.24 (under cygwin)

> Subversion 1.3.0rc2 has a few bugs in the ".swg" files which break
> compilation with GCC 2.95.x. I believe we have fixed these bugs in
> r17257, which will be included in the hopefully upcoming 1.3.0rc3.

I am using gcc 3.3.1.

>
> > I think you shouldn't include these files in the release
> > downloads (or did I miss something?).
> We now bundle the generated *.swg files in the Subversion tarball, so
> that users can build the Subversion SWIG bindings without having SWIG
> installed. It's a new feature in Subversion 1.3.0.
>

Okay, that sounds sensible.
But I wonder why the following files are not included?
svn_client.h.swg
svn_ra_svn.h.swg
svn_repos.h.swg
svn_version.h.swg
(see also the output of 'make swig-pl' above)

Mathias

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Nov 16 09:58:16 2005

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.