You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Hamilton Link <he...@sandia.gov> on 2003/02/14 20:02:31 UTC

Re: need advice building svn under OS X

Two questions first, then the background, the first question (mostly) 
for Mr. Erenkrantz:
1.  Is there really such a thing as jlibtool that fixes glibtool under 
OS X, and where do I get it?
2.  Does svn build against BerkeleyDB 4.1 yet, and if not, is the mutex 
fix for 4.0, which Kevin Bond posted back in October, automatically 
applied by anything yet?

I realize I'm probably one of the few people in the world who build the 
svn server under Mac OS X, so thanks to all for your time and energy 
helping me out.

Background:

As per people's advice (very helpful, actually, thanks) I blew away my 
old svn, neon, apache, etc. and then the bootstrapping tarball for svn 
built fine. I got svn checked out with it, got apache and neon and 
everything installed.

Building svn now gives me the following error during make:

gcc: -install_name only allowed with -dynamiclib
make: *** [subversion/mod_dav_svn/mod_dav_svn.la] Error 1

Now, this sounded weirdly familiar, and in fact I seem to recall having 
this problem building svn 0.14.3 and tweaking my glibtool a while back 
to fix this (I thought I had made a note somewhere of what I did, but I 
can't find it now). I'm using the following version of glibtool under 
Mac OS X:

% glibtool --version
ltmain.sh (GNU libtool) 1.4.2 (1.922.2.53 2001/09/11 03:18:52)

And here's the line from glibtool that seems relevent:

archive_cmds="\$nonopt \$(test x\$module = xyes && echo -bundle || echo 
-dynamiclib) \$allow_undefined_flag -o \$lib \$libobjs 
\$deplibs\$linker_flags -install_name \$rpath/\$soname \$verstring"

thanks again,
h

On Tuesday, January 28, 2003, at 10:29 PM, Justin Erenkrantz wrote:

> --On Tuesday, January 28, 2003 11:14 AM -0700 Hamilton Link 
> <he...@sandia.gov> wrote:
>
>> Question 1: are these warnings serious?
>>
>> cc1: warning: changing search order for system directory
>> "/usr/local/include" cc1: warning:   as it has already been
>> specified as a non-system directory
>
> Not really.  But, it means you are explicitly including something from 
> /usr/local/include/.  That leads to #2.
>
>> Question 2: what does this error mean, and what might be the cause?
>> -L/usr/local/lib  -lz -lexpat ld: Undefined symbols:
>> _svn_error_clear
>> _svn_opt_args_to_target_array
>> _svn_client_cat
>> _svn_opt_push_implicit_dot_target
> ...
>
> As Sussman pointed out, you probably installed SVN in /usr/local. It's 
> trying to link against the old libraries, not the newer one. You can't 
> install SVN when you already have it installed.  Your linker doesn't 
> like that.  Very few linkers do.  -- justin
>



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

Re: question about svn under OS X (fink vs. manual)

Posted by Christian Schaffner <ch...@users.sourceforge.net>.
(I am moving this to users@svn since it seems to belong there)

Um 11:14 Uhr -0600 am 2.10.2003, Hamilton Link schrieb:
>Why does the svn fink package require ruby?

Fink itself doesn't require ruby itself. But it depends on swig 
during build time, because it should build the swig bindings. Whether 
this fully functional right now is to be tested. That's why this 
package is in the fink unstable tree.

Why is this needed? More explanation below...

>There are some other things as well that it wants to install that I 
>wasn't expecting, to the tune of 40 packages or so; I was expecting 
>more like a dozen, having built it by hand before (the 40 packages 
>is even after I installed X11 and Octave and some other things, so 
>the lowest-level stuff is already there).

Maybe i should explain how i see the goals of the fink project. In my 
eyes there are three main points:


1. Coordinate the effort to port software to MacOS X

This is done by creating the package info file. You, as a user, can 
look at it to see how a particular package can be compiled and 
installed on MacOS X.


2. Provide an easy way to compile and install package

You can run 'fink install svn-client-ssl' and fink will do the rest 
for you. This is not optimal in every situation, but (should) give 
you a way of painlessly installing one of the around 3000 packages in 
the fink unstable.

The packages need to be built in such a way that they include most of 
the available dependencies and options, in order to make them 
suitable for most users. Splitt-offs (like in the apache or 
subversion case) are made after building everything. They can't be 
built seperately. But see below:


3. Provide precompiled packages

Once packages are moved to the stable tree (which will not happen for 
subversion before it hits 1.0) they get precompiled into .deb 
packages and distributed for downloading. In the case of subversion 
this will (in the future) allow you to 'apt-get install 
svn-client-ssl' and in a matter of seconds you will have a svn client 
installed on your MacOS X machine. This will not ask for ruby or swig 
since these dependencies are only during build time.


>I'm wondering if there's a happy medium between blindly installing 
>svn and the kitchen sink with fink, and installing everything 
>painstakingly by hand (which in my experience is a rather exacting 
>process).
>
>The apache2 module installs and subsequently archives all mpm 
>modules for apache, and installs things like cyrus etc., so I can 
>understand it installing more than I would have installed if I had 
>downloaded the source tarballs and built it by myself, but without 
>installing apache2 through fink can I still use fink to install svn?


So, to sum up and answer the two questions above, in the case of 
subversion you need to build apache2 and all the depencencies of them 
in order to get even only the client.

It would be great if you could do it and report back to me. Like this 
it will be possible to move the svn package to the stable tree very 
soon after svn hits 1.0 (or maybe beta).

I hope i answered your questions more or less,
Chris.



>thanks,
>hamilton
>
>On Saturday, February 15, 2003, at 09:20 AM, Christian Schaffner wrote:
>
>>I am in the process of producing a fink package 
>>(http://fink.sf.net) for MacOS X. There is already a client 
>>package: http://fink.sourceforge.net/pdb/package.php/svn-client
>>
>>Also there is apr and apr-util already: 
>>http://fink.sourceforge.net/pdb/package.php/apr
>>
>>Have a look at how thing are build there...
>>
>>Chris.
>>
>>PS: Feedback is always welcome...


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

question about svn under OS X (fink vs. manual)

Posted by Hamilton Link <he...@sandia.gov>.
Why does the svn fink package require ruby? There are some other things 
as well that it wants to install that I wasn't expecting, to the tune 
of 40 packages or so; I was expecting more like a dozen, having built 
it by hand before (the 40 packages is even after I installed X11 and 
Octave and some other things, so the lowest-level stuff is already 
there).

I'm wondering if there's a happy medium between blindly installing svn 
and the kitchen sink with fink, and installing everything painstakingly 
by hand (which in my experience is a rather exacting process).

The apache2 module installs and subsequently archives all mpm modules 
for apache, and installs things like cyrus etc., so I can understand it 
installing more than I would have installed if I had downloaded the 
source tarballs and built it by myself, but without installing apache2 
through fink can I still use fink to install svn?

thanks,
hamilton

On Saturday, February 15, 2003, at 09:20 AM, Christian Schaffner wrote:

> I am in the process of producing a fink package (http://fink.sf.net) 
> for MacOS X. There is already a client package: 
> http://fink.sourceforge.net/pdb/package.php/svn-client
>
> Also there is apr and apr-util already: 
> http://fink.sourceforge.net/pdb/package.php/apr
>
> Have a look at how thing are build there...
>
> Chris.
>
> PS: Feedback is always welcome...
>



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

Re: need advice building svn under OS X

Posted by Christian Schaffner <sc...@eeh.ee.ethz.ch>.
>> I realize I'm probably one of the few people in the world who build
>> the svn server under Mac OS X, so thanks to all for your time and
>> energy helping me out.
>
> Heh.  I do.  Sabi does.  Fitz does.  Garrett might.  Fred prolly does. 
>  There are probably more people running a Subversion server on Mac OS 
> X than Win32.  =-)

And I am in the process of producing a fink package 
(http://fink.sf.net) for MacOS X. There is already a client package: 
http://fink.sourceforge.net/pdb/package.php/svn-client

Also there is apr and apr-util already: 
http://fink.sourceforge.net/pdb/package.php/apr

Have a look at how thing are build there...

Chris.

PS: Feedback is always welcome...


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

Re: need advice building svn under OS X

Posted by Justin Erenkrantz <je...@apache.org>.
--On Friday, February 14, 2003 1:02 PM -0700 Hamilton Link 
<he...@sandia.gov> wrote:

> Two questions first, then the background, the first question
> (mostly) for Mr. Erenkrantz:

> 1.  Is there really such a thing as jlibtool that fixes glibtool
> under OS X, and where do I get it

Yup.  http://www.apache.org/~jerenkrantz/jlibtool/

I have no idea what patches you would need.  I don't think I've 
tweaked those patches in a while, so the versions on the above site 
should be reasonably close to what you'd need.

> 2. Does svn build against BerkeleyDB 4.1 yet, and if not, is the
> mutex fix for 4.0, which Kevin Bond posted back in October,
> automatically applied by anything yet?

Should.  I use BDB 4.1 here without any problems.  Just pass the 
--with-berkeley-db argument to configure.

> I realize I'm probably one of the few people in the world who build
> the svn server under Mac OS X, so thanks to all for your time and
> energy helping me out.

Heh.  I do.  Sabi does.  Fitz does.  Garrett might.  Fred prolly 
does.  There are probably more people running a Subversion server on 
Mac OS X than Win32.  =-)

> % glibtool --version
> ltmain.sh (GNU libtool) 1.4.2 (1.922.2.53 2001/09/11 03:18:52)

If you don't use jlibtool, I would highly recommend using fink's GNU 
libtool.  They have a bunch of patches to make it work.  And, the 
stock libtool 1.4.3 is available with some Darwin fixes as well.  I'm 
not sure if a stock 1.4.3 is enough though.  -- justin

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