Problem compiling s-nail

edvanleeuwen

Verified User
Joined
Nov 18, 2013
Messages
148
I having problems building s-nail 14.9.16. The previous version compiled properly.

Messages:

Code:
In file included from /usr/include/openssl/x509.h:582:0,
                 from /usr/include/openssl/pem.h:70,
                 from /usr/local/directadmin/custombuild/s-nail-14.9.16/src/mx/xtls.c:58:
/usr/include/openssl/pkcs7.h:348:17: note: expected 'struct stack_st_X509 *' but argument is of type 'int *'
STACK_OF(X509) *PKCS7_get0_signers(PKCS7 *p7, STACK_OF(X509) *certs,
                 ^
/usr/local/directadmin/custombuild/s-nail-14.9.16/src/mx/xtls.c:2611:10: warning: assignment from incompatible pointer type [enabled by default]
    certs = PKCS7_get0_signers(pkcs7, chain, 0);
          ^

Version:
OpenSSL 1.0.2k-fips 26 Jan 2017

What am I doing wrong?
 
Centos 7
Linux 3.10.0-1062.9.1.el7.x86_64 #1 SMP Fri Dec 6 15:49:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
 
I was unable to reproduce it. Do you have a custom-compiled OpenSSL there? I'd suggest opening a ticket with access details.
 
I have had a custom-compiled OpenSSL, but have reverted to the standard. What I can see from the initialization, this seems to be correct:

Code:
 . TLS (LibreSSL) ... no
 . TLS (OpenSSL >= v1.1.1) ... no
 . TLS (OpenSSL >= v1.1.0) ... no
 . TLS (OpenSSL) ... yes
 . TLS new style TLS_client_method(3ssl) ... no
 . TLS old style SSLv23_client_method(3ssl) ... no
 
I have had a custom-compiled OpenSSL, but have reverted to the standard. What I can see from the initialization, this seems to be correct:

Code:
. TLS (LibreSSL) ... no
. TLS (OpenSSL >= v1.1.1) ... no
. TLS (OpenSSL >= v1.1.0) ... no
. TLS (OpenSSL) ... yes
. TLS new style TLS_client_method(3ssl) ... no
. TLS old style SSLv23_client_method(3ssl) ... no
Likely some header files still present on the system?
 
Yes, that's what I thought. But sofar as I can see I have removed the old files. Is there a way to determine which header files are used during compilation?
 
The steps were wrong, as you removed OS version of openssl. I’d suggest reinstalling using yum and removing libs from /usr/local/lib and header from /usr/local/include then.
 
I removed the version I had installed myself (1.1.1b). Then I reinstalled the OS ones (step 4 in my other message):
yum reinstall openssl openssl-devel openssl-libs
 
I removed the version I had installed myself (1.1.1b). Then I reinstalled the OS ones (step 4 in my other message):
yum reinstall openssl openssl-devel openssl-libs
Please check that 2 folders mentioned above.
 
I removed the libssl from /usr/local/lib. I removed the openssl dir from /usr/local/include. Still an error.
I removed /usr/include/openssl. Compilation succeeds.
Did a reinstall of openssl openssl-devel openssl-libs. This restores /usr/include/openssl.

Problem is that when I remove libssl.so.1.1 from /usr/local/lib, yum does not work any longer, due to a dependency in pycurl.
 
I removed the libssl from /usr/local/lib. I removed the openssl dir from /usr/local/include. Still an error.
I removed /usr/include/openssl. Compilation succeeds.
Did a reinstall of openssl openssl-devel openssl-libs. This restores /usr/include/openssl.

Problem is that when I remove libssl.so.1.1 from /usr/local/lib, yum does not work any longer, due to a dependency in pycurl.
/usr/local/lib is not a system version of openssl, it should not be there. Please create a support ticket for the assistance on removal of openssl.
 
Back
Top