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

RE: Compiling Subversion with SSL Support - not happening

From: Sankaran, Nambi <nsankaran_at_ebay.com>
Date: Fri, 12 Dec 2008 12:15:58 -0800

Hi Stefan

Thanks for looking into this issue.

I do have openssl in the system

$ls -l /ebay/software/pkgs/linux/2.4.21/i686/openssl/0.9.8i/
total 16
drwxrwxr-x 2 automan automan 4096 Dec 3 09:51 bin
drwxrwxr-x 5 automan automan 4096 Dec 5 19:00 include
drwxrwxr-x 4 automan automan 4096 Dec 3 09:51 lib
drwxrwxr-x 6 automan automan 4096 Dec 3 09:51 openssl

$ls -l /ebay/software/pkgs/linux/2.4.21/i686/openssl/0.9.8i/lib
total 3976
drwxrwxr-x 2 automan automan 4096 Dec 3 09:51 engines
-rw-r--r-- 1 automan automan 2066688 Dec 3 09:51 libcrypto.a
lrwxrwxrwx 1 automan automan 18 Dec 3 09:51 libcrypto.so ->
libcrypto.so.0.9.8
-r-xr-xr-x 1 automan automan 1340071 Dec 3 09:51
libcrypto.so.0.9.8
-rw-r--r-- 1 automan automan 363360 Dec 3 09:51 libssl.a
lrwxrwxrwx 1 automan automan 15 Dec 3 09:51 libssl.so ->
libssl.so.0.9.8
-r-xr-xr-x 1 automan automan 266769 Dec 3 09:51 libssl.so.0.9.8
drwxrwxr-x 2 automan automan 4096 Dec 2 16:53 pkgconfig

Following your suggestion I tried the following "configure" command

$./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/
        
--includedir=/ebay/software/pkgs/linux/2.4.21/i686/openssl/0.9.8i/includ
e
        --disable-shared

checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking openssl/opensslv.h usability... no
checking openssl/opensslv.h presence... no
checking for openssl/opensslv.h... no
configure: error: We require OpenSSL; try --with-openssl
configure failed for serf

Since, the error message is "try --with-openssl", I tried the following
command

./configure
        --prefix=/ebay/software/pkgs/linux/2.4.21/i686/subversion/1.5.4/

        --without-apxs
        
--with-openssl=/ebay/software/pkgs/linux/2.4.21/i686/openssl/0.9.8i/
        
--with-libs=/ebay/software/pkgs/linux/2.4.21/i686/openssl/0.9.8i/
        
--includedir=/ebay/software/pkgs/linux/2.4.21/i686/openssl/0.9.8i/includ
e
        --disable-shared

config.status: subversion/svn_private_config.h is unchanged
config.status: executing mkdir-init commands
configure: WARNING: Unrecognized options: --with-openssl, --with-libs
configure: WARNING: we have configured without BDB filesystem support

I have attached the config log files.

-----Original Message-----
From: Stefan Sperling [mailto:stsp_at_elego.de]
Sent: Friday, December 12, 2008 6:04 AM
To: Sankaran, Nambi
Cc: users_at_subversion.tigris.org
Subject: Re: Compiling Subversion with SSL Support - not happening

On Thu, Dec 11, 2008 at 12:44:54PM -0800, Sankaran, Nambi wrote:
> Stefen
>
> I have attached the subversion and neon config log files.

Hi,

the failing bit is this:

configure:27782: gcc -o conftest -g -O2
-I/ebay/software/pkgs/linux/2.4.21/i686/openssl/0.9.8i/lib//include
-D_LARGEFILE64_SOURCE -DNE_LFS
-L/ebay/software/pkgs/linux/2.4.21/i686/openssl/0.9.8i/lib//lib
conftest.c -lcrypto -ldl -lz >&5
/usr/bin/ld: cannot find -lcrypto
collect2: ld returned 1 exit status
configure:27788: $? = 1

Please run something like

 $ find /ebay/software/pkgs/linux/2.4.21/i686/openssl -name '*crypto*'

to locate the libcrypto library.

Note that you pass this directory as library search path:

  -L/ebay/software/pkgs/linux/2.4.21/i686/openssl/0.9.8i/lib//lib
                                                         ^^^^^^^^ Note
that double "lib". That looks wrong.
Does the directory .../openssl/0.9.8i/lib/lib actually exist?

Maybe that should be
  -L/ebay/software/pkgs/linux/2.4.21/i686/openssl/0.9.8i/lib

This also looks wrong:
  -I/ebay/software/pkgs/linux/2.4.21/i686/openssl/0.9.8i/lib//include

I'd expect something like:
  -I/ebay/software/pkgs/linux/2.4.21/i686/openssl/0.9.8i/include

Stefan

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].

Received on 2008-12-12 23:41:14 CET

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.