• Alpine 2.26 on Openbsd

    From Roderick@hruodr@gmail.com to comp.mail.pine on Mon Dec 19 22:27:33 2022
    From Newsgroup: comp.mail.pine


    Hallo!

    I get the errors below. I suppose that it is because OpenBSD uses
    LibreSSL?

    I installed also OpenSSL, and still get errors, perhaps becuase
    I did not set correctly the paths?

    --with-ssl-dir=DIR
    --with-ssl-include-dir=DIR
    --with-ssl-lib-dir=DIR

    How I do recognise these directories?

    Thanks for any Hint
    Rodrig



    ----
    In file included from osdep.c:46:
    ./env_unix.c:1910:6: warning: address of array 'userFlags' will always evaluate to 'true' [-Wpointer-bool-conversion]
    if(userFlags){
    ~~ ^~~~~~~~~
    osdep.c:672:11: error: incomplete definition of type 'struct x509_st'
    if (cert->name == NIL)
    ~~~~^
    /usr/include/openssl/ossl_typ.h:131:16: note: forward declaration of 'struct x509_st'
    typedef struct x509_st X509;
    ^
    osdep.c:674:29: error: incomplete definition of type 'struct x509_st'
    else if ((s = strstr (cert->name,"/CN=")) != NIL) {
    ~~~~^
    /usr/include/openssl/ossl_typ.h:131:16: note: forward declaration of 'struct x509_st'
    typedef struct x509_st X509;
    ^
    osdep.c:721:16: error: incomplete definition of type 'struct x509_st'
    && !cert->name
    ~~~~^
    /usr/include/openssl/ossl_typ.h:131:16: note: forward declaration of 'struct x509_st'
    typedef struct x509_st X509;
    ^
    1 warning and 3 errors generated.
    *** Error 1 in c-client (Makefile:948 'osdep.o')
    *** Error 2 in c-client (Makefile:286 'bso')
    *** Error 2 in . (Makefile:701 'OSTYPE')
    *** Error 2 in /usr/opt/Alpine/alpine-2.26/imap (Makefile:339 'bso')
    gmake: *** [Makefile:979: c-client] Error 2
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Roderick@hruodr@gmail.com to comp.mail.pine on Mon Dec 19 22:42:53 2022
    From Newsgroup: comp.mail.pine


    It builds with:

    --with-ssl-include-dir=/usr/local/include/eopenssl30
    --with-ssl-lib-dir=/usr/local/lib/eopenssl30

    but I see in the source Dir of Alpine a directory libressl. Does it
    compile with libressl?


    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Roderick@hruodr@gmail.com to comp.mail.pine on Mon Dec 19 23:01:01 2022
    From Newsgroup: comp.mail.pine



    And where must --with-ssl-certs-dir= point to?
    To the directory /etc/ssl ?
    Inside is a file cert.pem and a directory private, but no
    directory certs/

    R.

    On Mon, 19 Dec 2022, Roderick wrote:


    It builds with:

    --with-ssl-include-dir=/usr/local/include/eopenssl30 --with-ssl-lib-dir=/usr/local/lib/eopenssl30

    but I see in the source Dir of Alpine a directory libressl. Does it
    compile with libressl?



    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Roderick@hruodr@gmail.com to comp.mail.pine on Mon Dec 19 23:14:02 2022
    From Newsgroup: comp.mail.pine


    On Mon, 19 Dec 2022, Roderick wrote:

    And where must --with-ssl-certs-dir= point to?

    In FreeBSD I put there /usr/local/share/certs that contains
    ca-root-nss.crt

    And it was installed by package ca_root_nss-3.83


    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Roderick@hruodr@gmail.com to comp.mail.pine on Tue Dec 20 00:26:17 2022
    From Newsgroup: comp.mail.pine



    On Mon, 19 Dec 2022, Roderick wrote:

    On Mon, 19 Dec 2022, Roderick wrote:

    And where must --with-ssl-certs-dir= point to?

    In FreeBSD I put there /usr/local/share/certs that contains
    ca-root-nss.crt

    And it was installed by package ca_root_nss-3.83

    Independent of what I put in --with-ssl-certs-dir=DIR,
    I get the error of validating failure. Why?!

    --- Synchronet 3.21d-Linux NewsLink 1.2