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

Linking problem (GLIBC_PRIVATE not defined...)

From: Matthew Cline <matt_at_nightrealms.com>
Date: 2003-12-31 09:27:18 CET

My setup:

Subversion 0.35.1 tarball

Linux 2.4.19, i686
glibc 2.3.1-10
gcc 3.3.2-1
make 3.80-5
automake 1.5
autoconf 2.52d-1
autoconf 2.13-11
m4 1.4.1
bash 2.05.1(1)

I know that INSTALL said I should have at least autoconf 2.50, but:

1) There's already a "configure" that comes with the tarball
2) The weird autoconf 2.52d-1 package I have says it can co-exist with
   version 2.13

Soooo, I do configure and make, and everything is fine, but when I try to
install, it gets an error when trying to copy in svnversion, with an error
like this:

  symbol __pthread_clock_settime, version GLIBC_PRIVATE not defined in file
  libpthread.so.0 with link time reference (/lib/i686/librt.so.1)

I poke around Google and Google Groups, see that it might have something to do
with librt.so being linked to before libpthread.so, so in a wild guess I try
to replace "-lrt" with "-lpthread" in the Makefile, then do "make clean;
make". Things compile fine again, but there's still the same linking
problem.

The output of "ldd -d -r /usr/bin/svn" gives:

        libsvn_client-1.so.0 => /usr/lib/libsvn_client-1.so.0 (0x40014000)
        libsvn_wc-1.so.0 => /usr/lib/libsvn_wc-1.so.0 (0x40031000)
        libsvn_ra-1.so.0 => /usr/lib/libsvn_ra-1.so.0 (0x40054000)
        libsvn_diff-1.so.0 => /usr/lib/libsvn_diff-1.so.0 (0x40057000)
        libsvn_ra_local-1.so.0 => /usr/lib/libsvn_ra_local-1.so.0 (0x4005d000)
        libsvn_repos-1.so.0 => /usr/lib/libsvn_repos-1.so.0 (0x40063000)
        libsvn_fs-1.so.0 => /usr/lib/libsvn_fs-1.so.0 (0x40076000)
        libsvn_ra_dav-1.so.0 => /usr/lib/libsvn_ra_dav-1.so.0 (0x40096000)
        libsvn_ra_svn-1.so.0 => /usr/lib/libsvn_ra_svn-1.so.0 (0x400a8000)
        libsvn_delta-1.so.0 => /usr/lib/libsvn_delta-1.so.0 (0x400b6000)
        libsvn_subr-1.so.0 => /usr/lib/libsvn_subr-1.so.0 (0x400bd000)
        libaprutil-0.so.0 => /usr/lib/libaprutil-0.so.0 (0x400e0000)
        libgdbm.so.2 => /usr/local/lib/libgdbm.so.2 (0x400f6000)
        libdb-4.0.so => /usr/lib/libdb-4.0.so (0x400fc000)
        libexpat.so.0 => /usr/lib/libexpat.so.0 (0x401a4000)
        libapr-0.so.0 => /usr/lib/libapr-0.so.0 (0x401c5000)
        libpthread.so.0 => /usr/lib/libpthread.so.0 (0x401e6000)
        librt.so.1 => /lib/i686/librt.so.1 (0x4024f000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x40261000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x4028e000)
        libneon.so.24 => /usr/lib/libneon.so.24 (0x402a2000)
        libssl.so.0.9.7 => /usr/lib/libssl.so.0.9.7 (0x402bd000)
        libcrypto.so.0.9.7 => /usr/lib/libcrypto.so.0.9.7 (0x402ef000)
        libdl.so.2 => /lib/libdl.so.2 (0x403f2000)
        libxml2.so.2 => /usr/lib/libxml2.so.2 (0x403f5000)
        libz.so.1 => /usr/lib/libz.so.1 (0x404ae000)
        libm.so.6 => /lib/i686/libm.so.6 (0x404bc000)
        libc.so.6 => /lib/i686/libc.so.6 (0x404de000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
symbol __pthread_clock_settime, version GLIBC_PRIVATE not defined in file
libpthread.so.0 with link time reference (/lib/i686/librt.so.1)
symbol __pthread_clock_gettime, version GLIBC_PRIVATE not defined in file
libpthread.so.0 with link time reference (/lib/i686/librt.so.1)
symbol __pthread_clock_settime, version GLIBC_PRIVATE not defined in file
libpthread.so.0 with link time reference (/lib/i686/librt.so.1)
symbol __pthread_clock_gettime, version GLIBC_PRIVATE not defined in file
libpthread.so.0 with link time reference (/lib/i686/librt.so.1)

However, running "ldd -d -r" on all of the SVN lib files in /usr/lib shows no
errors or warnings, so I'm assuming that the problem is in the executables.

Thanks in advance.

--
Give a man a match, and he'll be warm for a minute, but set him on
fire, and he'll be warm for the rest of his life.

Advanced SPAM filtering software: http://spamassassin.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Dec 31 09:31:45 2003

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.