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/07/31 23:23:29 UTC

little help? svn build error under Mac OS X

This is all under Max OS 10.2.6.

I'm seeing
gcc: -install_name only allowed with -dynamiclib
make: *** [subversion/mod_dav_svn/mod_dav_svn.la] Error 1
as the last thing (meaning it's fatal?) during a make of the svn trunk.

First, I successfully built the 0.26.0 svn tarball and installing 
Berkeley DB 4.1.25, python, neon 0.23.9, and Apache2 (from the source 
tarball, so it included apr and apr-util). Then I ran svn's autogen.sh, 
and ran 'configure --enable-maintainer-mode'.

I went to make the svn server, skipped the 'make' step and ran 'make 
install' (on accident). It looks like it did the make phase for 
everything anyway, and there's now a brand new svn and an svnadmin etc. 
in my /usr/local/bin directory, but he process ultimately ended with 
the following penultimate message and final error:

cd subversion/mod_dav_svn && /bin/sh 
/Users/helink/subversion/obj/libtool --silent --mode=link gcc  -g -Wall 
-Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations 
-DNEON_ZLIB -DSVN_DEBUG -DAP_DEBUG -Wpointer-arith -Wwrite-strings 
-Wshadow   -L/usr/local/BerkeleyDB.4.1/lib -L/usr/local/apache2/lib  
-rpath /usr/local/apache2/modules -avoid-version -module -o 
mod_dav_svn.la activity.lo deadprops.lo liveprops.lo log.lo merge.lo 
mod_dav_svn.lo repos.lo update.lo util.lo version.lo 
../../subversion/libsvn_repos/libsvn_repos-1.la 
../../subversion/libsvn_fs/libsvn_fs-1.la 
../../subversion/libsvn_delta/libsvn_delta-1.la 
../../subversion/libsvn_subr/libsvn_subr-1.la
gcc: -install_name only allowed with -dynamiclib
make: *** [subversion/mod_dav_svn/mod_dav_svn.la] Error 1

This bit about install_name and dynamiclib sounds wierdly familiar as 
far back in my memory as svn 0.14.3 or 0.17 -- In fact, I seem to 
recall tweaking libtool or glibtool or something at one point to deal 
with this. I've totally forgotten what the point was since then, but 
can anyone tell me what this error boils down to? Are the following 
files liable to be any good?

helink% ls /usr/local/bin/svn* -al
-rwxr-xr-x   1 root     wheel      649228 Jul 31 16:56 
/usr/local/bin/svn
-rwxr-xr-x   1 root     wheel       44944 Jul 31 16:56 
/usr/local/bin/svnadmin
-rwxr-xr-x   1 root     wheel       46224 Jul 31 16:56 
/usr/local/bin/svndumpfilter
-rwxr-xr-x   1 root     wheel       76748 Jul 31 16:56 
/usr/local/bin/svnlook
-rwxr-xr-x   1 root     wheel       84156 Jul 31 16:56 
/usr/local/bin/svnserve
-rwxr-xr-x   1 root     wheel      274160 Jul 31 16:56 
/usr/local/bin/svnversion

I guess i'll start trying to serve a repository in the mean time, but 
any advice on this mysterious recurring problem would be appreciated. 
Other than this, the whole svn build thing seems to go quite smoothly, 
including all the supporting installations.

thanks,
hamilton



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

Re: little help? svn build error under Mac OS X

Posted by Nicholas Riley <nj...@uiuc.edu>.
Sorry for the delay, I was cleaning out my condo today...

On Fri, Aug 01, 2003 at 12:28:53PM -0600, Hamilton Link wrote:
> Well I thought i had done this but all the libtools (& glibtools) i can 
> find are indeed 1.4.2 versions. Also this is the only thing fink seems 
> to know about.

The Fink package is indeed called 'libtool14' but it should install
version 1.5:

[p4:1017] ~%dpkg -l | grep libtool
ii  libtool14      1.5-1          Shared library build helper, v1.5
ii  libtool14-shli 1.5-1          Shared libraries for libtool, v1.5

> Do you or anyone else know if there are any Mac OS X compatibility 
> issues with the latest libtool i might get from 
> http://www.gnu.org/software/libtool/libtool.html ?

I've never tried it.  I hope it would work.

On Fri, Aug 01, 2003 at 01:49:54PM -0600, Hamilton Link wrote:
> Sorry, this is a stupid question but where does autogen look to find 
> libtool? It's not looking in my path...

> buildcheck: libtool version 1.4.2 (ok)                  <-- ?!?!

autogen.sh actually looks for (g)libtoolize, not libtool.  Try
executing this:

svn% ./build/PrintPath glibtoolize libtoolize
/sw/bin/glibtoolize
svn% echo $PATH
/sw/bin:/sw/sbin:/usr/local/bin:/Developer/Tools:/Users/nicholas/Documents/Development/hiptop/sdk/tools/macosx:/usr/bin:/bin:/usr/sbin:/sbin:/Users/nicholas:/usr/X11R6/bin

It's possible that items are in your path in the wrong place, or you
didn't install the version of GNU libtool you compiled as 'glibtool',
or another such thing.

-- 
=Nicholas Riley <nj...@uiuc.edu> | <http://www.uiuc.edu/ph/www/njriley>
        Pablo Research Group, Department of Computer Science and
  Medical Scholars Program, University of Illinois at Urbana-Champaign

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

Re: little help? svn build error under Mac OS X

Posted by Hamilton Link <he...@sandia.gov>.
Sorry, this is a stupid question but where does autogen look to find 
libtool? It's not looking in my path...

% which libtool
/usr/local/bin/libtool
% libtool --version
ltmain.sh (GNU libtool) 1.5 (1.1220 2003/04/05 19:32:58)
% ./autogen.sh
buildcheck: checking installation...
buildcheck: autoconf version 2.53 (ok)
buildcheck: autoheader version 2.53 (ok)
buildcheck: libtool version 1.4.2 (ok)                  <-- ?!?!
Copying libtool helper: /sw/share/aclocal/libtool.m4    <-- is this my 
problem?
Creating getdate.c...
subversion/libsvn_subr/getdate.y contains 10 shift/reduce conflicts.
Creating build-outputs.mk...
etc

thanks,
hamilton

On Friday, August 1, 2003, at 12:28 PM, Hamilton Link wrote:

> Well I thought i had done this but all the libtools (& glibtools) i 
> can find are indeed 1.4.2 versions. Also this is the only thing fink 
> seems to know about.
>
> Do you or anyone else know if there are any Mac OS X compatibility 
> issues with the latest libtool i might get from 
> http://www.gnu.org/software/libtool/libtool.html ?
>
> At one point i thought there were differences between the OS X version 
> and the regular version accommodating for OS X idiosyncrasies.
>
> thanks,
> h
>
> On Thursday, July 31, 2003, at 11:37 PM, Nicholas Riley wrote:
>
>> You are likely using an old, broken version of GNU libtool (not to be
>> confused with NeXT/Apple's utility of the same name).  The version
>> which ships with 10.2.x is derived from GNU libtool 1.4.2, and can't
>> properly create bundles even when passed the -module flag, as
>> Subversion's build process correctly does above.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
>



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

Re: little help? svn build error under Mac OS X

Posted by Hamilton Link <he...@sandia.gov>.
Well I thought i had done this but all the libtools (& glibtools) i can 
find are indeed 1.4.2 versions. Also this is the only thing fink seems 
to know about.

Do you or anyone else know if there are any Mac OS X compatibility 
issues with the latest libtool i might get from 
http://www.gnu.org/software/libtool/libtool.html ?

At one point i thought there were differences between the OS X version 
and the regular version accommodating for OS X idiosyncrasies.

thanks,
h

On Thursday, July 31, 2003, at 11:37 PM, Nicholas Riley wrote:

> You are likely using an old, broken version of GNU libtool (not to be
> confused with NeXT/Apple's utility of the same name).  The version
> which ships with 10.2.x is derived from GNU libtool 1.4.2, and can't
> properly create bundles even when passed the -module flag, as
> Subversion's build process correctly does above.



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

Re: little help? svn build error under Mac OS X

Posted by Nicholas Riley <nj...@uiuc.edu>.
On Thu, Jul 31, 2003 at 05:23:29PM -0600, Hamilton Link wrote:
> /Users/helink/subversion/obj/libtool --silent --mode=link gcc  -g -Wall 
> -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations 
> -DNEON_ZLIB -DSVN_DEBUG -DAP_DEBUG -Wpointer-arith -Wwrite-strings 
> -Wshadow   -L/usr/local/BerkeleyDB.4.1/lib -L/usr/local/apache2/lib  
> -rpath /usr/local/apache2/modules -avoid-version -module -o 
> mod_dav_svn.la activity.lo deadprops.lo liveprops.lo log.lo merge.lo 
> mod_dav_svn.lo repos.lo update.lo util.lo version.lo 
> ../../subversion/libsvn_repos/libsvn_repos-1.la 
> ../../subversion/libsvn_fs/libsvn_fs-1.la 
> ../../subversion/libsvn_delta/libsvn_delta-1.la 
> ../../subversion/libsvn_subr/libsvn_subr-1.la
> gcc: -install_name only allowed with -dynamiclib
> make: *** [subversion/mod_dav_svn/mod_dav_svn.la] Error 1

As the error message states, install_name is only applicable to Mach-O
dynamic libraries (MH_DYLIB, .dylib), not bundles (MH_BUNDLE generally
.so), and mod_dav_svn is a bundle.  See ld's man page for more
information.

You are likely using an old, broken version of GNU libtool (not to be
confused with NeXT/Apple's utility of the same name).  The version
which ships with 10.2.x is derived from GNU libtool 1.4.2, and can't
properly create bundles even when passed the -module flag, as
Subversion's build process correctly does above.

The easiest way to fix this is to install libtool from Fink, which is
a 1.5 derived version devoid of the above bug.

-- 
=Nicholas Riley <nj...@uiuc.edu> | <http://www.uiuc.edu/ph/www/njriley>
        Pablo Research Group, Department of Computer Science and
  Medical Scholars Program, University of Illinois at Urbana-Champaign

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

Re: little help? svn build error under Mac OS X

Posted by Blair Zajac <bl...@orcaware.com>.
Hamilton Link wrote:
> 
> Why climb the mountain? Yeah, I was recently made aware of the fink
> packages but part of the point is to be a good software citizen and
> test the build process to see if it's fit for consumption yet and if
> it's adequately documented.

I did that myself until I found the fink build.

> Hmm, i can't find an .info file under any of the unpacked tar.gzs that
> i downloaded, is it on the svn website somewhere? Sorry, this is
> probably a terribly naive question.

It's in the Fink CVS directory.

Look in

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/fink/dists/10.2/unstable/crypto/finkinfo/

and

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/fink/dists/10.2/unstable/crypto/finkinfo/svn-client-ssl-0.26.0-1.info

Best,
Blair

-- 
Blair Zajac <bl...@orcaware.com>
Plots of your system's performance - http://www.orcaware.com/orca/

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

Re: little help? svn build error under Mac OS X

Posted by Hamilton Link <he...@sandia.gov>.
Why climb the mountain? Yeah, I was recently made aware of the fink 
packages but part of the point is to be a good software citizen and 
test the build process to see if it's fit for consumption yet and if 
it's adequately documented.

Hmm, i can't find an .info file under any of the unpacked tar.gzs that 
i downloaded, is it on the svn website somewhere? Sorry, this is 
probably a terribly naive question.

thanks,
hamilton

On Thursday, July 31, 2003, at 06:04 PM, Blair Zajac wrote:

> Hamilton Link wrote:
>>
>> This is all under Max OS 10.2.6.
>>
>> I'm seeing
>> gcc: -install_name only allowed with -dynamiclib
>> make: *** [subversion/mod_dav_svn/mod_dav_svn.la] Error 1
>> as the last thing (meaning it's fatal?) during a make of the svn 
>> trunk.
>
> How about using the Fink install.  I've had no issues with it:
>
> http://fink.sourceforge.net/pdb/package.php/svn-client-ssl
>
> If you still want to compile it yourself, the .info for building
> it may be useful.
>
> Best,
> Blair
>
> -- 
> Blair Zajac <bl...@orcaware.com>
> Plots of your system's performance - http://www.orcaware.com/orca/
>



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

Re: little help? svn build error under Mac OS X

Posted by Blair Zajac <bl...@orcaware.com>.
Hamilton Link wrote:
> 
> This is all under Max OS 10.2.6.
> 
> I'm seeing
> gcc: -install_name only allowed with -dynamiclib
> make: *** [subversion/mod_dav_svn/mod_dav_svn.la] Error 1
> as the last thing (meaning it's fatal?) during a make of the svn trunk.

How about using the Fink install.  I've had no issues with it:

http://fink.sourceforge.net/pdb/package.php/svn-client-ssl

If you still want to compile it yourself, the .info for building
it may be useful.

Best,
Blair

-- 
Blair Zajac <bl...@orcaware.com>
Plots of your system's performance - http://www.orcaware.com/orca/

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

Re: little help? svn build error under Mac OS X

Posted by Jack Repenning <jr...@collab.net>.
At 5:23 PM -0600 7/31/03, Hamilton Link wrote:
>This is all under Max OS 10.2.6.
>
>I'm seeing
>gcc: -install_name only allowed with -dynamiclib
>make: *** [subversion/mod_dav_svn/mod_dav_svn.la] Error 1
>as the last thing (meaning it's fatal?) during a make of the svn trunk.

Yeah, that would most likely be fatal (Error 1 being the clue).

I've been trying, but I've been unable to reproduce your results. 
Can you give more details, like your configure options and output?

-- 
-==-
Jack Repenning
CollabNet, Inc.
8000 Marina Boulevard, Suite 600
Brisbane, California 94005
o: 650.228.2562
c: 408.835-8090

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