krzysiekb81
Verified User
- Joined
- Oct 9, 2016
- Messages
- 9
Hello,
I encountered following problem:
Any ideas how to patch it? Thank you!
I encountered following problem:
Code:
# ./build s-nail
Found /usr/local/directadmin/custombuild/s-nail-14.9.17.tar.gz
Extracting ...
Done.
Making s-nail...
Operating system is FreeBSD
Checking for basic utility set
Setting up configuration options ... CONFIG=MAXIMAL ... done
Joining in ./make.rc ... done
Checking for remaining set of utilities
Evaluating all configuration items ... done
Using C compiler ${CC}=clang
. CC compiles "Hello world" .. yes
. Compiled program works .. yes
Testing usable ${CFLAGS}/${LDFLAGS} for ${CC}=clang
. CC -std=c99 .. yes
. CC -O3 .. yes
. CC -W .. yes
. CC -Wall .. yes
. CC -Wextra .. yes
. CC -pedantic .. yes
. CC -Wno-uninitialized .. yes
. CC -Wno-unused-result .. yes
. CC -Wno-unused-value .. yes
. CC -fno-unwind-tables .. yes
. CC -fno-asynchronous-unwind-tables .. yes
. CC -fstrict-aliasing .. yes
. CC -fstrict-overflow .. yes
. CC -fstack-protector-strong .. yes
. CC -D_FORTIFY_SOURCE=2 .. yes
. LD -Wl,-z,relro .. yes
. LD -Wl,-z,now .. yes
. LD -Wl,-z,noexecstack .. yes
. LD -Wl,--as-needed .. yes
. LD -Wl,-rpath .. yes
. LD -Wl,--enable-new-dtags .. yes
. CC -fPIE .. yes
. LD -pie .. yes
Shiny configuration..
. OS error mapping table generated ... yes
. clock_gettime(2) ... yes
. nanosleep(2) ... yes
. gete?[gu]id(2), getpwuid(3), getpwnam(3) ... yes
. ftruncate(2) ... yes
. SA_RESTART (for sigaction(2)) ... yes
. snprintf(3) ... yes
. environ(3) ... yes
. (un)?setenv(3) ... yes
. termios.h and tc*(3) family ... yes
. vsnprintf(3) ... yes
. va_copy(3) (as va_copy) ... yes
. f?pathconf(2) ... yes
. pipe2(2) ... yes
. tcgetwinsize(3) ... no
. utimensat(2) ... yes
. putc_unlocked(3) ... yes
. fchdir(3) ... yes
. realpath(3) ... yes
. realpath(3) takes NULL ... yes
. readlink(2) ... yes
. fchown(2) ... yes
. prctl(2) + PR_SET_DUMPABLE ... no
. ptrace(2) + PT_DENY_ATTACH ... no
. setpflags(2) + __PROC_PROTECT ... no
. setlocale(3) ... yes
. ISO/IEC 9899:1990/Amendment 1:1995 ... yes
. wcwidth(3) ... yes
. nl_langinfo(3) ... yes
. fnmatch(3) ... yes
. struct dirent.d_type ... yes
. iconv(3) functionality ... yes
. AF_UNIX sockets ... yes
. sockets ... yes
. [gs]etsockopt(2) ... yes
. non-blocking sockets ... yes
. getaddrinfo(3) ... yes
. SO_{RCV,SND}TIMEO ... no
. SO_LINGER ... yes
. 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) ... yes
. TLS STACK_OF() ... yes
. TLS OpenSSL_modules_load_file(3ssl) support ... no
. TLS SSL_CONF_CTX support ... no
. TLS SSL_CTX_set_min_proto_version(3ssl) ... no
. TLSv1.3 SSL_CTX_set_ciphersuites(3ssl) ... yes
. TLS all-algorithms support ... no
! NOTICE: unsupported: OPT_TLS_ALL_ALGORITHMS
. TLS: BLAKE2 digests ... yes
. TLS: SHA-3 digests ... yes
. TLS: MD5 digest ... yes
. VAL_RANDOM: arc4random(3) ... yes
. GSS-API via krb5-config(1) ... yes
. OPT_IDNA->VAL_IDNA: idnkit ... no
. OPT_IDNA->VAL_IDNA: GNU Libidn2 ... no
. OPT_IDNA->VAL_IDNA: GNU Libidn ... no
! NOTICE: unsupported: OPT_IDNA
. regular expressions ... yes
. terminfo(5) (via -ltinfo) ... yes
. (disabled: OPT_ALWAYS_UNICODE_LOCALE)
. (disabled: OPT_CROSS_BUILD)
Creating object make rules
The following features are included (+) or not (-):
+ locales: Locale support - printable characters etc. depend on environment
+ multibyte-charsets: Multibyte character sets
+ terminal-charset: Automatic detection of terminal character set
+ wide-glyphs: Wide glyph support
+ cmd-csop: csop command: C-style string operations
+ cmd-vexpr: vexpr command: evaluate arguments as expressions
+ colour: Coloured message display
+ docstrings: Command documentation help strings
+ dotlock: Dotlock files and privilege-separated dotlock program
+ errors: Log message ring
+ filter-html-tagsoup: Simple built-in HTML-to-text display filter
+ filter-quote-fold: Extended *quote-fold*ing filter
+ iconv: Character set conversion using iconv(3)
- idna: Internationalized Domain Names for Applications (encode only)
+ imap-search: IMAP-style search expressions
+ mailcap: MIME type handlers defined via mailcap file(s)
+ maildir: Maildir E-mail directories
+ mle: Mailx Line Editor
+ history: Line editor history management
+ key-bindings: Configurable key bindings
+ termcap: Terminal capability queries (termcap(5))
+ termcap-via-terminfo: Terminal capability queries use terminfo(5)
+ mta-aliases: MTA aliases(5) (text file) support
+ regex: Regular expressions
+ net: Network support
+ gssapi: Generic Security Service authentication
+ imap: IMAP v4r1 client
+ md5: MD5 message digest (APOP, CRAM-MD5)
+ netrc: .netrc file support
+ pop3: Post Office Protocol Version 3 client
+ smtp: Simple Mail Transfer Protocol client
+ tls: Transport Layer Security (OpenSSL / LibreSSL)
- tls-all-algorithms: Support of all digest and cipher algorithms
+ spam-filter: Freely configurable *spam-filter-..*s
+ spam-spamc: Spam management via spamc(1) of spamassassin(1)
+ uistrings: User interface and error message strings
- cross-build: Cross-compilation: trust any detected environment
- debug: Debug enabled binary, not for end-users: THANKS!
- devel: Computers do not blunder
+ mime: Multipurpose Internet Mail Extensions
+ smime: S/MIME message signing, verification, en- and decryption
Setup:
. System-wide resource file: /usr/local/etc/s-nail.rc
. bindir: /usr/local/bin
. libexecdir: /usr/local/libexec
. mandir: /usr/local/share/man
. M(ail)T(ransfer)A(gent): /usr/lib/sendmail (argv0: sendmail)
. $MAIL spool directory: /var/mail
. Built-in $MAILCAPS path search: ~/.mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap
gmake[1]: Entering directory '/usr/local/directadmin/custombuild/s-nail-14.9.17/.obj'
CC mx-001.o
CC mx-002.o
CC mx-003.o
CC mx-004.o
CC mx-005.o
CC mx-006.o
CC mx-007.o
CC mx-008.o
CC mx-009.o
CC mx-010.o
CC mx-011.o
CC mx-012.o
CC mx-013.o
CC mx-014.o
CC mx-015.o
CC mx-016.o
CC mx-017.o
CC mx-018.o
CC mx-019.o
CC mx-020.o
CC mx-021.o
CC mx-022.o
CC mx-023.o
CC mx-024.o
CC mx-025.o
CC mx-026.o
CC mx-027.o
CC mx-028.o
CC mx-029.o
CC mx-030.o
CC mx-031.o
GEN gen-bltin-rc.h
CC mx-032.o
CC mx-033.o
CC mx-034.o
/usr/local/directadmin/custombuild/s-nail-14.9.17/src/mx/iconv.c:183:25: warning: passing 'const char **' to parameter of type 'char **' discards
qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers]
if((i = iconv(cd, __INBCAST(inb), inbleft, outb, outbleft)) == 0)
^~~~~~~~~~~~~~
/usr/local/directadmin/custombuild/s-nail-14.9.17/src/mx/iconv.c:162:25: note: expanded from macro '__INBCAST'
# define __INBCAST(S) (char const **)n_UNCONST(S)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/iconv.h:56:41: note: passing argument to parameter here
size_t iconv(iconv_t, char ** __restrict,
^
1 warning generated.
CC mx-035.o
CC mx-036.o
CC mx-037.o
CC mx-038.o
CC mx-039.o
CC mx-040.o
CC mx-041.o
CC mx-042.o
CC mx-043.o
GEN gen-mime-types.h
CC mx-044.o
CC mx-045.o
CC mx-046.o
CC mx-047.o
CC mx-048.o
CC mx-049.o
CC mx-050.o
CC mx-051.o
CC mx-052.o
CC mx-053.o
CC mx-054.o
CC mx-055.o
CC mx-056.o
CC mx-057.o
CC mx-058.o
CC mx-059.o
CC mx-060.o
CC mx-061.o
CC mx-062.o
CC mx-063.o
CC mx-064.o
CC mx-065.o
CC mx-066.o
CC mx-067.o
CC mx-068.o
CC mx-069.o
CC mx-070.o
CC mx-071.o
/usr/local/directadmin/custombuild/s-nail-14.9.17/src/mx/xtls.c:292:22: error: use of undeclared identifier 'EVP_blake2b512'
{"BLAKE2b512\0", &EVP_blake2b512},
^
/usr/local/directadmin/custombuild/s-nail-14.9.17/src/mx/xtls.c:293:20: error: use of undeclared identifier 'EVP_blake2s256'
{"BLAKE2s256", &EVP_blake2s256},
^
/usr/local/directadmin/custombuild/s-nail-14.9.17/src/mx/xtls.c:301:20: error: use of undeclared identifier 'EVP_sha3_512'; did you mean 'EVP_sha512'?
{"SHA3-512\0", &EVP_sha3_512},
^~~~~~~~~~~~
EVP_sha512
/usr/include/openssl/evp.h:731:15: note: 'EVP_sha512' declared here
const EVP_MD *EVP_sha512(void);
^
/usr/local/directadmin/custombuild/s-nail-14.9.17/src/mx/xtls.c:302:18: error: use of undeclared identifier 'EVP_sha3_384'; did you mean 'EVP_sha384'?
{"SHA3-384", &EVP_sha3_384},
^~~~~~~~~~~~
EVP_sha384
/usr/include/openssl/evp.h:730:15: note: 'EVP_sha384' declared here
const EVP_MD *EVP_sha384(void);
^
/usr/local/directadmin/custombuild/s-nail-14.9.17/src/mx/xtls.c:303:18: error: use of undeclared identifier 'EVP_sha3_256'; did you mean 'EVP_sha256'?
{"SHA3-256", &EVP_sha3_256},
^~~~~~~~~~~~
EVP_sha256
/usr/include/openssl/evp.h:727:15: note: 'EVP_sha256' declared here
const EVP_MD *EVP_sha256(void);
^
/usr/local/directadmin/custombuild/s-nail-14.9.17/src/mx/xtls.c:304:18: error: use of undeclared identifier 'EVP_sha3_224'; did you mean 'EVP_sha224'?
{"SHA3-224", &EVP_sha3_224},
^~~~~~~~~~~~
EVP_sha224
/usr/include/openssl/evp.h:726:15: note: 'EVP_sha224' declared here
const EVP_MD *EVP_sha224(void);
^
/usr/local/directadmin/custombuild/s-nail-14.9.17/src/mx/xtls.c:721:19: error: invalid application of 'sizeof' to an incomplete type
'const struct a_xtls_digest []'
for(i = 0; i < NELEM(a_xtls_digests); ++i)
^~~~~~~~~~~~~~~~~~~~~
/usr/local/directadmin/custombuild/s-nail-14.9.17/include/su/code-in.h:146:15: note: expanded from macro 'NELEM'
#define NELEM su_NELEM
^
/usr/local/directadmin/custombuild/s-nail-14.9.17/include/su/code.h:558:28: note: expanded from macro 'su_NELEM'
#define su_NELEM(A) (sizeof(A) / sizeof((A)[0]))
^~~
/usr/local/directadmin/custombuild/s-nail-14.9.17/src/mx/xtls.c:910:10: warning: implicit declaration of function 'SSL_CTX_set_ciphersuites' is invalid in
C99 [-Wimplicit-function-declaration]
if(SSL_CTX_set_ciphersuites(ctxp, value) != 1){
^
/usr/local/directadmin/custombuild/s-nail-14.9.17/src/mx/xtls.c:1908:22: warning: implicit declaration of function 'EVP_blake2s256' is invalid in C99
[-Wimplicit-function-declaration]
fprnt_mdp = a_XTLS_FINGERPRINT_DEFAULT_DIGEST();
^
/usr/local/directadmin/custombuild/s-nail-14.9.17/src/mx/xtls.c:295:45: note: expanded from macro 'a_XTLS_FINGERPRINT_DEFAULT_DIGEST'
# define a_XTLS_FINGERPRINT_DEFAULT_DIGEST EVP_blake2s256
^
/usr/local/directadmin/custombuild/s-nail-14.9.17/src/mx/xtls.c:1908:20: warning: incompatible integer to pointer conversion assigning to 'const EVP_MD *'
(aka 'const struct env_md_st *') from 'int' [-Wint-conversion]
fprnt_mdp = a_XTLS_FINGERPRINT_DEFAULT_DIGEST();
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/directadmin/custombuild/s-nail-14.9.17/src/mx/xtls.c:1913:27: warning: implicit declaration of function 'TLS_client_method' is invalid in C99
[-Wimplicit-function-declaration]
if((ctxp = SSL_CTX_new(n_XTLS_CLIENT_METHOD())) == NULL){
^
/usr/local/directadmin/custombuild/s-nail-14.9.17/include/mx/gen-config.h:380:30: note: expanded from macro 'n_XTLS_CLIENT_METHOD'
#define n_XTLS_CLIENT_METHOD TLS_client_method
^
/usr/local/directadmin/custombuild/s-nail-14.9.17/src/mx/xtls.c:1913:27: warning: incompatible integer to pointer conversion passing 'int' to parameter of
type 'const SSL_METHOD *' (aka 'const struct ssl_method_st *') [-Wint-conversion]
if((ctxp = SSL_CTX_new(n_XTLS_CLIENT_METHOD())) == NULL){
^~~~~~~~~~~~~~~~~~~~~~
/usr/local/directadmin/custombuild/s-nail-14.9.17/include/mx/gen-config.h:380:30: note: expanded from macro 'n_XTLS_CLIENT_METHOD'
#define n_XTLS_CLIENT_METHOD TLS_client_method
^
/usr/include/openssl/ssl.h:2131:40: note: passing argument to parameter 'meth' here
SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth);
^
5 warnings and 7 errors generated.
gmake[1]: *** [mk-config.mk:418: mx-071.o] Error 1
gmake[1]: Leaving directory '/usr/local/directadmin/custombuild/s-nail-14.9.17/.obj'
gmake: *** [makefile:25: build] Error 2
# pkg info | grep openssl
openssl-1.1.1g,1 TLSv1.3 capable SSL and crypto library
Any ideas how to patch it? Thank you!