--with-openssl support under FreeBSD ...
Kenichi Okada
okada at opaopa.org
Thu Feb 8 11:17:56 UTC 2001
In the message <Pine.BSF.4.31.0102072147510.6466-100000 at thelab.hub.org>
The Hermit Hacker <scrappy at hub.org> wrote:
> requires -lrsaref and -lRSAglue to compile, else you get:
>
> gcc -L/usr/local/lib -o .libs/nnrpd article.o group.o commands.o loadave.o misc.o newnews.o nnrpd.o perl.o perm.o post.o python.o sasl_config.o tls.o track.o ../storage/.libs/libstorage.so ../lib/.libs/libinn.so -ldb ../lib/perl.o -Wl,-R/usr/lib -Wl,-E -lperl -lm /usr/libdata/perl/5.00503/mach/auto/DynaLoader/DynaLoader.a -L/usr/libdata/perl/5.00503/mach/CORE -lperl -lm -lc -lperl -lm -L/usr/local/lib -lssl -lcrypto -lcrypt -Wl,--rpath -Wl,/news/admin/lib
> ../lib/.libs/libinn.so: warning: mktemp() possibly used unsafely; consider using mkstemp()
> /usr/local/lib/libcrypto.so: undefined reference to `ERR_load_RSAREF_strings'
> /usr/local/lib/libcrypto.so: undefined reference to `RSA_PKCS1_RSAref'
> *** Error code 1
>
> Stop in /news/src/cvs/inn/nnrpd.
> *** Error code 1
>
> Stop in /news/src/cvs/inn.
Thank you.
If openssl has been compiled with the rsaref2 libraries,
we need to include the rsaref libraries in the crypto check.
Try this patch.
*** inn-CURRENT-20010207-orig/configure.in Wed Feb 7 19:00:03 2001
--- inn-CURRENT-20010207/configure.in Thu Feb 8 20:16:54 2001
***************
*** 355,363 ****
else
SSL_BIN="${OPENSSL_DIR}/bin"
SSL_INC="-I${OPENSSL_DIR}/include"
- SSL_LIB="-L${OPENSSL_DIR}/lib -lssl -lcrypto"
AC_DEFINE(HAVE_SSL, 1, [Define if OpenSSL is available.])
AC_MSG_RESULT($OPENSSL_DIR)
fi
fi
AC_SUBST(SSL_BIN)
--- 355,366 ----
else
SSL_BIN="${OPENSSL_DIR}/bin"
SSL_INC="-I${OPENSSL_DIR}/include"
AC_DEFINE(HAVE_SSL, 1, [Define if OpenSSL is available.])
AC_MSG_RESULT($OPENSSL_DIR)
+ LIB_RSAREF=""
+ AC_CHECK_LIB(rsaref, RSA_PKCS1_RSAref,
+ LIB_RSAREF="-lRSAglue -lrsaref",)
+ SSL_LIB="-L${OPENSSL_DIR}/lib -lssl -lcrypto ${LIB_RSAREF}"
fi
fi
AC_SUBST(SSL_BIN)
--
Kenichi Okada
mailto:okada at opaopa.org
More information about the inn-workers
mailing list