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

Re: Ruby makefile maker (not really [PATCH] INSTALL...)

From: Sean Russell <ser_at_germane-software.com>
Date: 2002-01-31 16:07:37 CET

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 31 January 2002 02:49, Yoshiki Hayashi wrote:
> It works fine on my system. What is the output of ldd?

The apr-config tool isn't adding libapr to the build.

  ser@valentine subversion/bindings/ruby $ ldd svn.so
        libsvn_ra.so.0 => /usr/local/lib/libsvn_ra.so.0 (0x40029000)
        libsvn_wc.so.0 => /usr/local/lib/libsvn_wc.so.0 (0x4002c000)
        libsvn_client.so.0 => /usr/local/lib/libsvn_client.so.0 (0x4004b000)
        libsvn_delta.so.0 => /usr/local/lib/libsvn_delta.so.0 (0x40056000)
        libsvn_subr.so.0 => /usr/local/lib/libsvn_subr.so.0 (0x40061000)
        libc.so.6 => /lib/libc.so.6 (0x40075000)
        libm.so.6 => /lib/libm.so.6 (0x401b3000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x401d6000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x40204000)
        libdl.so.2 => /lib/libdl.so.2 (0x4021a000)
        libsvn_ra_dav.so.0 => /usr/local/lib/libsvn_ra_dav.so.0 (0x4021e000)
        libneon.so.18 => /usr/local/lib/libneon.so.18 (0x4022d000)
        libz.so.1 => /lib/libz.so.1 (0x40245000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

  ser@valentine subversion/bindings/ruby $ apr-config --ldflags

  ser@valentine subversion/bindings/ruby $ apr-config --libs
  -lm -lcrypt -lnsl -ldl
  ser@valentine subversion/bindings/ruby $ apr-config --cflags
  -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes \
  -Wmissing-declarations -pthread

apr isn't making it in there. So then I add apr back to the libs array,
recompile, reinstall, and I get:

  [root@valentine ruby]# ruby -rsvn -e ''
  ruby: error while loading shared libraries: /usr/local/lib/libapr.so.0: \
  undefined symbol: pthread_mutexattr_init

If I add pthreads back to the libs array, it works. Patch follows, but
making it work just requires putting apr and pthreads back in the libs array.

> I'll attach it to the next mail.

Got it.

*** /home/ser/Work/svn/subversion/bindings/ruby/extconf.rb Wed Jan 30
08:56:53 2002
- --- extconf.rb Thu Jan 31 06:58:52 2002
***************
*** 22,28 ****
  $CFLAGS << ' -I. '

  # Extra libraries needed to compile
! libraries = %w{svn_subr svn_delta svn_client svn_wc svn_ra}
  libraries.each do |lib|
    unless have_library(lib, nil)
      puts "You seem to be missing the #{lib} library.\nI can't compile the "+
- --- 22,28 ----
  $CFLAGS << ' -I. '

  # Extra libraries needed to compile
! libraries = %w{pthread apr svn_subr svn_delta svn_client svn_wc svn_ra}
  libraries.each do |lib|
    unless have_library(lib, nil)
      puts "You seem to be missing the #{lib} library.\nI can't compile the "+

- --
 |.. "This is America, we have freedom *of* religion. Why can't we have
<|> freedom *from* religion as well??"
/|\ -- anon
/|
 |
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8WV26P0KxygnleI8RAn2DAKC72L9KZgHon52FV5C5Bm6qpZYGtACgskjq
8gElHQwFuNbrg7nIpg4dbGM=
=KHLb
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:37:01 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.