You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Paul Burba <pa...@softlanding.com> on 2006/07/12 19:04:50 UTC

Building and Testing Python, Perl, and Ruby Bindings

I recently set up a dedicated Windows environment for testing RCs.  Right 
now I test [ fsfs | bdb ] x [ file | svn | http ] but not any of the 
bindings.  I had some time so figured why not be a good citizen and set 
things up to test the Python, Perl, and Ruby bindings too?  I don't really 
know much about SWIG, but hey, there are directions at 
subversion/bindings/swig/INSTALL, so it can't be that hard right?

The first three steps in "BUILDING SWIG BINDINGS FOR SVN ON WINDOWS" are 
straightforward, but when I try to build Subversion I have problems with 
all of the swig_*.dsp project files, they seem to be created ok, but msdev 
chokes on them:

C:\SVN\src-trunk>vc6-build.bat
Configuring for VC-WIN32
<snip>
**** RUN GEN-MAKE.PY *****
Found libdb44.lib in db4-win32\lib
Found installed perl version number.
  Perl bindings will be linked with perl58.lib
Found installed SWIG version 1.3.29
Using SWIG library directory C:\SVN\SWIG\Lib
Found ML, ZLib build will use ASM sources
Found neon version 0.24.7
Configuring apr-util library...
perl "..\httpd-2.0.54\srclib\apr-util\build\w32locatedb.pl" dll 
"db4-win32\include" "db4-win32\lib"
Using BDB version 4.4.20
No changes in C:\SVN\httpd-2.0.54\srclib\apr-util\include\apu.hw
No changes in C:\SVN\httpd-2.0.54\srclib\apr-util\include\apu_want.hw
No changes in 
C:\SVN\httpd-2.0.54\srclib\apr-util\include\private\apu_select_dbm.hw
No changes in C:\SVN\httpd-2.0.54\srclib\apr-util\aprutil.dsp
No changes in C:\SVN\httpd-2.0.54\srclib\apr-util\libaprutil.dsp
Wrote: build\win32\msvc-dsp\swig_perl_client_msvc.dsp
Wrote: build\win32\msvc-dsp\swig_perl_core_msvc.dsp
Wrote: build\win32\msvc-dsp\swig_perl_delta_msvc.dsp
Wrote: build\win32\msvc-dsp\swig_perl_fs_msvc.dsp
Wrote: build\win32\msvc-dsp\swig_perl_ra_msvc.dsp
Wrote: build\win32\msvc-dsp\swig_perl_repos_msvc.dsp
Wrote: build\win32\msvc-dsp\swig_perl_wc_msvc.dsp
Wrote: build\win32\msvc-dsp\swig_python_client_msvc.dsp
Wrote: build\win32\msvc-dsp\swig_python_core_msvc.dsp
Wrote: build\win32\msvc-dsp\swig_python_delta_msvc.dsp
Wrote: build\win32\msvc-dsp\swig_python_fs_msvc.dsp
Wrote: build\win32\msvc-dsp\swig_python_ra_msvc.dsp
Wrote: build\win32\msvc-dsp\swig_python_repos_msvc.dsp
Wrote: build\win32\msvc-dsp\swig_python_wc_msvc.dsp
Wrote: build\win32\msvc-dsp\swig_ruby_client_msvc.dsp
Wrote: build\win32\msvc-dsp\swig_ruby_core_msvc.dsp
Wrote: build\win32\msvc-dsp\swig_ruby_delta_msvc.dsp
Wrote: build\win32\msvc-dsp\swig_ruby_fs_msvc.dsp
Wrote: build\win32\msvc-dsp\swig_ruby_ra_msvc.dsp
Wrote: build\win32\msvc-dsp\swig_ruby_repos_msvc.dsp
Wrote: build\win32\msvc-dsp\swig_ruby_wc_msvc.dsp
**** BUILD APACHE *****
<snip>
--------------------Configuration: BuildBin - Win32 
Release--------------------
Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
-----
mod_ssl and ab/ssl will not build unless openssl is installed
in srclib\openssl. They must be precompiled using the
ms/ntdll.mak file, see srclib\openssl\INSTALL.W32. The most
recent version confirmed to build with mod_ssl and ab is 0.9.6h.
Available from http://www.openssl.org/
-----
mod_deflate will not build unless zlib is installed in srclib\zlib.
zlib does not need to be built, we compile the sources directly.
Available from http://www.gzip.org/zlib/

Apache.exe - 0 error(s), 0 warning(s)
**** BUILD SUBVERSION *****
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_perl_client_msvc.dsp 
has been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_perl_core_msvc.dsp has 
been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_perl_delta_msvc.dsp 
has been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_perl_fs_msvc.dsp has 
been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_perl_ra_msvc.dsp has 
been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_perl_repos_msvc.dsp 
has been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_perl_wc_msvc.dsp has 
been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_python_client_msvc.dsp 
has been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_python_core_msvc.dsp 
has been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_python_delta_msvc.dsp 
has been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_python_fs_msvc.dsp has 
been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_python_ra_msvc.dsp has 
been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_python_repos_msvc.dsp 
has been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_python_wc_msvc.dsp has 
been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_ruby_client_msvc.dsp 
has been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_ruby_core_msvc.dsp has 
been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_ruby_delta_msvc.dsp 
has been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_ruby_fs_msvc.dsp has 
been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_ruby_ra_msvc.dsp has 
been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_ruby_repos_msvc.dsp 
has been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_ruby_wc_msvc.dsp has 
been modified and cannot be loaded as a Developer Studio project.
<snip>
--------------------Configuration: __ALL_TESTS__ - Win32 
Release--------------------

__ALL_TESTS__ - 0 error(s), 0 warning(s)
<snip>

I'm at a loss as to what is wrong here, any Windows users experience this 
problem before or have any idea as to what might be wrong?

Paul B. 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Building and Testing Python, Perl, and Ruby Bindings

Posted by "D.J. Heap" <dj...@gmail.com>.
After some irc discussion and more testing, swig 1.3.25 basically
works for me in VS2003 and VS2005 if I comment out the generated
#warning lines (I still get a warning about top_srcdir being
undefined).

The generated .dsp files for VC6 look ok to me (don't have VC6 handy
to test), but there is some really really really long lines for the
USERDEP__=  parameters which may be a problem and the top_srcdir
variable can't be helping either.  I'll try tracking down a copy of
VC6 and fiddling with this if I have time (could be next week,
though).

DJ

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Building and Testing Python, Perl, and Ruby Bindings

Posted by "D.J. Heap" <dj...@gmail.com>.
On 7/12/06, David James <dj...@collab.net> wrote:
[snip]
>
> Have you tried building Subversion with SWIG 1.3.25? These problems
> involving  the #error and #warning preprocessor directive only occur
> with SWIG 1.3.26 or later.
>


With 1.3.25 I get:

------ Build started: Project: swig_python_core, Configuration:
Release Win32 ------
Performing Custom Build Step
c:\Projects\Subversion\subversion\bindings\swig\core.i(585): Error:
Unable to find 'svn_error_codes_h.swg'
c:\Projects\Subversion\subversion\bindings\swig\core.i(586): Error:
Unable to find 'svn_time_h.swg'
c:\Projects\Subversion\subversion\bindings\swig\core.i(587): Error:
Unable to find 'svn_types_h.swg'
c:\Projects\Subversion\subversion\bindings\swig\core.i(588): Error:
Unable to find 'svn_pools_h.swg'
c:\Projects\Subversion\subversion\bindings\swig\core.i(589): Error:
Unable to find 'svn_version_h.swg'
c:\Projects\Subversion\subversion\bindings\swig\core.i(595): Error:
Unable to find 'svn_props_h.swg'
c:\Projects\Subversion\subversion\bindings\swig\core.i(598): Error:
Unable to find 'svn_opt_h.swg'
c:\Projects\Subversion\subversion\bindings\swig\core.i(599): Error:
Unable to find 'svn_auth_h.swg'
c:\Projects\Subversion\subversion\bindings\swig\core.i(600): Error:
Unable to find 'svn_config_h.swg'
c:\Projects\Subversion\subversion\bindings\swig\core.i(601): Error:
Unable to find 'svn_utf_h.swg'
c:\Projects\Subversion\subversion\bindings\swig\core.i(602): Error:
Unable to find 'svn_nls_h.swg'
c:\Projects\Subversion\subversion\bindings\swig\core.i(603): Error:
Unable to find 'svn_path_h.swg'
c:\Projects\Subversion\subversion\bindings\swig\core.i(604): Error:
Unable to find 'svn_io_h.swg'
Project : error PRJ0019: A tool returned an error code from
"Performing Custom Build Step"
Project : warning PRJ0018 : The following environment variables were not found:
$(top_srcdir)

I thought I remembered a commit or something saying we'd dropped
support for older swigs.

DJ

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Building and Testing Python, Perl, and Ruby Bindings

Posted by David James <dj...@collab.net>.
On 7/12/06, D.J. Heap <dj...@gmail.com> wrote:
> On 7/12/06, D.J. Heap <dj...@gmail.com> wrote:
> > C:\Apps\swig\Lib\exception.i(11): Error: CPP #error ""This version of
> > exception.i should not be used"". Use the -cpperraswarn option to
> > continue swig processing.
>
> If I manually tweak the project to add -cpperraswarn and get rid of
> $(top_srcdir), then I get down to:
>
> Compiling...
> core.c
> ..\..\..\subversion\bindings\swig\python\core.c(8285) : fatal error
> C1021: invalid preprocessor command 'warning'
>
> Is #warning a GCCism?  The MS compiler doesn't seem to like it at all.
>  Maybe its been longer than I thought since I last tried the bindings.

Have you tried building Subversion with SWIG 1.3.25? These problems
involving  the #error and #warning preprocessor directive only occur
with SWIG 1.3.26 or later.

Cheers,

David
-- 
David James -- http://www.cs.toronto.edu/~james

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Building and Testing Python, Perl, and Ruby Bindings

Posted by "D.J. Heap" <dj...@gmail.com>.
On 7/12/06, D.J. Heap <dj...@gmail.com> wrote:
> On 7/12/06, Paul Burba <pa...@softlanding.com> wrote:
> > I recently set up a dedicated Windows environment for testing RCs.  Right
> > now I test [ fsfs | bdb ] x [ file | svn | http ] but not any of the
> > bindings.  I had some time so figured why not be a good citizen and set
> > things up to test the Python, Perl, and Ruby bindings too?  I don't really
> > know much about SWIG, but hey, there are directions at
> > subversion/bindings/swig/INSTALL, so it can't be that hard right?
> >
> > The first three steps in "BUILDING SWIG BINDINGS FOR SVN ON WINDOWS" are
> > straightforward, but when I try to build Subversion I have problems with
> > all of the swig_*.dsp project files, they seem to be created ok, but msdev
> > chokes on them:
> >
>
>
> Yes, it looks like swig on Win32 has been broken relatively recently.
> I built and played with the python bindings not too long ago (couple
> months I think).  But now I get errors with the vcproj build as well:
>
> ------ Build started: Project: swig_python_core, Configuration:
> Release Win32 ------
> Performing Custom Build Step
> C:\Apps\swig\Lib\exception.i(11): Error: CPP #error ""This version of
> exception.i should not be used"". Use the -cpperraswarn option to
> continue swig processing.
> Project : error PRJ0019: A tool returned an error code from
> "Performing Custom Build Step"
> Project : warning PRJ0018 : The following environment variables were not found:
> $(top_srcdir)
>


If I manually tweak the project to add -cpperraswarn and get rid of
$(top_srcdir), then I get down to:

Compiling...
core.c
..\..\..\subversion\bindings\swig\python\core.c(8285) : fatal error
C1021: invalid preprocessor command 'warning'

Is #warning a GCCism?  The MS compiler doesn't seem to like it at all.
 Maybe its been longer than I thought since I last tried the bindings.

DJ

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Building and Testing Python, Perl, and Ruby Bindings

Posted by "D.J. Heap" <dj...@gmail.com>.
On 7/12/06, Paul Burba <pa...@softlanding.com> wrote:
> I recently set up a dedicated Windows environment for testing RCs.  Right
> now I test [ fsfs | bdb ] x [ file | svn | http ] but not any of the
> bindings.  I had some time so figured why not be a good citizen and set
> things up to test the Python, Perl, and Ruby bindings too?  I don't really
> know much about SWIG, but hey, there are directions at
> subversion/bindings/swig/INSTALL, so it can't be that hard right?
>
> The first three steps in "BUILDING SWIG BINDINGS FOR SVN ON WINDOWS" are
> straightforward, but when I try to build Subversion I have problems with
> all of the swig_*.dsp project files, they seem to be created ok, but msdev
> chokes on them:
>


Yes, it looks like swig on Win32 has been broken relatively recently.
I built and played with the python bindings not too long ago (couple
months I think).  But now I get errors with the vcproj build as well:

------ Build started: Project: swig_python_core, Configuration:
Release Win32 ------
Performing Custom Build Step
C:\Apps\swig\Lib\exception.i(11): Error: CPP #error ""This version of
exception.i should not be used"". Use the -cpperraswarn option to
continue swig processing.
Project : error PRJ0019: A tool returned an error code from
"Performing Custom Build Step"
Project : warning PRJ0018 : The following environment variables were not found:
$(top_srcdir)

DJ

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Building and Testing Python, Perl, and Ruby Bindings

Posted by "D.J. Heap" <dj...@gmail.com>.
On 7/26/06, Paul Burba <pa...@softlanding.com> wrote:
[snip]
>
> A quick update:
>
> Building 1.4.x r20780 (i.e. RC4) on my regular (non-virtual) machine and
> using swig 1.3.25, I was able to build the Python bindings with only the
> top_srcdir warning.  So now it's a *simple* matter of figuring out how my
> VM and regular machines differ :-P  I'm putting this aside for a while,
> but when I eventually track down the problem I'll post an explanation.


Sounds good.


>
> I was also able to build the Perl bindings with only the top_srcdir
> warning as well (with r20826 applied).  And while I was at it, I looked at
> r20190, r20250, and r20444 too.  I voted for all but 20250.  I'm not
> familiar enough with gen-win.py to judge this last one, but I was able to
> build and test without any problems so I gave it +0.
>

Ok, thanks!

DJ

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Building and Testing Python, Perl, and Ruby Bindings

Posted by Andreas Magnusson <an...@home.se>.
Paul Burba wrote:
>> Make sure that they don't have LF line-endings. That is the only thing 
>> that I know of that will trigger that error. (Stupid by the Studio as 
>> well, since it *can* handle source code with LF line-endings.)
>>
>> /Andreas
> 
> Hi Andreas,
> 
> I did read your original post suggesting line endings as the source of my 
> problems back on 7/27/06 and checked the line endings in the swig_*.dsp 
> files at that point.  All were CRLF, so that's not the problem.  Sorry, I 
> should have indicated that I ruled that out earlier.
> 
> Paul B.

That's OK, just trying to help :-) And since its not that, I cannot 
offer any more help ... Best of luck.

/Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Building and Testing Python, Perl, and Ruby Bindings

Posted by Paul Burba <pa...@softlanding.com>.
news <ne...@sea.gmane.org> wrote on 11/02/2006 03:59:27 PM:

> Paul Burba wrote:
> > Paul Burba <pa...@softlanding.com> wrote on 11/01/2006 12:22:29 PM:
> > 
> >> DJ,
> >>
> >> Case Closed:
> >>
> >> While testing the 1.4.1 zips the other day I was reminded of this 
> > problem:
> >> "C:\SVN\src-trunk\build\win32\msvc-dsp\swig_*_msvc.dsp has been 
modified 
> > 
> >> and cannot be loaded as a Developer Studio project."
> >>
> >> I glanced back at this thread, and there it was, staring me in the 
face, 
> > 
> >> you said: "I'm using VS6 with Service Pack 6"...
> >>
> >> My regular machine had SP6 installed, but sure enough my virtual 
machine 
> > 
> >> didn't -- I wish MS made it simpler to know what MSVC SP is 
installed, 
> > but 
> >> that's another story...
> >>
> >> Anyway, I installed SP6 and the above problem disappeared.
> >>
> >> May someone someday have the same problem, find this thread, and 
rejoice 
> > 
> >> :-) 
> >>
> >> Paul B. 
> > 
> > Oh @#$@!, shoot me please.  Ignore my fevered ramblings.  I was 
watching 
> > the build screen and saw that the project files were *written* 
> > successfully, they still bomb out when loaded.  I'm going to go crawl 
> > under a rock now.
> 
> Make sure that they don't have LF line-endings. That is the only thing 
> that I know of that will trigger that error. (Stupid by the Studio as 
> well, since it *can* handle source code with LF line-endings.)
> 
> /Andreas

Hi Andreas,

I did read your original post suggesting line endings as the source of my 
problems back on 7/27/06 and checked the line endings in the swig_*.dsp 
files at that point.  All were CRLF, so that's not the problem.  Sorry, I 
should have indicated that I ruled that out earlier.

Paul B.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Building and Testing Python, Perl, and Ruby Bindings

Posted by Andreas Magnusson <an...@home.se>.
Paul Burba wrote:
> Paul Burba <pa...@softlanding.com> wrote on 11/01/2006 12:22:29 PM:
> 
>> DJ,
>>
>> Case Closed:
>>
>> While testing the 1.4.1 zips the other day I was reminded of this 
> problem:
>> "C:\SVN\src-trunk\build\win32\msvc-dsp\swig_*_msvc.dsp has been modified 
> 
>> and cannot be loaded as a Developer Studio project."
>>
>> I glanced back at this thread, and there it was, staring me in the face, 
> 
>> you said: "I'm using VS6 with Service Pack 6"...
>>
>> My regular machine had SP6 installed, but sure enough my virtual machine 
> 
>> didn't -- I wish MS made it simpler to know what MSVC SP is installed, 
> but 
>> that's another story...
>>
>> Anyway, I installed SP6 and the above problem disappeared.
>>
>> May someone someday have the same problem, find this thread, and rejoice 
> 
>> :-) 
>>
>> Paul B. 
> 
> Oh @#$@!, shoot me please.  Ignore my fevered ramblings.  I was watching 
> the build screen and saw that the project files were *written* 
> successfully, they still bomb out when loaded.  I'm going to go crawl 
> under a rock now.

Make sure that they don't have LF line-endings. That is the only thing 
that I know of that will trigger that error. (Stupid by the Studio as 
well, since it *can* handle source code with LF line-endings.)

/Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Building and Testing Python, Perl, and Ruby Bindings

Posted by Paul Burba <pa...@softlanding.com>.
Paul Burba <pa...@softlanding.com> wrote on 11/01/2006 12:22:29 PM:

> DJ,
> 
> Case Closed:
> 
> While testing the 1.4.1 zips the other day I was reminded of this 
problem:
> 
> "C:\SVN\src-trunk\build\win32\msvc-dsp\swig_*_msvc.dsp has been modified 

> and cannot be loaded as a Developer Studio project."
> 
> I glanced back at this thread, and there it was, staring me in the face, 

> you said: "I'm using VS6 with Service Pack 6"...
> 
> My regular machine had SP6 installed, but sure enough my virtual machine 

> didn't -- I wish MS made it simpler to know what MSVC SP is installed, 
but 
> that's another story...
> 
> Anyway, I installed SP6 and the above problem disappeared.
> 
> May someone someday have the same problem, find this thread, and rejoice 

> :-) 
> 
> Paul B. 

Oh @#$@!, shoot me please.  Ignore my fevered ramblings.  I was watching 
the build screen and saw that the project files were *written* 
successfully, they still bomb out when loaded.  I'm going to go crawl 
under a rock now.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Building and Testing Python, Perl, and Ruby Bindings

Posted by Paul Burba <pa...@softlanding.com>.
Paul Burba <pa...@softlanding.com> wrote on 07/26/2006 09:42:01 AM:

> "D.J. Heap" <dj...@gmail.com> wrote on 07/24/2006 04:44:16 PM:
> 
> > On 7/24/06, Paul Burba <pa...@softlanding.com> wrote:
> > [snip]
> > >
> > > Thanks for taking a look, unfortunately the problems you found with
> > > $(top_srcdir), #error, and #warning appear unrelated to my swig
> > > difficulties.  I tried 1.3.25, but building with VC++6.0 gives the 
> same
> > > errors:
> > >
> > > Found installed SWIG version 1.3.25
> > > Using SWIG library directory C:\SVN\SWIG\Lib
> > > Found ML, ZLib build will use ASM sources
> > > Found neon version 0.25.5
> > > Configuring apr-util library...
> > > perl "..\httpd-2.0.58\srclib\apr-util\build\w32locatedb.pl" dll
> > > "db4-win32\include" "db4-win32\lib"
> > > Using BDB version 4.4.20
> > [snip]
> > > The file 
> C:\SVN\src-trunk\build\win32\msvc-dsp\swig_ruby_repos_msvc.dsp
> > > has been modified and cannot be loaded as a Developer Studio 
project.
> > > The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_ruby_wc_msvc.dsp 

> has
> > > been modified and cannot be loaded as a Developer Studio project.
> > >
> > > I've googled, altavistaed, lycosed, and otherwise yahooed this error
> > > message to within an inch of its life and haven't found anything 
> helpful
> > > except some vague discussion of dsp file corruption due to line 
ending
> > > problems.
> > >
> > > I don't imagine this matters, but I'm running these tests on a 
VMWare
> > > virtual machine.  I remain completely baffled at the moment but will
> > > continue to look into this.
> > 
> > 
> > Very strange -- I'm running everything under VMWare Workstation 5.5.1,
> > by the way, so that doesn't seem likely to be the problem.  I'm using
> > VS6 with Service Pack 6 with the latest Platform SDK and not seeing
> > any problems aside from the top_srcdir warning anymore.
> > 
> > Actually, I did have to tweak a Python header to comment out a line
> > that was defining socklen_t or something like that -- the lastest
> > Platform SDK typedef's it which was conflicting with Python's #define.
> > 
> > Anyway, if you figure out anything else please share.
> 
> A quick update:
> 
> Building 1.4.x r20780 (i.e. RC4) on my regular (non-virtual) machine and 

> using swig 1.3.25, I was able to build the Python bindings with only the 

> top_srcdir warning.  So now it's a *simple* matter of figuring out how 
my 
> VM and regular machines differ :-P  I'm putting this aside for a while, 
> but when I eventually track down the problem I'll post an explanation.

DJ,

Case Closed:

While testing the 1.4.1 zips the other day I was reminded of this problem:

"C:\SVN\src-trunk\build\win32\msvc-dsp\swig_*_msvc.dsp has been modified 
and cannot be loaded as a Developer Studio project."

I glanced back at this thread, and there it was, staring me in the face, 
you said: "I'm using VS6 with Service Pack 6"...

My regular machine had SP6 installed, but sure enough my virtual machine 
didn't -- I wish MS made it simpler to know what MSVC SP is installed, but 
that's another story...

Anyway, I installed SP6 and the above problem disappeared.

May someone someday have the same problem, find this thread, and rejoice 
:-) 

Paul B. 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Building and Testing Python, Perl, and Ruby Bindings

Posted by Paul Burba <pa...@softlanding.com>.
"D.J. Heap" <dj...@gmail.com> wrote on 07/24/2006 04:44:16 PM:

> On 7/24/06, Paul Burba <pa...@softlanding.com> wrote:
> [snip]
> >
> > Thanks for taking a look, unfortunately the problems you found with
> > $(top_srcdir), #error, and #warning appear unrelated to my swig
> > difficulties.  I tried 1.3.25, but building with VC++6.0 gives the 
same
> > errors:
> >
> > Found installed SWIG version 1.3.25
> > Using SWIG library directory C:\SVN\SWIG\Lib
> > Found ML, ZLib build will use ASM sources
> > Found neon version 0.25.5
> > Configuring apr-util library...
> > perl "..\httpd-2.0.58\srclib\apr-util\build\w32locatedb.pl" dll
> > "db4-win32\include" "db4-win32\lib"
> > Using BDB version 4.4.20
> [snip]
> > The file 
C:\SVN\src-trunk\build\win32\msvc-dsp\swig_ruby_repos_msvc.dsp
> > has been modified and cannot be loaded as a Developer Studio project.
> > The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_ruby_wc_msvc.dsp 
has
> > been modified and cannot be loaded as a Developer Studio project.
> >
> > I've googled, altavistaed, lycosed, and otherwise yahooed this error
> > message to within an inch of its life and haven't found anything 
helpful
> > except some vague discussion of dsp file corruption due to line ending
> > problems.
> >
> > I don't imagine this matters, but I'm running these tests on a VMWare
> > virtual machine.  I remain completely baffled at the moment but will
> > continue to look into this.
> 
> 
> Very strange -- I'm running everything under VMWare Workstation 5.5.1,
> by the way, so that doesn't seem likely to be the problem.  I'm using
> VS6 with Service Pack 6 with the latest Platform SDK and not seeing
> any problems aside from the top_srcdir warning anymore.
> 
> Actually, I did have to tweak a Python header to comment out a line
> that was defining socklen_t or something like that -- the lastest
> Platform SDK typedef's it which was conflicting with Python's #define.
> 
> Anyway, if you figure out anything else please share.

A quick update:

Building 1.4.x r20780 (i.e. RC4) on my regular (non-virtual) machine and 
using swig 1.3.25, I was able to build the Python bindings with only the 
top_srcdir warning.  So now it's a *simple* matter of figuring out how my 
VM and regular machines differ :-P  I'm putting this aside for a while, 
but when I eventually track down the problem I'll post an explanation.

I was also able to build the Perl bindings with only the top_srcdir 
warning as well (with r20826 applied).  And while I was at it, I looked at 
r20190, r20250, and r20444 too.  I voted for all but 20250.  I'm not 
familiar enough with gen-win.py to judge this last one, but I was able to 
build and test without any problems so I gave it +0. 

Paul B.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Building and Testing Python, Perl, and Ruby Bindings

Posted by "D.J. Heap" <dj...@gmail.com>.
On 7/24/06, Paul Burba <pa...@softlanding.com> wrote:
[snip]
>
> Thanks for taking a look, unfortunately the problems you found with
> $(top_srcdir), #error, and #warning appear unrelated to my swig
> difficulties.  I tried 1.3.25, but building with VC++6.0 gives the same
> errors:
>
> Found installed SWIG version 1.3.25
> Using SWIG library directory C:\SVN\SWIG\Lib
> Found ML, ZLib build will use ASM sources
> Found neon version 0.25.5
> Configuring apr-util library...
> perl "..\httpd-2.0.58\srclib\apr-util\build\w32locatedb.pl" dll
> "db4-win32\include" "db4-win32\lib"
> Using BDB version 4.4.20
[snip]
> The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_ruby_repos_msvc.dsp
> has been modified and cannot be loaded as a Developer Studio project.
> The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_ruby_wc_msvc.dsp has
> been modified and cannot be loaded as a Developer Studio project.
>
> I've googled, altavistaed, lycosed, and otherwise yahooed this error
> message to within an inch of its life and haven't found anything helpful
> except some vague discussion of dsp file corruption due to line ending
> problems.
>
> I don't imagine this matters, but I'm running these tests on a VMWare
> virtual machine.  I remain completely baffled at the moment but will
> continue to look into this.


Very strange -- I'm running everything under VMWare Workstation 5.5.1,
by the way, so that doesn't seem likely to be the problem.  I'm using
VS6 with Service Pack 6 with the latest Platform SDK and not seeing
any problems aside from the top_srcdir warning anymore.

Actually, I did have to tweak a Python header to comment out a line
that was defining socklen_t or something like that -- the lastest
Platform SDK typedef's it which was conflicting with Python's #define.

Anyway, if you figure out anything else please share.

Thanks!

DJ

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Building and Testing Python, Perl, and Ruby Bindings

Posted by Andreas Magnusson <an...@home.se>.
Paul Burba wrote:
> "D.J. Heap" <dj...@gmail.com> wrote on 07/22/2006 01:28:33 PM:
> 
>> On 7/12/06, Paul Burba <pa...@softlanding.com> wrote:
>> [snip]
>>> **** BUILD SUBVERSION *****
>>> The file 
> C:\SVN\src-trunk\build\win32\msvc-dsp\swig_perl_client_msvc.dsp
>>> has been modified and cannot be loaded as a Developer Studio project.
>>> The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_perl_core_msvc.dsp 
> has
>>> been modified and cannot be loaded as a Developer Studio project.
>>
>> Are you still seeing these weird errors, Paul?  I'm able to build the
>> python bindings in VC6 with just the $top_srcdir warnings.  Perl is
>> still broken with:
> 
> DJ,
> 
> Thanks for taking a look, unfortunately the problems you found with 
> $(top_srcdir), #error, and #warning appear unrelated to my swig 
> difficulties.  I tried 1.3.25, but building with VC++6.0 gives the same 
> errors: 
> 
> Found installed SWIG version 1.3.25
> Using SWIG library directory C:\SVN\SWIG\Lib
> Found ML, ZLib build will use ASM sources
> Found neon version 0.25.5
> Configuring apr-util library...
> perl "..\httpd-2.0.58\srclib\apr-util\build\w32locatedb.pl" dll 
> "db4-win32\include" "db4-win32\lib"
> Using BDB version 4.4.20
> <snip>
> Wrote: build\win32\msvc-dsp\swig_python_client_msvc.dsp
> Wrote: build\win32\msvc-dsp\swig_python_core_msvc.dsp
> Wrote: build\win32\msvc-dsp\swig_python_delta_msvc.dsp
> Wrote: build\win32\msvc-dsp\swig_python_fs_msvc.dsp
> Wrote: build\win32\msvc-dsp\swig_python_ra_msvc.dsp
> Wrote: build\win32\msvc-dsp\swig_python_repos_msvc.dsp
> Wrote: build\win32\msvc-dsp\swig_python_wc_msvc.dsp
> <snip>
> The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_perl_client_msvc.dsp 
> has been modified and cannot be loaded as a Developer Studio project.
> The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_perl_core_msvc.dsp has 
> been modified and cannot be loaded as a Developer Studio project.
> The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_perl_delta_msvc.dsp 
> has been modified and cannot be loaded as a Developer Studio project.
> The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_perl_fs_msvc.dsp has 
> been modified and cannot be loaded as a Developer Studio project.
> The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_perl_ra_msvc.dsp has 
> been modified and cannot be loaded as a Developer Studio project.
> The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_perl_repos_msvc.dsp 
> has been modified and cannot be loaded as a Developer Studio project.
> The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_perl_wc_msvc.dsp has 
> been modified and cannot be loaded as a Developer Studio project.
> The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_python_client_msvc.dsp 
> has been modified and cannot be loaded as a Developer Studio project.
> The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_python_core_msvc.dsp 
> has been modified and cannot be loaded as a Developer Studio project.
> The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_python_delta_msvc.dsp 
> has been modified and cannot be loaded as a Developer Studio project.
> The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_python_fs_msvc.dsp has 
> been modified and cannot be loaded as a Developer Studio project.
> The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_python_ra_msvc.dsp has 
> been modified and cannot be loaded as a Developer Studio project.
> The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_python_repos_msvc.dsp 
> has been modified and cannot be loaded as a Developer Studio project.
> The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_python_wc_msvc.dsp has 
> been modified and cannot be loaded as a Developer Studio project.
> The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_ruby_client_msvc.dsp 
> has been modified and cannot be loaded as a Developer Studio project.
> The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_ruby_core_msvc.dsp has 
> been modified and cannot be loaded as a Developer Studio project.
> The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_ruby_delta_msvc.dsp 
> has been modified and cannot be loaded as a Developer Studio project.
> The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_ruby_fs_msvc.dsp has 
> been modified and cannot be loaded as a Developer Studio project.
> The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_ruby_ra_msvc.dsp has 
> been modified and cannot be loaded as a Developer Studio project.
> The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_ruby_repos_msvc.dsp 
> has been modified and cannot be loaded as a Developer Studio project.
> The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_ruby_wc_msvc.dsp has 
> been modified and cannot be loaded as a Developer Studio project. 
> 
> I've googled, altavistaed, lycosed, and otherwise yahooed this error 
> message to within an inch of its life and haven't found anything helpful 
> except some vague discussion of dsp file corruption due to line ending 
> problems.
> 
> I don't imagine this matters, but I'm running these tests on a VMWare 
> virtual machine.  I remain completely baffled at the moment but will 
> continue to look into this.
> 
> Paul B.
> 
> ...\..\..\subversion\bindings\swig\perl\libsvn_swig_perl\swigutil_pl.h(38)
>> : fatal error C1083: Cannot open include file: 'svn_private_config.h':
>> No such file or directory
>> Error executing cl.exe.
>>
>> which is odd, but I get the same in VS2005 and at least the VC6
>> project files appear to be loading fine.  Ruby and JavaHL I haven't
>> tried.  If you are still using swig 1.3.29 you could try 1.3.25.
>>
>> DJ

Check once more if the generated .dsp files have LF line-endings. VC++6 
absolutely HATES LF line-endings (but only in .dsp files). Those are the 
only problems I've had in the past that could translate to your problem.

/Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Building and Testing Python, Perl, and Ruby Bindings

Posted by Paul Burba <pa...@softlanding.com>.
"D.J. Heap" <dj...@gmail.com> wrote on 07/22/2006 01:28:33 PM:

> On 7/12/06, Paul Burba <pa...@softlanding.com> wrote:
> [snip]
> > **** BUILD SUBVERSION *****
> > The file 
C:\SVN\src-trunk\build\win32\msvc-dsp\swig_perl_client_msvc.dsp
> > has been modified and cannot be loaded as a Developer Studio project.
> > The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_perl_core_msvc.dsp 
has
> > been modified and cannot be loaded as a Developer Studio project.
> 
> 
> Are you still seeing these weird errors, Paul?  I'm able to build the
> python bindings in VC6 with just the $top_srcdir warnings.  Perl is
> still broken with:

DJ,

Thanks for taking a look, unfortunately the problems you found with 
$(top_srcdir), #error, and #warning appear unrelated to my swig 
difficulties.  I tried 1.3.25, but building with VC++6.0 gives the same 
errors: 

Found installed SWIG version 1.3.25
Using SWIG library directory C:\SVN\SWIG\Lib
Found ML, ZLib build will use ASM sources
Found neon version 0.25.5
Configuring apr-util library...
perl "..\httpd-2.0.58\srclib\apr-util\build\w32locatedb.pl" dll 
"db4-win32\include" "db4-win32\lib"
Using BDB version 4.4.20
<snip>
Wrote: build\win32\msvc-dsp\swig_python_client_msvc.dsp
Wrote: build\win32\msvc-dsp\swig_python_core_msvc.dsp
Wrote: build\win32\msvc-dsp\swig_python_delta_msvc.dsp
Wrote: build\win32\msvc-dsp\swig_python_fs_msvc.dsp
Wrote: build\win32\msvc-dsp\swig_python_ra_msvc.dsp
Wrote: build\win32\msvc-dsp\swig_python_repos_msvc.dsp
Wrote: build\win32\msvc-dsp\swig_python_wc_msvc.dsp
<snip>
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_perl_client_msvc.dsp 
has been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_perl_core_msvc.dsp has 
been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_perl_delta_msvc.dsp 
has been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_perl_fs_msvc.dsp has 
been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_perl_ra_msvc.dsp has 
been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_perl_repos_msvc.dsp 
has been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_perl_wc_msvc.dsp has 
been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_python_client_msvc.dsp 
has been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_python_core_msvc.dsp 
has been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_python_delta_msvc.dsp 
has been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_python_fs_msvc.dsp has 
been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_python_ra_msvc.dsp has 
been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_python_repos_msvc.dsp 
has been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_python_wc_msvc.dsp has 
been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_ruby_client_msvc.dsp 
has been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_ruby_core_msvc.dsp has 
been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_ruby_delta_msvc.dsp 
has been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_ruby_fs_msvc.dsp has 
been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_ruby_ra_msvc.dsp has 
been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_ruby_repos_msvc.dsp 
has been modified and cannot be loaded as a Developer Studio project.
The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_ruby_wc_msvc.dsp has 
been modified and cannot be loaded as a Developer Studio project. 

I've googled, altavistaed, lycosed, and otherwise yahooed this error 
message to within an inch of its life and haven't found anything helpful 
except some vague discussion of dsp file corruption due to line ending 
problems.

I don't imagine this matters, but I'm running these tests on a VMWare 
virtual machine.  I remain completely baffled at the moment but will 
continue to look into this.

Paul B.

> 
..\..\..\subversion\bindings\swig\perl\libsvn_swig_perl\swigutil_pl.h(38)
> : fatal error C1083: Cannot open include file: 'svn_private_config.h':
> No such file or directory
> Error executing cl.exe.
> 
> which is odd, but I get the same in VS2005 and at least the VC6
> project files appear to be loading fine.  Ruby and JavaHL I haven't
> tried.  If you are still using swig 1.3.29 you could try 1.3.25.
> 
> DJ

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Building and Testing Python, Perl, and Ruby Bindings

Posted by "D.J. Heap" <dj...@gmail.com>.
On 7/12/06, Paul Burba <pa...@softlanding.com> wrote:
[snip]
> **** BUILD SUBVERSION *****
> The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_perl_client_msvc.dsp
> has been modified and cannot be loaded as a Developer Studio project.
> The file C:\SVN\src-trunk\build\win32\msvc-dsp\swig_perl_core_msvc.dsp has
> been modified and cannot be loaded as a Developer Studio project.


Are you still seeing these weird errors, Paul?  I'm able to build the
python bindings in VC6 with just the $top_srcdir warnings.  Perl is
still broken with:

..\..\..\subversion\bindings\swig\perl\libsvn_swig_perl\swigutil_pl.h(38)
: fatal error C1083: Cannot open include file: 'svn_private_config.h':
No such file or directory
Error executing cl.exe.

which is odd, but I get the same in VS2005 and at least the VC6
project files appear to be loading fine.  Ruby and JavaHL I haven't
tried.  If you are still using swig 1.3.29 you could try 1.3.25.

DJ

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org