Patch for compilation errors with INN 2.3.2

Roman Gollent roman at pobox.com
Sat Jun 30 01:49:09 UTC 2001



Hi,

First off, I would like to thank you for your hard work in
maintaining INN for the rest of us!  

I am guessing that few people compile INN using Sun's C
compiler (or at least they don't care about OpenSSL if they
do :-).

The following patch should fix several issues which cause
openssl libraries from being detected properly.  Basically
Forte C 6.0 is very pedantic about the order in which it
receives linking options, basically -L/path/to/ssl needs to
precede -lssl which needs to precede -lcrypto.  Otherwise
the libraries won't be found and if -lssl comes after
-lcrypto the compiler will complain about lots of undefined
symbol.  Be forewarned that I do not have an autoconf setup
so I haven't tested whether this generates a working
configure, but at least it illustrates the basic gist of the
problem.

Best Regards,
Roman


*** configure.in        Fri Jun 29 18:17:38 2001
--- configure.in.orig   Fri Jun 29 18:16:09 2001
***************
*** 744,755 ****
               ,,$SSL_LIB)
        AC_CHECK_LIB(rsaref, RSAPublicEncrypt,
                SSL_LIB="${SSL_LIB} -lRSAglue -lrsaref",,$SSL_LIB)
!       AC_CHECK_LIB(ssl, SSL_CTX_new,
!               SSL_LIB="${SSL_LIB} -lssl";
                [AC_MSG_ERROR(Can not find OpenSSL)],
                $SSL_LIB)
!       AC_CHECK_LIB(crypto,BIO_accept,
!               SSL_LIB="${SSL_LIB} -lcrypto",
                [AC_DEFINE(HAVE_SSL, 1, [Define if OpenSSL is available.])],
                [AC_MSG_ERROR(Can not find OpenSSL)],
                $SSL_LIB)
--- 744,755 ----
               ,,$SSL_LIB)
        AC_CHECK_LIB(rsaref, RSAPublicEncrypt,
                SSL_LIB="${SSL_LIB} -lRSAglue -lrsaref",,$SSL_LIB)
!       AC_CHECK_LIB(crypto,BIO_accept,
!               SSL_LIB="-lcrypto ${SSL_LIB}",
                [AC_MSG_ERROR(Can not find OpenSSL)],
                $SSL_LIB)
!       AC_CHECK_LIB(ssl, SSL_CTX_new,
!               SSL_LIB="-lssl ${SSL_LIB}";
                [AC_DEFINE(HAVE_SSL, 1, [Define if OpenSSL is available.])],
                [AC_MSG_ERROR(Can not find OpenSSL)],
                $SSL_LIB)



More information about the inn-bugs mailing list