You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Cooke, Mark" <ma...@siemens.com> on 2014/10/08 17:07:25 UTC
Where to ask for help compiling svn on windows?
Folks,
Where is the best place to get help compiling subversion (on windows 7)? Is it OK to post to the dev list or should I ask here first?
Specifically, I am trying to build subversion on windows 7 using Visual Studio 2012. I have got so far (I think I have httpd building OK with OpenSSL for example, I can run up httpd and connect to the server), but the libsvn_client_dll project is failing with:
LNK1181: cannot open input file 'D:\svn\src\Release\subversion\libsvn_ra\libsvn_ra-1.lib'
When I check for libsvn_ra-1.lib I can only find `d:\svn\src\release\subversion\libsvn_ra\svn_ra-1.lib` so it looks like the project files are wrong or I am missing something.
I built the project files using:
gen-make.py -t vcproj --vsnet-version=2012 --with-httpd=D:\svn\httpd --with-openssl=d:\svn\httpd\srclib\openssl --with-serf=d:\svn\serf --with-sqlite=d:\svn\sqlite --with-swig=c:\programs\swig --with-zlib=d:\svn\zlib
...and then tried to build the __ALL_TESTS__ target in (Win32) Release mode.
For background I have been following a combination of:
[1] http://blogs.collab.net/subversion/building-subversion-on-windows-a-walk-through
[2] http://httpd.apache.org/docs/current/platform/win_compiling.html
[3] https://www.apachehaus.net/build/buildapache.html
I have also seen [4] Ben's perl script but I am not familiar enough with perl to understand the script, and the build VM has no internet connection to connect to repos etc.
[4] http://svn.haxx.se/dev/archive-2013-04/0332.shtml
Any help appreciated!
~ Mark C
P.S. I am currently using Strawberry Perl (rather than ActiveState Perl), is that likely to be an issue?
RE: Where to ask for help compiling svn on windows?
Posted by "Cooke, Mark" <ma...@siemens.com>.
> -----Original Message-----
> From: Bert Huijben [mailto:bert@qqmail.nl]
> Sent: 09 October 2014 15:46
>
> > -----Original Message-----
> > From: Cooke, Mark [mailto:mark.cooke@siemens.com]
> > Sent: donderdag 9 oktober 2014 10:47
> >
> > > -----Original Message-----
> > > From: Bert Huijben [mailto:bert@qqmail.nl]
> > > Sent: 08 October 2014 17:18
> > >
> > > > -----Original Message-----
> > > > From: Cooke, Mark [mailto:mark.cooke@siemens.com]
> > > > Sent: woensdag 8 oktober 2014 17:07
> > > > To: users@subversion.apache.org
> > > > Subject: Where to ask for help compiling svn on windows?
> > > >
> > > > Specifically, I am trying to build subversion on windows 7 using
> Visual
> > > > Studio 2012. I have got so far (I think I have httpd building OK with
> > > > OpenSSL for example, I can run up httpd and connect to the server),
> but
> > > > the libsvn_client_dll project is failing with:
> > > >
> > > > LNK1181: cannot open input file
> > > > 'D:\svn\src\Release\subversion\libsvn_ra\libsvn_ra-1.lib'
> > > >
> > > > When I check for libsvn_ra-1.lib I can only find
> > > > `d:\svn\src\release\subversion\libsvn_ra\svn_ra-1.lib` so it looks
> like
> > > > the project files are wrong or I am missing something.
> > >
> > > If you are building with shared libraries (=without passing
> --disable-shared
> > > to gen-make.py), you should have both libraries.
> > >
> > > Most likely this error is caused by an earlier linkage error.
> > >
> > > Bert
> >
> > Thanks for the feedback, I was getting quite frazzled after two days
> slowly
> > assembling a build machine. I went back and did a full __ALL_TESTS__
> build
> > and got lots of errors, however sorting them gives me multiple instance of
> > just the following:
> >
> > LNK1181: cannot open input file 'serf-1.lib'
> > LNK1181: cannot open input file
> > 'D:\svn\src\Release\subversion\libsvn_ra\libsvn_ra-1.lib`
> > LNK1181: cannot open input file
> > 'D:\svn\src\Release\subversion\libsvn_client\libsvn_client-1.lib'
> > LNK1181: cannot open input file
> > 'D:\svn\src\Release\subversion\bindings\swig\python\libsvn_swig_py\libsv
> > n_swig_py-1.lib'
> >
> > ...plus...
> >
> > C1083: Cannot open include file: 'stdbool.h': No such file or directory
> > c:\strawberry\perl\lib\core\handy.h 77
> > C1083: Cannot open include file: 'ruby.h': No such file or directory
> > D:\svn\src\subversion\bindings\swig\ruby\svn_wc.c 821
> >
> > ....which I assume come from the perl or ruby bindings (I need neither).
> >
> > So it looks like I need to start with serf ~ did this used to be part of
> the
> > subversion build? [1] does not mention any build steps for serf so I
> assumed
> > it was built by svn. Checking the solution it looks not to be the case,
> though,
> > so I investigated further and find:
>
> We used to build serf from Subversion, but this is no longer possible after
> Serf switched to a new buildsystem. We now require building serf separately,
> before Subversion.
>
> Do you have a patch for the documentation?
Not yet, I am still working through my notes, then hopefully I will submit something to the list for review...
> >
> > http://mail-archives.apache.org/mod_mbox/subversion-
> > dev/201308.mbox/%3C00fc01ce9fe4$1c2bde80$54839b80$@qqmail.nl%3E
> >
> > ...so I now have serf and subversion built (Rebuild All: 89 succeeded, 0
> failed,
> > 0 skipped; running tests now).
> >
> > However, I am also seeing a _lot_ of warnings similar to:
> >
> > RC4011: identifier truncated to '_CRT_USE_WINAPI_FAMILY_DESKTOP_'
> > C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\string.h
> >
> > ...can you help with those? The search results I have so far were not
> very
> > enlightening.
>
> These warnings started a few VS versions back...
> This is caused by unnecessary inclusion of quite a few windows headers in
> the .rc file. (We only include a subset on trunk, which will eventually
> become 1.9).
> You can safely ignore the RC* errors if the build continues successful.
>
> They are only interesting for the generation of the win32 resources inside
> our DLLs. Not something a typical user cares about.
Thanks for the info. The build seems to have succeeded, I am now trying to configure httpd 2.4 to serve a test repo...
> For the swig bindings I would recommend only building the ones that you care
> about... They are not that well maintained on Windows. (We ignore quite a
> few errors on our buildbots).
>
> Patches welcome if you find out how to fix the problems though, :-)
I found the problem: I did not have the main svn libs in my system path. The Swig build (once I had forced it) was fine...
> (My involvement in the Subversion project started exactly in the same way as
> you work your way into it now...)
I make no promises! However, there used to be an "official" installer for windows, do you know if the maintainer ever published the "source" for that?
Or, is there a windows equivalent of "make install" for svn (or the InstallBin project in httpd), to collect all the executables etc into one place? I am trying to piece together what I will need to install from the build machine to a "production" server.
> Bert
> >
> > ~ mark c
>
RE: Where to ask for help compiling svn on windows?
Posted by Bert Huijben <be...@qqmail.nl>.
> -----Original Message-----
> From: Cooke, Mark [mailto:mark.cooke@siemens.com]
> Sent: donderdag 9 oktober 2014 10:47
> To: users@subversion.apache.org
> Cc: Bert Huijben
> Subject: RE: Where to ask for help compiling svn on windows?
>
> > -----Original Message-----
> > From: Bert Huijben [mailto:bert@qqmail.nl]
> > Sent: 08 October 2014 17:18
> >
> > > -----Original Message-----
> > > From: Cooke, Mark [mailto:mark.cooke@siemens.com]
> > > Sent: woensdag 8 oktober 2014 17:07
> > > To: users@subversion.apache.org
> > > Subject: Where to ask for help compiling svn on windows?
> > >
> > > Specifically, I am trying to build subversion on windows 7 using
Visual
> > > Studio 2012. I have got so far (I think I have httpd building OK with
> > > OpenSSL for example, I can run up httpd and connect to the server),
but
> > > the libsvn_client_dll project is failing with:
> > >
> > > LNK1181: cannot open input file
> > > 'D:\svn\src\Release\subversion\libsvn_ra\libsvn_ra-1.lib'
> > >
> > > When I check for libsvn_ra-1.lib I can only find
> > > `d:\svn\src\release\subversion\libsvn_ra\svn_ra-1.lib` so it looks
like
> > > the project files are wrong or I am missing something.
> >
> > If you are building with shared libraries (=without passing
--disable-shared
> > to gen-make.py), you should have both libraries.
> >
> > Most likely this error is caused by an earlier linkage error.
> >
> > Bert
>
> Thanks for the feedback, I was getting quite frazzled after two days
slowly
> assembling a build machine. I went back and did a full __ALL_TESTS__
build
> and got lots of errors, however sorting them gives me multiple instance of
> just the following:
>
> LNK1181: cannot open input file 'serf-1.lib'
> LNK1181: cannot open input file
> 'D:\svn\src\Release\subversion\libsvn_ra\libsvn_ra-1.lib`
> LNK1181: cannot open input file
> 'D:\svn\src\Release\subversion\libsvn_client\libsvn_client-1.lib'
> LNK1181: cannot open input file
> 'D:\svn\src\Release\subversion\bindings\swig\python\libsvn_swig_py\libsv
> n_swig_py-1.lib'
>
> ...plus...
>
> C1083: Cannot open include file: 'stdbool.h': No such file or directory
> c:\strawberry\perl\lib\core\handy.h 77
> C1083: Cannot open include file: 'ruby.h': No such file or directory
> D:\svn\src\subversion\bindings\swig\ruby\svn_wc.c 821
>
> ....which I assume come from the perl or ruby bindings (I need neither).
>
> So it looks like I need to start with serf ~ did this used to be part of
the
> subversion build? [1] does not mention any build steps for serf so I
assumed
> it was built by svn. Checking the solution it looks not to be the case,
though,
> so I investigated further and find:
We used to build serf from Subversion, but this is no longer possible after
Serf switched to a new buildsystem. We now require building serf separately,
before Subversion.
Do you have a patch for the documentation?
>
> http://mail-archives.apache.org/mod_mbox/subversion-
> dev/201308.mbox/%3C00fc01ce9fe4$1c2bde80$54839b80$@qqmail.nl%3E
>
> ...so I now have serf and subversion built (Rebuild All: 89 succeeded, 0
failed,
> 0 skipped; running tests now).
>
> However, I am also seeing a _lot_ of warnings similar to:
>
> RC4011: identifier truncated to '_CRT_USE_WINAPI_FAMILY_DESKTOP_'
> C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\string.h
>
> ...can you help with those? The search results I have so far were not
very
> enlightening.
These warnings started a few VS versions back...
This is caused by unnecessary inclusion of quite a few windows headers in
the .rc file. (We only include a subset on trunk, which will eventually
become 1.9).
You can safely ignore the RC* errors if the build continues successful.
They are only interesting for the generation of the win32 resources inside
our DLLs. Not something a typical user cares about.
For the swig bindings I would recommend only building the ones that you care
about... They are not that well maintained on Windows. (We ignore quite a
few errors on our buildbots).
Patches welcome if you find out how to fix the problems though, :-)
(My involvement in the Subversion project started exactly in the same way as
you work your way into it now...)
Bert
>
> ~ mark c
RE: Where to ask for help compiling svn on windows?
Posted by "Cooke, Mark" <ma...@siemens.com>.
> -----Original Message-----
> From: Bert Huijben [mailto:bert@qqmail.nl]
> Sent: 08 October 2014 17:18
>
> > -----Original Message-----
> > From: Cooke, Mark [mailto:mark.cooke@siemens.com]
> > Sent: woensdag 8 oktober 2014 17:07
> > To: users@subversion.apache.org
> > Subject: Where to ask for help compiling svn on windows?
> >
> > Specifically, I am trying to build subversion on windows 7 using Visual
> > Studio 2012. I have got so far (I think I have httpd building OK with
> > OpenSSL for example, I can run up httpd and connect to the server), but
> > the libsvn_client_dll project is failing with:
> >
> > LNK1181: cannot open input file
> > 'D:\svn\src\Release\subversion\libsvn_ra\libsvn_ra-1.lib'
> >
> > When I check for libsvn_ra-1.lib I can only find
> > `d:\svn\src\release\subversion\libsvn_ra\svn_ra-1.lib` so it looks like
> > the project files are wrong or I am missing something.
>
> If you are building with shared libraries (=without passing --disable-shared
> to gen-make.py), you should have both libraries.
>
> Most likely this error is caused by an earlier linkage error.
>
> Bert
Thanks for the feedback, I was getting quite frazzled after two days slowly assembling a build machine. I went back and did a full __ALL_TESTS__ build and got lots of errors, however sorting them gives me multiple instance of just the following:
LNK1181: cannot open input file 'serf-1.lib'
LNK1181: cannot open input file 'D:\svn\src\Release\subversion\libsvn_ra\libsvn_ra-1.lib`
LNK1181: cannot open input file 'D:\svn\src\Release\subversion\libsvn_client\libsvn_client-1.lib'
LNK1181: cannot open input file 'D:\svn\src\Release\subversion\bindings\swig\python\libsvn_swig_py\libsvn_swig_py-1.lib'
...plus...
C1083: Cannot open include file: 'stdbool.h': No such file or directory c:\strawberry\perl\lib\core\handy.h 77
C1083: Cannot open include file: 'ruby.h': No such file or directory D:\svn\src\subversion\bindings\swig\ruby\svn_wc.c 821
....which I assume come from the perl or ruby bindings (I need neither).
So it looks like I need to start with serf ~ did this used to be part of the subversion build? [1] does not mention any build steps for serf so I assumed it was built by svn. Checking the solution it looks not to be the case, though, so I investigated further and find:
http://mail-archives.apache.org/mod_mbox/subversion-dev/201308.mbox/%3C00fc01ce9fe4$1c2bde80$54839b80$@qqmail.nl%3E
...so I now have serf and subversion built (Rebuild All: 89 succeeded, 0 failed, 0 skipped; running tests now).
However, I am also seeing a _lot_ of warnings similar to:
RC4011: identifier truncated to '_CRT_USE_WINAPI_FAMILY_DESKTOP_' C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\string.h
...can you help with those? The search results I have so far were not very enlightening.
~ mark c
RE: Where to ask for help compiling svn on windows?
Posted by Bert Huijben <be...@qqmail.nl>.
> -----Original Message-----
> From: Cooke, Mark [mailto:mark.cooke@siemens.com]
> Sent: woensdag 8 oktober 2014 17:07
> To: users@subversion.apache.org
> Subject: Where to ask for help compiling svn on windows?
>
> Folks,
>
> Where is the best place to get help compiling subversion (on windows 7)?
Is
> it OK to post to the dev list or should I ask here first?
>
> Specifically, I am trying to build subversion on windows 7 using Visual
Studio
> 2012. I have got so far (I think I have httpd building OK with OpenSSL
for
> example, I can run up httpd and connect to the server), but the
> libsvn_client_dll project is failing with:
>
> LNK1181: cannot open input file
> 'D:\svn\src\Release\subversion\libsvn_ra\libsvn_ra-1.lib'
>
> When I check for libsvn_ra-1.lib I can only find
> `d:\svn\src\release\subversion\libsvn_ra\svn_ra-1.lib` so it looks like
the
> project files are wrong or I am missing something.
If you are building with shared libraries (=without passing --disable-shared
to gen-make.py), you should have both libraries.
Most likely this error is caused by an earlier linkage error.
Bert
>
> I built the project files using:
>
> gen-make.py -t vcproj --vsnet-version=2012 --with-httpd=D:\svn\httpd --
> with-openssl=d:\svn\httpd\srclib\openssl --with-serf=d:\svn\serf --with-
> sqlite=d:\svn\sqlite --with-swig=c:\programs\swig --with-zlib=d:\svn\zlib
>
> ...and then tried to build the __ALL_TESTS__ target in (Win32) Release
mode.
>
> For background I have been following a combination of:
> [1] http://blogs.collab.net/subversion/building-subversion-on-windows-a-
> walk-through
> [2] http://httpd.apache.org/docs/current/platform/win_compiling.html
> [3] https://www.apachehaus.net/build/buildapache.html
>
> I have also seen [4] Ben's perl script but I am not familiar enough with
perl to
> understand the script, and the build VM has no internet connection to
> connect to repos etc.
>
> [4] http://svn.haxx.se/dev/archive-2013-04/0332.shtml
>
> Any help appreciated!
>
> ~ Mark C
>
> P.S. I am currently using Strawberry Perl (rather than ActiveState Perl),
is that
> likely to be an issue?