[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: Yoshiki Hayashi <yoshiki_at_xemacs.org>
Date: 2002-02-04 07:31:51 CET

Sean Russell <ser@germane-software.com> writes:

> 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)

I meant libsvn_ra_dav.so, not svn.so. libapr should be
pulled in from other library's dependencies. Anyways, I
added back apr to required libraries list as Ruby bindings
really depends on it.

> [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 don't know why find_library doesn't find pthread on your
system but could you try the latest version from the
repository? If it does not work, please attach mkmf.log so
that I can see what's going wrong. Hard coding libpthread
is not an option because not all systems have libpthread.

-- 
Yoshiki Hayashi
---------------------------------------------------------------------
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:04 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.