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

RE: Linker issues building subversion on Windows

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Wed, 9 Sep 2009 09:47:07 +0300 (Jerusalem Daylight Time)

Johan Corveleyn wrote on Wed, 9 Sep 2009 at 02:36 +0200:
> > Van: Daniel Shahaf [mailto:d.s_at_daniel.shahaf.name]
> > Johan Corveleyn wrote on Fri, 28 Aug 2009 at 10:41 +0200:
> > > Note: I'm very unexperienced in building on Windows, but was
> > > trying to make a build myself yesterday with VC Express 2008
> > > (based on a Makefile posted by Daniel Shahaf:
> > > http://svn.haxx.se/users/archive-2009-07/0764.shtml). I didn't get
> > > through it yet (got stuck on building openssl), and gave up around
> > > 3am this morning.
> > >
> > > Will try again this weekend :).
> > >
> >
> > And...?
> >
>
> Sorry to be so slow, but I didn't get around to it as fast as I wanted
> to. However, I've now been able to spend some more time with it, and
> ... I succeeded, Woohoo! With openssl. Now I can finally start
> experimenting with my own Windows build of the svn client from trunk.
>

Yay!

Now, please start sending patches :-)

> 1) zlib wouldn't compile with masm (ml.exe) included with VCE 2008.
> I got errors like "inffas32.asm(647) : error A2070: invalid
> instruction operands". See e.g.
> http://www.deanlee.cn/windows/inffas32asm-error-a2070-invalid-instruction-operands/
>
> I didn't want to mess with the (assembler-)source, so in the end
> I found an old masm (6.xx), and put that in place of the ml.exe of VCE
> 2008. That fixed it (However, see 4).
>
> In the meantime, I read somewhere that zlib contains a .sln file in
> its tarball in contrib/vstudio/vc8 that might do a better job here.
>

I don't have a "zlib" entry where I keep the build instructions for
software I've built, so it must mean that I managed to built zlib
successfully using the instructions in their build documentation, without
many steps or major changes. I don't remember seeing that A2070 error
before.

> 2) The svn build complained about not finding libapr-1.lib (although
> apr, apr-util and apr-iconv seemed to have been correctly built, i.e.
> there was). I couldn't find the file either, so after some
           ^
There was what?

Anyway, I have

    LibD\apr-1.lib
    Debug\libapr-1.lib

in my APR source tree. Maybe you have one of them but not the other?
IIRC the APR project files have several targets --- apr, libapr, and
others --- maybe you didn't build all targets you were supposed to?

> troubleshooting I decided to build apache entirely from source. That
> helped (I changed the Makefile to use --with-httpd instead of
> --with-aprutil and friends).
>
> 3) apache was also not trivial to build (I thought I needed to build
> it from source, according to svn's INSTALL document; it got me the
> necessary libapr-1.lib etc.). Following the instructions on
> http://httpd.apache.org/docs/2.2/platform/win_compiling.html helped.
> I couldn't get it to build from the command line, but opening and
> building the project from the VCE Studio worked.
>

You're ahead of me: I don't have httpd building on Windows. What
version of httpd did you use? I'll download that version and try the
win_compiling.html procedure again.

> 4) building openssl failed with some strange error (forgot to write it
> down). I was using ms/do_masm (do_ms didn't work either). Apparently
> it was failing because of the 6.xx ml.exe I put in place while fixing
> zlib's build. Placing the original back from VCE 2008 fixed it.
>

Yes. Another option is to use do_nasm.

> 5) [...] the following didn't seem to work:
> all1: targetdir
> $(MSBUILD) /t:__ALL__
> $(MAKE) package

My fault. It should work if you rename Makefile.pub to Makefile, or add

    -f Makefile.pub

to the $(MAKE) invocation.

> After that, I just executed the "package" target directly and all was
> well :). Thanks again for providing the Makefile. I don't have time
> (or enough knowledge) to contribute to improve the build process for
> Windows, but I hope my feedback is helpful.
>

Sure is!

> Kind regards,
> Johan
>
>

Best,

Daniel
(I should commit the makefile when I have a few minutes)

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-09 08:48:08 CEST

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

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