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

Re: Compiling Static Subversion Binaries on RHEL

From: david x callaway <dxc_at_pobox.com>
Date: 2007-04-14 11:20:12 CEST

could you give a rationale for doing this? I could think of several
reasons offhand: 1) you are worried about security, in which securing
your server is a necessary condition anyway and would take care of any
issues that might be solved by static binaries, 2) you want to be able
to drop it in on many systems, and 3) you want to be running exactly
the same code everywhere.

in the many systems case, if they aren't all RHELx then I'm not sure
what the point is given the changing filesystem structures; I'd think
getting a standard set of config files would be most of the battle
there in any case.

if you want exactly the same code everywhere I'd think you would want
exactly the same OS also, otherwise you are still not "copy exact".
for this purpose you could instead use a disk imager, e.g. partimage,
to copy the bits onto multiple machines (the whole thing, not just the
install).

of course it's early here, maybe I'm missing the point ;-).

Jeremy Whitlock wrote:
> Hi All,
> I have spent over 12 hours today trying to build a static Subversion
> binary, and static binary dependencies of Subversion, on RHEL. After
> fighting with apr-util and OpenLDAP, I finally decided to stop building
> OpenLDAP statically and got Apache compiled and running. The problem is
> when I build Subversion statically on RHEL, I get the following error:
>
> bad ELF interpreter: No such file or directory
>
> The above occurs when running any of the Subversion executables and it
> appears that libc.so.1 is what is not being found. What mystifies me is
> that libc.so.6 is installed on the system and in the desired location.
> I am
> not sure what is going on but I am out of ideas. configure commands for
> Subversion and all dependencies will be made available as necessary. Can
> someone please shed some light on this? Google and irc have turned up
> fruitless to this point. Before I go, let me give just a little more
> detail.
>
> I have attempted to compile all of Subversion's dependencies statically.
> This is not a problem until you want apr-util to work with a statically
> compiled OpenLDAP. After not finding a solution for that problem, I then
> recompiled OpenLDAP with shared libraries and apr-util compiled properly.
> When I get to the point of compiling Subversion, I am attempting to build a
> completely static/standalone installation. The compilation goes fine but
> when the installation part kicks off, you see a lot of the errors above
> when
> the installation process tries to run the newly compiled executables. I
> then try to execute one of the compiled binaries and I get the above error.
> ldd also fails with this error when ran against the Subversion executables.
>
> Take care,
>
> Jeremy
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Apr 14 11:20:35 2007

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