[Box Backup-dev] RC3 Solaris testing

Martin Ebourne boxbackup-dev at fluffy.co.uk
Tue Feb 21 16:18:40 GMT 2006


This message is in MIME format.

--=_n8fwodkv3vk
Content-Type: text/plain;
	charset=ISO-8859-1;
	format="flowed"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

[resend]

On Mon, 2006-02-20 at 22:38 +0000, Chris Wilson wrote:
> Sure, please find attached.
>
> The magic lines:
>
> configure:7626: checking for SSL_read in -lssl
> configure:7656: g++ -o conftest -g -O2
>  	-I/home/users/g/gc/gcc/openssl-solaris-sparc/include
>  	-L/home/users/g/gc/gcc/openssl-solaris-sparc/lib conftest.cc
>  	-lssl  -lsocket -lnsl -lz -lrt  >&5
> Undefined                       first referenced
>   symbol                             in file
> CRYPTO_lock 
> /home/users/g/gc/gcc/openssl-solaris-sparc/lib/libssl.a(ssl_lib.o)
>
> Note the lack of -lcrypto and -ldl on the g++ command line.

Actually, they weren't the magic lines, it was the next couple of lines
where the test failed to rerun that were the clue.

Hopefully fixed the bug, new patch attached.

Also it's worth noting that you're trying to link against the static ssl
library, which isn't really supported and could be the reason it doesn't
work by default. I'm happy to try and make it work but can't guarantee
it.

Cheers,

Martin.


--=_n8fwodkv3vk
Content-Type: text/x-patch;
	charset=ISO-8859-1;
	name="box-ssl-conf.patch"
Content-Disposition: inline;
	filename="box-ssl-conf.patch"
Content-Transfer-Encoding: 7bit

Index: infrastructure/m4/ax_check_ssl.m4

===================================================================

--- infrastructure/m4/ax_check_ssl.m4	(revision 474)

+++ infrastructure/m4/ax_check_ssl.m4	(working copy)

@@ -27,7 +27,14 @@

 

   ax_check_ssl_found=yes

   AC_CHECK_HEADERS([openssl/ssl.h],, [ax_check_ssl_found=no])

-  AC_CHECK_LIB([ssl], [SSL_read],, [ax_check_ssl_found=no], [-lcrypto])

+  AC_CHECK_LIB([ssl], [SSL_read], [LIBS="-lssl $LIBS"], [

+    unset ac_cv_lib_ssl_SSL_read

+    AC_CHECK_LIB([ssl],

+                 [SSL_read],

+                 [LIBS="-lssl -lcrypto -ldl $LIBS"],

+                 [ax_check_ssl_found=no],

+                 [-lcrypto -ldl])

+    ],)

 

   if test "x$ax_check_ssl_found" = "xyes"; then

     AC_DEFINE([HAVE_SSL], 1, [Define to 1 if SSL is available])

Index: configure.ac

===================================================================

--- configure.ac	(revision 474)

+++ configure.ac	(working copy)

@@ -59,9 +59,9 @@

   [old-ssl],

   [AC_HELP_STRING([--enable-old-ssl],

                   [Allow use of pre-0.9.7 Open SSL - NOT RECOMMENDED, read the documentation])])

-AC_CHECK_LIB(

-  [crypto],

-  [EVP_CipherInit_ex],, [

+AC_SEARCH_LIBS(

+  [EVP_CipherInit_ex],

+  [crypto],, [

   if test "x$enable_old_ssl" = "xyes"; then

     AC_DEFINE([HAVE_OLD_SSL], 1, [Define to 1 if SSL is pre-0.9.7])

   else

@@ -179,7 +179,6 @@

   [static-bin],

   [AC_HELP_STRING([--enable-static-bin], [Link binaries with static libraries])])

 if test "x$enable_static_bin" = "xyes"; then

-  AC_CHECK_LIB([ssl],[SSL_read],,, [crypto])

   LIBS="-Wl,-Bstatic $LIBS -Wl,-Bdynamic"

 fi

 


--=_n8fwodkv3vk--



More information about the Boxbackup-dev mailing list