You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Robert Dailey <rc...@gmail.com> on 2009/06/27 00:10:40 UTC

Question about building APR-UTIL

Hey guys,
For Subversion's specific needs, do I need to build every C file under
apr-util/dbd? There's one C file for every type of database (mysql, sqlite,
etc), and it seems like I would be required to have all of those database
APIs installed on my system in order to fully build APR-UTIL this way.

Thanks.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2365873

Re: Question about building APR-UTIL

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Robert Dailey wrote on Sat, 27 Jun 2009 at 23:01 -0500:
> On Sat, Jun 27, 2009 at 5:49 PM, Branko Čibej <br...@xbc.nu> wrote:
> > Aren't you wasting your time just a bit? Subversion does include a
> > build-file generator that'll create project files for, IIRC, every
> > version of Microsoft compiler from VC6 onwards. Pretty much the same is
> > true of APR; witness the fact that a fair number of people are building
> > Subversion on Windows, and there's also a script used on buildbots that
> > automates the whole shebang.
> >
> > Going from scratch with CMake will quite likely give you a splitting
> > headache, and no-one in their right mind would want to help with that. :-P
> 
> 
> Well the whole reason why I'm going down the path of CMake is because all of
> the documentation I've read so far does not help me out. I can't get help
> from anyone on any mailing list, and the documentation is unreliable. What
> other choice do I have? I'd end up wasting more time shuffling around files
> in subversion trying to get what I want.
> 
> If you would be so kind as to tell me exactly what I need to do to build
> subversion on Windows, I'd appreciate it. Obviously the README isn't helping
> one bit since it says to use vc6-build.bat, which does not function. I also
> need to be able to build subversion in any directory (Not just naively
> C:\SVN like the vc6-build.bat script expects). I need to tell subversion
> where APR is, and all the rest of its dependencies. This was very doable
> when I built subversion for linux, because of the --using-apr command line
> parameters and such.
> 

I don't know what INSTALL says, but how I build is

    python gen-make.py --snip
    $(MSBUILD) /t:__ALL__
    copy *.exe and *.dll (including apr/openssl/etc.) to the same folder

and the buildbot scripts (mentioned earlier) are at ^/trunk/tools/buildbot/.

> Instructions for Windows would be essential. I do not want to waste my time
> with CMake if there is already a portable solution available. It has been my
> understanding from personal research that people have had to create their
> own custom build scripts for Subversion, such as the TortoiseSVN project I
> believe.
> 
> I have to admit this is getting frustrating, so I do apologize if I've been
> rude. This is like my 5th time to revisit this issue and for the past few
> months I have not been able to build Subversion on Windows. I'm in desperate
> need of help.
> 
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2366034

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2366055

Re: Question about building APR-UTIL

Posted by Robert Dailey <rc...@gmail.com>.
2009/6/28 Joseph Galbraith <ga...@vandyke.com>

> Robert Dailey wrote:
>
>> On Sat, Jun 27, 2009 at 5:49 PM, Branko Čibej <brane@xbc.nu <mailto:
>> brane@xbc.nu>> wrote:
>>
>>    Robert Dailey wrote:
>>     > On Fri, Jun 26, 2009 at 8:13 PM, Branko Čibej <brane@xbc.nu
>>    <ma...@xbc.nu>
>>     > <mailto:brane@xbc.nu <ma...@xbc.nu>>> wrote:
>>     >
>>     >     Robert Dailey wrote:
>>     >     > Reason why I'm asking is because I've setup a couple of CMake
>>     >     scripts
>>     >     > to provide a means to build APR, APR-UTIL, and APR-ICONV.
>>     >     >
>>     >     > The less files I have to build to meet the requirements of
>>     >     Subversion,
>>     >     > the better. It would be great if you guys could tell me
>> exactly
>>     >     which
>>     >     > source files I need to build in all 3 APR libraries. I know
>>    that
>>     >     > Subversion uses apr_pool, but not sure about anything else.
>>     >     > Unfortunately the only way I'm going to be able to tell is
>>    through
>>     >     > missing symbol linker error later on when I try to link
>>    against the
>>     >     > subversion library.
>>     >
>>     >     Uh, sorry, if you're doing your own build scripts, then
>>    you're pretty
>>     >     much on your own ... especially as the list of files you have to
>>     >     compile
>>     >     will differ from platform to platform. For any one partiular
>>    platform,
>>     >     "nm" or local equivalent will tell you (almost) all you need
>>    to know.
>>     >
>>     >     AFAIK no-one has ever compiled a list of minimal required
>>    sources from
>>     >     APR; doesn't really make sense, we just recommend a
>>    particular set of
>>     >     apr(-util) versions.
>>     >
>>     >
>>     > I had to just to get APR building on Windows. They had some NMAKE
>>     > scripts already, but those did not function. I have all 3 APR
>>     > libraries building right now, so we'll see if they contain all of
>> the
>>     > code needed for Subversion when I build it later on. I'm going to be
>>     > creating CMake scripts for Subversion next, since the vc6-build.bat
>>     > file is ancient and broken as well :)
>>     >
>>     > If I get it somewhat functional, I will submit it to the Subversion
>>     > library. You guys can either choose to take it or leave it at that
>>     > point, but I absolutely need to do this to make it easier for people
>>     > (particularly myself) to build Subversion on Windows.
>>     >
>>     > Thanks for your help.
>>
>>    Aren't you wasting your time just a bit? Subversion does include a
>>    build-file generator that'll create project files for, IIRC, every
>>    version of Microsoft compiler from VC6 onwards. Pretty much the same is
>>    true of APR; witness the fact that a fair number of people are building
>>    Subversion on Windows, and there's also a script used on buildbots that
>>    automates the whole shebang.
>>
>>    Going from scratch with CMake will quite likely give you a splitting
>>    headache, and no-one in their right mind would want to help with
>>    that. :-P
>>
>>
>> Well the whole reason why I'm going down the path of CMake is because all
>> of the documentation I've read so far does not help me out. I can't get help
>> from anyone on any mailing list, and the documentation is unreliable. What
>> other choice do I have? I'd end up wasting more time shuffling around files
>> in subversion trying to get what I want.
>>
>> If you would be so kind as to tell me exactly what I need to do to build
>> subversion on Windows, I'd appreciate it.
>>
>
> I suspect the reason you aren't getting the answers you'd like
> is because nobody just knows the answers off the top of their
> head.  They'd have to do exactly what they are telling you to
> do: go figure out the existing build scripts and analyze what
> they do.
>
> > Obviously the README isn't
>
>> helping one bit since it says to use vc6-build.bat, which does not
>> function. I also need to be able to build subversion in any directory (Not
>> just naively C:\SVN like the vc6-build.bat script expects). I need to tell
>> subversion where APR is, and all the rest of its dependencies.
>>
>
> I'm not sure which README you are refering to; the one I saw
> in http://svn.collab.net/repos/svn/trunk/README doesn't seem
> to mention vc6-build.bat.
>
> However, did you look at the instructions in the INSTALL file?  They
> look pretty complete to me (and I have used them in the past to get a
> successful build.)


Yes, it was the INSTALL file I was looking at, sorry for the confusion. I
was viewing this one:
http://svn.collab.net/repos/svn/trunk/INSTALL

If you look at the "Building the Latest Source under Windows" section,
you'll see that it references vc6-built.bat in the section labeled "E.4
Building the Binaries".

Thanks to the help I've gotten so far, I now know about the buildbot script
files that are used on Windows. I had no idea that these existed before,
since I never saw any reading materials that mentioned them. I'll definitely
be looking into these quite a bit more and I'll hopefully be on my way to
building Subversion.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2366148

Re: Question about building APR-UTIL

Posted by Joseph Galbraith <ga...@vandyke.com>.
Robert Dailey wrote:
> On Sat, Jun 27, 2009 at 5:49 PM, Branko Čibej <brane@xbc.nu 
> <ma...@xbc.nu>> wrote:
> 
>     Robert Dailey wrote:
>      > On Fri, Jun 26, 2009 at 8:13 PM, Branko Čibej <brane@xbc.nu
>     <ma...@xbc.nu>
>      > <mailto:brane@xbc.nu <ma...@xbc.nu>>> wrote:
>      >
>      >     Robert Dailey wrote:
>      >     > Reason why I'm asking is because I've setup a couple of CMake
>      >     scripts
>      >     > to provide a means to build APR, APR-UTIL, and APR-ICONV.
>      >     >
>      >     > The less files I have to build to meet the requirements of
>      >     Subversion,
>      >     > the better. It would be great if you guys could tell me exactly
>      >     which
>      >     > source files I need to build in all 3 APR libraries. I know
>     that
>      >     > Subversion uses apr_pool, but not sure about anything else.
>      >     > Unfortunately the only way I'm going to be able to tell is
>     through
>      >     > missing symbol linker error later on when I try to link
>     against the
>      >     > subversion library.
>      >
>      >     Uh, sorry, if you're doing your own build scripts, then
>     you're pretty
>      >     much on your own ... especially as the list of files you have to
>      >     compile
>      >     will differ from platform to platform. For any one partiular
>     platform,
>      >     "nm" or local equivalent will tell you (almost) all you need
>     to know.
>      >
>      >     AFAIK no-one has ever compiled a list of minimal required
>     sources from
>      >     APR; doesn't really make sense, we just recommend a
>     particular set of
>      >     apr(-util) versions.
>      >
>      >
>      > I had to just to get APR building on Windows. They had some NMAKE
>      > scripts already, but those did not function. I have all 3 APR
>      > libraries building right now, so we'll see if they contain all of the
>      > code needed for Subversion when I build it later on. I'm going to be
>      > creating CMake scripts for Subversion next, since the vc6-build.bat
>      > file is ancient and broken as well :)
>      >
>      > If I get it somewhat functional, I will submit it to the Subversion
>      > library. You guys can either choose to take it or leave it at that
>      > point, but I absolutely need to do this to make it easier for people
>      > (particularly myself) to build Subversion on Windows.
>      >
>      > Thanks for your help.
> 
>     Aren't you wasting your time just a bit? Subversion does include a
>     build-file generator that'll create project files for, IIRC, every
>     version of Microsoft compiler from VC6 onwards. Pretty much the same is
>     true of APR; witness the fact that a fair number of people are building
>     Subversion on Windows, and there's also a script used on buildbots that
>     automates the whole shebang.
> 
>     Going from scratch with CMake will quite likely give you a splitting
>     headache, and no-one in their right mind would want to help with
>     that. :-P
> 
> 
> Well the whole reason why I'm going down the path of CMake is because 
> all of the documentation I've read so far does not help me out. I can't 
> get help from anyone on any mailing list, and the documentation is 
> unreliable. What other choice do I have? I'd end up wasting more time 
> shuffling around files in subversion trying to get what I want.
> 
> If you would be so kind as to tell me exactly what I need to do to build 
> subversion on Windows, I'd appreciate it.

I suspect the reason you aren't getting the answers you'd like
is because nobody just knows the answers off the top of their
head.  They'd have to do exactly what they are telling you to
do: go figure out the existing build scripts and analyze what
they do.

 > Obviously the README isn't
> helping one bit since it says to use vc6-build.bat, which does not 
> function. I also need to be able to build subversion in any directory 
> (Not just naively C:\SVN like the vc6-build.bat script expects). I need 
> to tell subversion where APR is, and all the rest of its dependencies. 

I'm not sure which README you are refering to; the one I saw
in http://svn.collab.net/repos/svn/trunk/README doesn't seem
to mention vc6-build.bat.

However, did you look at the instructions in the INSTALL file?  They
look pretty complete to me (and I have used them in the past to get a
successful build.)

Thanks,

Jospeh

> This was very doable when I built subversion for linux, because of the 
> --using-apr command line parameters and such.
> 
> Instructions for Windows would be essential. I do not want to waste my 
> time with CMake if there is already a portable solution available. It 
> has been my understanding from personal research that people have had to 
> create their own custom build scripts for Subversion, such as the 
> TortoiseSVN project I believe.
> 
> I have to admit this is getting frustrating, so I do apologize if I've 
> been rude. This is like my 5th time to revisit this issue and for the 
> past few months I have not been able to build Subversion on Windows. I'm 
> in desperate need of help.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2366096


Re: Question about building APR-UTIL

Posted by Robert Dailey <rc...@gmail.com>.
On Sat, Jun 27, 2009 at 5:49 PM, Branko Čibej <br...@xbc.nu> wrote:

> Robert Dailey wrote:
> > On Fri, Jun 26, 2009 at 8:13 PM, Branko Čibej <brane@xbc.nu
> > <ma...@xbc.nu>> wrote:
> >
> >     Robert Dailey wrote:
> >     > Reason why I'm asking is because I've setup a couple of CMake
> >     scripts
> >     > to provide a means to build APR, APR-UTIL, and APR-ICONV.
> >     >
> >     > The less files I have to build to meet the requirements of
> >     Subversion,
> >     > the better. It would be great if you guys could tell me exactly
> >     which
> >     > source files I need to build in all 3 APR libraries. I know that
> >     > Subversion uses apr_pool, but not sure about anything else.
> >     > Unfortunately the only way I'm going to be able to tell is through
> >     > missing symbol linker error later on when I try to link against the
> >     > subversion library.
> >
> >     Uh, sorry, if you're doing your own build scripts, then you're pretty
> >     much on your own ... especially as the list of files you have to
> >     compile
> >     will differ from platform to platform. For any one partiular
> platform,
> >     "nm" or local equivalent will tell you (almost) all you need to know.
> >
> >     AFAIK no-one has ever compiled a list of minimal required sources
> from
> >     APR; doesn't really make sense, we just recommend a particular set of
> >     apr(-util) versions.
> >
> >
> > I had to just to get APR building on Windows. They had some NMAKE
> > scripts already, but those did not function. I have all 3 APR
> > libraries building right now, so we'll see if they contain all of the
> > code needed for Subversion when I build it later on. I'm going to be
> > creating CMake scripts for Subversion next, since the vc6-build.bat
> > file is ancient and broken as well :)
> >
> > If I get it somewhat functional, I will submit it to the Subversion
> > library. You guys can either choose to take it or leave it at that
> > point, but I absolutely need to do this to make it easier for people
> > (particularly myself) to build Subversion on Windows.
> >
> > Thanks for your help.
>
> Aren't you wasting your time just a bit? Subversion does include a
> build-file generator that'll create project files for, IIRC, every
> version of Microsoft compiler from VC6 onwards. Pretty much the same is
> true of APR; witness the fact that a fair number of people are building
> Subversion on Windows, and there's also a script used on buildbots that
> automates the whole shebang.
>
> Going from scratch with CMake will quite likely give you a splitting
> headache, and no-one in their right mind would want to help with that. :-P


Well the whole reason why I'm going down the path of CMake is because all of
the documentation I've read so far does not help me out. I can't get help
from anyone on any mailing list, and the documentation is unreliable. What
other choice do I have? I'd end up wasting more time shuffling around files
in subversion trying to get what I want.

If you would be so kind as to tell me exactly what I need to do to build
subversion on Windows, I'd appreciate it. Obviously the README isn't helping
one bit since it says to use vc6-build.bat, which does not function. I also
need to be able to build subversion in any directory (Not just naively
C:\SVN like the vc6-build.bat script expects). I need to tell subversion
where APR is, and all the rest of its dependencies. This was very doable
when I built subversion for linux, because of the --using-apr command line
parameters and such.

Instructions for Windows would be essential. I do not want to waste my time
with CMake if there is already a portable solution available. It has been my
understanding from personal research that people have had to create their
own custom build scripts for Subversion, such as the TortoiseSVN project I
believe.

I have to admit this is getting frustrating, so I do apologize if I've been
rude. This is like my 5th time to revisit this issue and for the past few
months I have not been able to build Subversion on Windows. I'm in desperate
need of help.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2366034

Re: Question about building APR-UTIL

Posted by Branko Cibej <br...@xbc.nu>.
Robert Dailey wrote:
> On Fri, Jun 26, 2009 at 8:13 PM, Branko Čibej <brane@xbc.nu
> <ma...@xbc.nu>> wrote:
>
>     Robert Dailey wrote:
>     > Reason why I'm asking is because I've setup a couple of CMake
>     scripts
>     > to provide a means to build APR, APR-UTIL, and APR-ICONV.
>     >
>     > The less files I have to build to meet the requirements of
>     Subversion,
>     > the better. It would be great if you guys could tell me exactly
>     which
>     > source files I need to build in all 3 APR libraries. I know that
>     > Subversion uses apr_pool, but not sure about anything else.
>     > Unfortunately the only way I'm going to be able to tell is through
>     > missing symbol linker error later on when I try to link against the
>     > subversion library.
>
>     Uh, sorry, if you're doing your own build scripts, then you're pretty
>     much on your own ... especially as the list of files you have to
>     compile
>     will differ from platform to platform. For any one partiular platform,
>     "nm" or local equivalent will tell you (almost) all you need to know.
>
>     AFAIK no-one has ever compiled a list of minimal required sources from
>     APR; doesn't really make sense, we just recommend a particular set of
>     apr(-util) versions.
>
>
> I had to just to get APR building on Windows. They had some NMAKE
> scripts already, but those did not function. I have all 3 APR
> libraries building right now, so we'll see if they contain all of the
> code needed for Subversion when I build it later on. I'm going to be
> creating CMake scripts for Subversion next, since the vc6-build.bat
> file is ancient and broken as well :)
>
> If I get it somewhat functional, I will submit it to the Subversion
> library. You guys can either choose to take it or leave it at that
> point, but I absolutely need to do this to make it easier for people
> (particularly myself) to build Subversion on Windows.
>
> Thanks for your help.

Aren't you wasting your time just a bit? Subversion does include a
build-file generator that'll create project files for, IIRC, every
version of Microsoft compiler from VC6 onwards. Pretty much the same is
true of APR; witness the fact that a fair number of people are building
Subversion on Windows, and there's also a script used on buildbots that
automates the whole shebang.

Going from scratch with CMake will quite likely give you a splitting
headache, and no-one in their right mind would want to help with that. :-P

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2366013


Re: Question about building APR-UTIL

Posted by Robert Dailey <rc...@gmail.com>.
On Fri, Jun 26, 2009 at 8:13 PM, Branko Čibej <br...@xbc.nu> wrote:

> Robert Dailey wrote:
> > Reason why I'm asking is because I've setup a couple of CMake scripts
> > to provide a means to build APR, APR-UTIL, and APR-ICONV.
> >
> > The less files I have to build to meet the requirements of Subversion,
> > the better. It would be great if you guys could tell me exactly which
> > source files I need to build in all 3 APR libraries. I know that
> > Subversion uses apr_pool, but not sure about anything else.
> > Unfortunately the only way I'm going to be able to tell is through
> > missing symbol linker error later on when I try to link against the
> > subversion library.
>
> Uh, sorry, if you're doing your own build scripts, then you're pretty
> much on your own ... especially as the list of files you have to compile
> will differ from platform to platform. For any one partiular platform,
> "nm" or local equivalent will tell you (almost) all you need to know.
>
> AFAIK no-one has ever compiled a list of minimal required sources from
> APR; doesn't really make sense, we just recommend a particular set of
> apr(-util) versions.


I had to just to get APR building on Windows. They had some NMAKE scripts
already, but those did not function. I have all 3 APR libraries building
right now, so we'll see if they contain all of the code needed for
Subversion when I build it later on. I'm going to be creating CMake scripts
for Subversion next, since the vc6-build.bat file is ancient and broken as
well :)

If I get it somewhat functional, I will submit it to the Subversion library.
You guys can either choose to take it or leave it at that point, but I
absolutely need to do this to make it easier for people (particularly
myself) to build Subversion on Windows.

Thanks for your help.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2365886

Re: Question about building APR-UTIL

Posted by Branko Cibej <br...@xbc.nu>.
Robert Dailey wrote:
> Reason why I'm asking is because I've setup a couple of CMake scripts
> to provide a means to build APR, APR-UTIL, and APR-ICONV.
>
> The less files I have to build to meet the requirements of Subversion,
> the better. It would be great if you guys could tell me exactly which
> source files I need to build in all 3 APR libraries. I know that
> Subversion uses apr_pool, but not sure about anything else.
> Unfortunately the only way I'm going to be able to tell is through
> missing symbol linker error later on when I try to link against the
> subversion library.

Uh, sorry, if you're doing your own build scripts, then you're pretty
much on your own ... especially as the list of files you have to compile
will differ from platform to platform. For any one partiular platform,
"nm" or local equivalent will tell you (almost) all you need to know.

AFAIK no-one has ever compiled a list of minimal required sources from
APR; doesn't really make sense, we just recommend a particular set of
apr(-util) versions.


-- Brane


>
> On Fri, Jun 26, 2009 at 7:36 PM, Branko Čibej <brane@xbc.nu
> <ma...@xbc.nu>> wrote:
>
>     Robert Dailey wrote:
>     > Hey guys,
>     >
>     > For Subversion's specific needs, do I need to build every C file
>     under
>     > apr-util/dbd? There's one C file for every type of database (mysql,
>     > sqlite, etc), and it seems like I would be required to have all of
>     > those database APIs installed on my system in order to fully build
>     > APR-UTIL this way.
>
>     Subversion doesn't use the apr_dbd interface at all, IIRC. We do
>     recommend that APR is linked against the same version of BDB as
>     Subversion (if you're building the BDB back-end), but that's in
>     order to
>     avoid nightmares with different runtime versions of BDB loaded by the
>     same process.
>
>     -- Brane
>
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2365880


Re: Question about building APR-UTIL

Posted by Robert Dailey <rc...@gmail.com>.
Reason why I'm asking is because I've setup a couple of CMake scripts to
provide a means to build APR, APR-UTIL, and APR-ICONV.
The less files I have to build to meet the requirements of Subversion, the
better. It would be great if you guys could tell me exactly which source
files I need to build in all 3 APR libraries. I know that Subversion uses
apr_pool, but not sure about anything else. Unfortunately the only way I'm
going to be able to tell is through missing symbol linker error later on
when I try to link against the subversion library.

On Fri, Jun 26, 2009 at 7:36 PM, Branko Čibej <br...@xbc.nu> wrote:

> Robert Dailey wrote:
> > Hey guys,
> >
> > For Subversion's specific needs, do I need to build every C file under
> > apr-util/dbd? There's one C file for every type of database (mysql,
> > sqlite, etc), and it seems like I would be required to have all of
> > those database APIs installed on my system in order to fully build
> > APR-UTIL this way.
>
> Subversion doesn't use the apr_dbd interface at all, IIRC. We do
> recommend that APR is linked against the same version of BDB as
> Subversion (if you're building the BDB back-end), but that's in order to
> avoid nightmares with different runtime versions of BDB loaded by the
> same process.
>
> -- Brane
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2365876

Re: Question about building APR-UTIL

Posted by Branko Cibej <br...@xbc.nu>.
Robert Dailey wrote:
> Hey guys,
>
> For Subversion's specific needs, do I need to build every C file under
> apr-util/dbd? There's one C file for every type of database (mysql,
> sqlite, etc), and it seems like I would be required to have all of
> those database APIs installed on my system in order to fully build
> APR-UTIL this way.

Subversion doesn't use the apr_dbd interface at all, IIRC. We do
recommend that APR is linked against the same version of BDB as
Subversion (if you're building the BDB back-end), but that's in order to
avoid nightmares with different runtime versions of BDB loaded by the
same process.

-- Brane

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2365875