Re: Update folly and proxygen to link in different version of openssl libraries (libssl.a/libcrypto.a)

129 views
Skip to first unread message
Message has been deleted

joel schuetze

unread,
Nov 25, 2015, 10:50:04 AM11/25/15
to Folly: the Facebook Open-source LibrarY


On Wednesday, November 25, 2015 at 7:40:35 AM UTC-8, joel schuetze wrote:
Greetings,

I'm looking for guidance on how to update the folly and proxygen framework to link to different version of the openssl libraries.  I believe the modifications would need to be made to these files:
/proxygen-0.32.0/proxygen/folly/folly/configure
/proxygen-0.32.0/proxygen/configure

Within these configuration files, the logic to check for libssl is as follows:

#ifdef __cplusplus
extern "C"
#endif
char SSL_ctrl ();
int
main ()
{
return SSL_ctrl ();
  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
  ac_cv_lib_ssl_SSL_ctrl=yes
else
  ac_cv_lib_ssl_SSL_ctrl=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_ctrl" >&5
$as_echo "$ac_cv_lib_ssl_SSL_ctrl" >&6; }
if test "x$ac_cv_lib_ssl_SSL_ctrl" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSSL 1
_ACEOF

  LIBS="-lssl $LIBS"

else
  as_fn_error $? "\"Error: libssl required\"" "$LINENO" 5
fi
 
I attempted to replace the following line with explicit path to version of lssl. 
       LIBS="-lssl $LIBS"

       LIBS="/usr/local/ssl/lib/libssl.a  $LIBS"

The following error is returned. 
             "Error: libssl required\"" "$LINENO" 5

This error indicates that that this check fails:
        if test "x$ac_cv_lib_ssl_SSL_ctrl" = xyes; then :

Any help or pointers is much appreciated.

Thanks,
Joel 
Reply all
Reply to author
Forward
0 new messages