Static linking results in error,
$./configure
--prefix=/ebay/software/pkgs/linux/2.4.21/i686/subversion/1.5.4/
--without-apxs
--with-ssl
--with-libs=/ebay/software/pkgs/linux/2.4.21/i686/openssl/0.9.8i/lib/
--includedir=/ebay/software/pkgs/linux/2.4.21/i686/openssl/0.9.8i/includ
e
--disable-shared
......
......
checking for pkg-config... /usr/bin/pkg-config
checking for openssl pkg-config data... no
checking for library containing RSA_new... not found
configure: error: could not find library containing RSA_new
configure failed for neon
The openssl package contains libssl and libcrytpto libraries.
$cd /openssl/0.9.8i/lib
$nm -s libssl.a |grep RSA_new
U RSA_new
$nm -s libcrypto.a |grep RSA_new
RSA_new in rsa_lib.o
RSA_new_method in rsa_lib.o
00000000 T RSA_new
000000dc T RSA_new_method
U RSA_new
U RSA_new
U RSA_new
-----Original Message-----
From: Stefan Sperling [mailto:stsp_at_elego.de]
Sent: Monday, December 08, 2008 2:31 PM
To: Sankaran, Nambi
Cc: users_at_subversion.tigris.org
Subject: Re: Compiling Subversion with SSL Support - not happening
On Mon, Dec 08, 2008 at 01:46:42PM -0800, Sankaran, Nambi wrote:
> qa-release173:/ebay/software/pkgs/linux/2.4.21/i686/subversion/1.5.4/b
> in
> >
> $ldd svn
> libsvn_client-1.so.0 =>
> /ebay/software/pkgs/linux/2.4.21/i686/subversion/1.5.4/lib/libsvn_clie
> nt
> -1.so.0 (0x00ed8000)
> libsvn_wc-1.so.0 =>
> /ebay/software/pkgs/linux/2.4.21/i686/subversion/1.5.4/lib/libsvn_wc-1
> .s
> o.0 (0x003fc000)
> libsvn_ra-1.so.0 =>
> /ebay/software/pkgs/linux/2.4.21/i686/subversion/1.5.4/lib/libsvn_ra-1
> .s
> o.0 (0x00ceb000)
> libsvn_diff-1.so.0 =>
> /ebay/software/pkgs/linux/2.4.21/i686/subversion/1.5.4/lib/libsvn_diff
> -1
> .so.0 (0x006f6000)
> libsvn_ra_local-1.so.0 =>
> /ebay/software/pkgs/linux/2.4.21/i686/subversion/1.5.4/lib/libsvn_ra_l
> oc
> al-1.so.0 (0x00a31000)
> libsvn_repos-1.so.0 =>
> /ebay/software/pkgs/linux/2.4.21/i686/subversion/1.5.4/lib/libsvn_repo
> s-
> 1.so.0 (0x00179000)
> libsvn_fs-1.so.0 =>
> /ebay/software/pkgs/linux/2.4.21/i686/subversion/1.5.4/lib/libsvn_fs-1
> .s
> o.0 (0x00111000)
> libsvn_fs_fs-1.so.0 =>
> /ebay/software/pkgs/linux/2.4.21/i686/subversion/1.5.4/lib/libsvn_fs_f
> s-
> 1.so.0 (0x00bf3000)
> libsvn_fs_util-1.so.0 =>
> /ebay/software/pkgs/linux/2.4.21/i686/subversion/1.5.4/lib/libsvn_fs_u
> ti
> l-1.so.0 (0x00586000)
> libsvn_ra_svn-1.so.0 =>
> /ebay/software/pkgs/linux/2.4.21/i686/subversion/1.5.4/lib/libsvn_ra_s
> vn
> -1.so.0 (0x00750000)
> libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x00bce000)
> libresolv.so.2 => /lib/libresolv.so.2 (0x00bb0000)
> libsvn_ra_neon-1.so.0 =>
> /ebay/software/pkgs/linux/2.4.21/i686/subversion/1.5.4/lib/libsvn_ra_n
> eo
> n-1.so.0 (0x007a5000)
> libsvn_ra_serf-1.so.0 =>
> /ebay/software/pkgs/linux/2.4.21/i686/subversion/1.5.4/lib/libsvn_ra_s
> er
> f-1.so.0 (0x0092f000)
> libserf-0.so.0 =>
>
/ebay/software/pkgs/linux/2.4.21/i686/subversion/1.5.4/lib/libserf-0.so.
> 0 (0x00671000)
> libsvn_delta-1.so.0 =>
> /ebay/software/pkgs/linux/2.4.21/i686/subversion/1.5.4/lib/libsvn_delt
> a-
> 1.so.0 (0x00d30000)
> libsvn_subr-1.so.0 =>
> /ebay/software/pkgs/linux/2.4.21/i686/subversion/1.5.4/lib/libsvn_subr
> -1
> .so.0 (0x00f92000)
> libaprutil-1.so.0 =>
>
/ebay/software/pkgs/linux/2.4.21/i686/subversion/1.5.4/lib/libaprutil-1.
> so.0 (0x00e76000)
> libexpat.so.0 =>
> /ebay/software/pkgs/linux/2.4.21/i686/apr-util/1.2.12/lib/libexpat.so.
> 0
> (0x00116000)
> libapr-1.so.0 =>
> /ebay/software/pkgs/linux/2.4.21/i686/subversion/1.5.4/lib/libapr-1.so
> .0
> (0x00628000)
> librt.so.1 => /lib/tls/librt.so.1 (0x00131000)
> libcrypt.so.1 => /lib/libcrypt.so.1 (0x00b5c000)
> libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00d69000)
> libdl.so.2 => /lib/libdl.so.2 (0x00e6e000)
> libssl.so.0.9.8 => not found
> libcrypto.so.0.9.8 => not found
> libz.so.1 => /usr/lib/libz.so.1 (0x004f0000)
> libc.so.6 => /lib/tls/libc.so.6 (0x0019a000)
> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00a04000)
> libssl.so.0.9.8 => not found
> libcrypto.so.0.9.8 => not found
>
>
> Now I have already built and installed openssl under
>
> /ebay/software/pkgs/linux/2.4.21/i686/openssl/0.9.8i
>
> "svn" works if I set the LD_LIBRARY_PATH export
> LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/ebay/software/pkgs/linux/2.4.21/i686
> /o
> penssl/0.9.8i/lib
Great. I'm not sure how this should normally work on Linux, but if that
works, then great.
Maybe you can also add that directory to /etc/ld.so.conf to avoid having
to set the environment variable?
> The "configure" command I used for svn build is
>
> $./configure
> --prefix=/ebay/software/pkgs/linux/2.4.21/i686/subversion/1.5.4/
> --without-apxs --with-ssl
> --with-libs=/ebay/software/pkgs/linux/2.4.21/i686/openssl/0.9.8i/lib/
> --includedir=/ebay/software/pkgs/linux/2.4.21/i686/openssl/0.9.8i/incl
> ud
> e
>
> Is this good?
It does not look wrong to me at all.
Note that, since you're building without apache anyway, you might as
well link everything statically (--disable-shared).
Then you won't have any problems with binaries not finding shared libs.
Stefan
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=981362
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2008-12-09 22:48:33 CET