You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Vincent Lefevre <vi...@vinc17.org> on 2009/05/01 19:46:22 UTC

internal link error under Mac OS X

Any news about the following bug?

  http://trac.macports.org/ticket/18937

I didn't see it mentioned on the Subversion issue tracker and it was
already present in Subversion 1.6.0.

Here's what I get with Subversion 1.6.1:

[...]
/bin/sh /opt/local/var/macports/build/_Users_vinc17_software_dports_devel_subversion/work/subversion-1.6.1/libtool --tag=CC --silent --mode=compile /usr/bin/gcc-4.0 -I/opt/local/include   -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/opt/local/include/apr-1   -I/opt/local/include/apr-1 -I/opt/local/include  -O2     -I./subversion/include -I./subversion -I/opt/local/include/apr-1   -I/opt/local/include/apr-1 -I/opt/local/include -I/opt/local/include/neon -I/opt/local/include -I/opt/local/include/serf-0  -o subversion/libsvn_fs_util/fs-util.lo -c subversion/libsvn_fs_util/fs-util.c
cd subversion/libsvn_fs_util && /bin/sh /opt/local/var/macports/build/_Users_vinc17_software_dports_devel_subversion/work/subversion-1.6.1/libtool --tag=CC --silent --mode=link /usr/bin/gcc-4.0  -O2     -L/opt/local/lib    -L/opt/local/lib/db46 -L/opt/local/lib -L/opt/local/lib  -rpath /opt/local/lib -o libsvn_fs_util-1.la  fs-util.lo ../../subversion/libsvn_subr/libsvn_subr-1.la /opt/local/lib/libaprutil-1.la  -ldb-4.6 -lexpat -liconv /opt/local/lib/libapr-1.la -lpthread -lintl  -framework Security -framework CoreFoundation -framework CoreServices
ERROR: No debug map or DWARF data was found to link.cd subversion/libsvn_fs_fs && /bin/sh /opt/local/var/macports/build/_Users_vinc17_software_dports_devel_subversion/work/subversion-1.6.1/libtool --tag=CC --silent --mode=link /usr/bin/gcc-4.0  -O2     -L/opt/local/lib    -L/opt/local/lib/db46 -L/opt/local/lib -L/opt/local/lib  -rpath /opt/local/lib -o libsvn_fs_fs-1.la  caching.lo dag.lo err.lo fs.lo fs_fs.lo id.lo key-gen.lo lock.lo rep-cache.lo tree.lo ../../subversion/libsvn_delta/libsvn_delta-1.la ../../subversion/libsvn_subr/libsvn_subr-1.la /opt/local/lib/libaprutil-1.la  -ldb-4.6 -lexpat -liconv /opt/local/lib/libapr-1.la -lpthread ../../subversion/libsvn_fs_util/libsvn_fs_util-1.la -lintl  -framework Security -framework CoreFoundation -framework CoreServices
ld: Undefined symbols:
_svn_error__malfunction referenced from libsvn expected to be defined in libsvn
_svn_checksum_ctx_create referenced from libsvn expected to be defined in libsvn
_svn_checksum_final referenced from libsvn expected to be defined in libsvn
_svn_checksum_update referenced from libsvn expected to be defined in libsvn
/usr/bin/libtool: internal link edit command failed
make: *** [subversion/libsvn_fs_fs/libsvn_fs_fs-1.la] Error 1

I don't understand why there's an attempt to link againt libsvn.

I've attached the config.log file and the .la file that have been built.

-- 
Vincent Lefèvre <vi...@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)

Re: internal link error under Mac OS X

Posted by Vincent Lefevre <vi...@vinc17.org>.
On 2009-09-25 01:24:19 +0200, Vincent Lefevre wrote:
> This has the effect to use -flat_namespace, and it has been told that
> this is bad.
> 
> Could the bug be fixed, please?
> 
> Note: in case this is a libtool bug, the libtool used by Subversion
> is old.

After some tests...

The failure occurs here:

cd subversion/libsvn_fs_util && /bin/sh /opt/local/var/macports/build/_Users_vinc17_software_dports_devel_subversion/work/subversion-1.6.0/libtool --tag=CC --silent --mode=link /usr/bin/gcc-4.0  -O2     -L/opt/local/lib    -L/opt/local/lib/db46 -L/opt/local/lib -L/opt/local/lib  -rpath /opt/local/lib -o libsvn_fs_util-1.la  fs-util.lo ../../subversion/libsvn_subr/libsvn_subr-1.la /opt/local/lib/libaprutil-1.la  -ldb-4.6 -lexpat -liconv /opt/local/lib/libapr-1.la -lpthread -lintl  -framework Security -framework CoreFoundation -framework CoreServices

with the error:

ld: Undefined symbols:
_svn_error__malfunction referenced from libsvn expected to be defined in libsvn
_svn_checksum_ctx_create referenced from libsvn expected to be defined in libsvn
_svn_checksum_final referenced from libsvn expected to be defined in libsvn
_svn_checksum_update referenced from libsvn expected to be defined in libsvn

The error occurs because it seems that ld (called by libtool) tries
to link with the old version in /opt/local/lib. It seems that
"-rpath /opt/local/lib" makes this path override the local ones.

-- 
Vincent Lefèvre <vi...@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)

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

Re: internal link error under Mac OS X

Posted by Vincent Lefevre <vi...@vinc17.org>.
On 2009-05-01 23:48:38 +0200, Vincent Lefevre wrote:
> On 2009-05-01 14:02:10 -0600, Jeremy Whitlock wrote:
> > In case you have troubles getting it fixed:
> > 
> > http://www.open.collab.net/downloads/community/
> > 
> > Doesn't require any package manager and it's complete.
> 
> Thanks, however this would not solve the problem of MacPorts ports
> that depend on subversion. In fact, I already know a workaround, but
> I'm trying to have the bug fixed. I've just found the cause: the link
> error occurs when the MACOSX_DEPLOYMENT_TARGET environment variable
> is "10.4" (the configure script tests this variable, so I'd say that
> this is a bug in this script). If this variable is undefined,
> Subversion builds without any error.

This has the effect to use -flat_namespace, and it has been told that
this is bad.

Could the bug be fixed, please?

Note: in case this is a libtool bug, the libtool used by Subversion
is old.

-- 
Vincent Lefèvre <vi...@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)

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

Re: internal link error under Mac OS X

Posted by Vincent Lefevre <vi...@vinc17.org>.
On 2009-05-01 14:02:10 -0600, Jeremy Whitlock wrote:
> In case you have troubles getting it fixed:
> 
> http://www.open.collab.net/downloads/community/
> 
> Doesn't require any package manager and it's complete.

Thanks, however this would not solve the problem of MacPorts ports
that depend on subversion. In fact, I already know a workaround, but
I'm trying to have the bug fixed. I've just found the cause: the link
error occurs when the MACOSX_DEPLOYMENT_TARGET environment variable
is "10.4" (the configure script tests this variable, so I'd say that
this is a bug in this script). If this variable is undefined,
Subversion builds without any error.

-- 
Vincent Lefèvre <vi...@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)


Re: internal link error under Mac OS X

Posted by Jeremy Whitlock <jc...@gmail.com>.
> Any news about the following bug?
>
>  http://trac.macports.org/ticket/18937
>
> I didn't see it mentioned on the Subversion issue tracker and it was
> already present in Subversion 1.6.0.

In case you have troubles getting it fixed:

http://www.open.collab.net/downloads/community/

Doesn't require any package manager and it's complete.

-- 
Take care,

Jeremy Whitlock
http://www.thoughtspark.org

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