[pjsip] openssl and mingw

Klaus Darilion klaus.mailinglists at pernau.at
Mon Feb 11 11:59:38 EST 2008



Klaus Darilion schrieb:
> 
> Klaus Darilion schrieb:
>> Hi!
>>
>> I have managed to build openssl under msys/mingw environment. How can I 
>> configure pjproject to find the include files and the static libraries?
> 
> Meanwhile I have found out that I can specify locations for gcc via 
> environment variables. I have issued:
> 
> export LIBRARY_PATH=/workspace/openssl-0.9.8g/ and
> export CPATH=/workspace/openssl-0.9.8g/include/
> 
> Now, the tests for the include file succeeds, but the test for -lssl 
> fails (see blow).

I managed to build the -lssl test by adding -lcrypto (after -lssl) and 
-lgdi32 to aconfigure.

Here is my ugly patch to aconfigure:


--- pjproject-trunk-2008-02-08/aconfigure       Fri Feb  8 10:57:34 2008
+++ _pjproject-trunk-2008-02-08/aconfigure      Mon Feb 11 16:54:25 2008
@@ -10835,7 +10835,7 @@
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
    ac_check_lib_save_LIBS=$LIBS
-LIBS="-lssl  $LIBS"
+LIBS="-lssl -lcrypto -lgdi32 $LIBS"
  cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
  _ACEOF
@@ -10956,7 +10956,7 @@
  { echo "$as_me:$LINENO: result: 
$ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
  echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; }
  if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then
-  libcrypto_present=1 && LIBS="$LIBS -lcrypto"
+  libcrypto_present=1 && LIBS="$LIBS -lcrypto -lgdi32"
  fi

                 if test "x$openssl_h_present" = "x1" -a 
"x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then






thanks
klaus




More information about the pjsip mailing list