Menu

v2.4.0x, Solaris, SSL question

2008-03-26
2013-01-14
  • Harvey King

    Harvey King - 2008-03-26

    I am having problem with enabling SSL.

    The main issue is that on the system i am on is rather old, and I have no root access so I have to live with what I got.

    Two part questions.  First question is relatively easy.

    In terms of SSL, I actually have two choices, the GnuTLS or Netscape nspr.  Is that right?

    I pain-stakingly configure it so nspr is enabled using various configure flag:

    --with-nss-includes=/usr/sfw/include/mozilla/nss
    --with-nspr-includes=/usr/sfw/include/mozilla/nspr
    --with-nss-libs=/usr/sfw/lib/mozilla
    --with-nspr-libs=/usr/sfw/lib/mozilla
    --enable-gnutls=no
    --enable-nss=static

    It compiles and runs.  But when I am trying to enable MSN, it still complains that I don't have SSL enabled.

    Question 1:  What have I done wrong?  does MSN requires gnutls instead of nss?

    The second question (which should be the first one) is that I couldn't get ssl library compiled when i choose the gnutls option.  The compiler's error messages are:

    ssl-gnutls.c: In function `ssl_gnutls_connect':
    ssl-gnutls.c:269: warning: passing arg 2 of `gnutls_transport_set_ptr' makes integer from pointer without a cast
    ssl-gnutls.c: In function `x509_common_name':
    ssl-gnutls.c:840: warning: passing arg 5 of `gnutls_x509_crt_get_dn_by_oid' from incompatible pointer type
    ssl-gnutls.c:840: error: too many arguments to function `gnutls_x509_crt_get_dn_by_oid'
    ssl-gnutls.c:851: warning: passing arg 5 of `gnutls_x509_crt_get_dn_by_oid' from incompatible pointer type
    ssl-gnutls.c:851: error: too many arguments to function `gnutls_x509_crt_get_dn_by_oid'
    ssl-gnutls.c: In function `x509_check_name':
    ssl-gnutls.c:873: error: implicit declaration of function `gnutls_x509_crt_check_hostname'
    ssl-gnutls.c:873: warning: nested extern declaration of `gnutls_x509_crt_check_hostname'
    gmake[5]: *** [ssl_gnutls_la-ssl-gnutls.lo] Error 1

    Any ideas?

    Thanks

     
    • Etan Reisner

      Etan Reisner - 2008-03-30

      Did you read the output of ./configure? It will tell you if SSL is or is not actually enabled correctly. Also Help->About will tell you what pidgin believes has and has not been enabled in the build. If either of those places indicates that SSL support was not enabled then you have discovered something didn't build/configure correctly, if they both indicate it was built correctly and it still doesn't work then you want to check that the built ssl-nss plugin correctly links to the nss libraries and that ldd can find it all (that is that the path to your nss libraries is correctly in your ld library path).

      I have no idea about the gnutls compilation errors other than the thought that perhaps your gnutls version is either too new or too old.