On Wed, Nov 24, 2010 at 11:49:16AM +0000, Dave Walker wrote: > I'd like to raise that the Debian package imported to Ubuntu Natty > failed to build from source. A bug has been opened against this > package in Ubuntu [0]. > > I believe it is due to linker behaviour change in Natty: > "The linking behaviour was changed to not resolve symbols anymore > in indirectly linked shared libraries. A binary directly using > a symbol from a shared library has to link with this library. > Details can be found at [3], an analysis of required changes (and > some patches) for packages in main can be found at [4]. A list > of open issues is found at [5]. > " -- [1] > > This pretty much means that -lcrypto explicitly needs to be added > where -lssl is used. I've added a trivial patch [2] to the Ubuntu > package to achieve this, and seems to resolve the build failure. > However, it should probably be part of configure.ac.
Thank you for the report. It looks like Open vSwitch just needs to use pkg-config to check for openssl instead of libssl. Here's a patch, does it fix it? Thanks, Ben. --8<--------------------------cut here-------------------------->8-- From: Ben Pfaff <[email protected]> Date: Wed, 24 Nov 2010 12:25:10 -0800 Subject: [PATCH] configure: Check for pkg-config "openssl" library instead of "libssl". Checking for libssl only does not necessarily link against libcrypto, so the build can gratuitously fail. Reported-by: Dave Walker <[email protected]> Ubuntu bug #680439. --- AUTHORS | 1 + m4/openvswitch.m4 | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/AUTHORS b/AUTHORS index 3e80eef..d283def 100644 --- a/AUTHORS +++ b/AUTHORS @@ -40,6 +40,7 @@ Brad Hall [email protected] Brandon Heller [email protected] Bryan Fulton [email protected] Cedric Hobbs [email protected] +Dave Walker [email protected] Derek Cormier [email protected] DK Moon [email protected] Ghanem Bahri [email protected] diff --git a/m4/openvswitch.m4 b/m4/openvswitch.m4 index c5f0742..fe30eec 100644 --- a/m4/openvswitch.m4 +++ b/m4/openvswitch.m4 @@ -75,18 +75,18 @@ AC_DEFUN([OVS_CHECK_OPENSSL], if test "$ssl" != false; then dnl Make sure that pkg-config is installed. m4_pattern_forbid([PKG_CHECK_MODULES]) - PKG_CHECK_MODULES([SSL], [libssl], + PKG_CHECK_MODULES([SSL], [openssl], [HAVE_OPENSSL=yes], [HAVE_OPENSSL=no if test "$ssl" = check; then - AC_MSG_WARN([Cannot find libssl: + AC_MSG_WARN([Cannot find openssl: $SSL_PKG_ERRORS OpenFlow connections over SSL will not be supported. (You may use --disable-ssl to suppress this warning.)]) else - AC_MSG_ERROR([Cannot find libssl (use --disable-ssl to configure without SSL support)]) + AC_MSG_ERROR([Cannot find openssl (use --disable-ssl to configure without SSL support)]) fi]) else HAVE_OPENSSL=no -- 1.7.1 _______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss_openvswitch.org
