Created attachment 444504 [details] build.log x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./src -DLINUX -DSYSCONFDIR="\"/etc\"" -I./src -I./src/device -I./src/http -I./src/notification -I./src/process -I./src/protocols -I./src/ssl -I./src/terminal -I./libmonit/src -Wno-addres s -Wno-pointer-sign -march=native -mtune=native -O2 -pipe -Wall -Wunused -Wno-unused-label -funsigned-char -D_GNU_SOURCE -std=c99 -D _REENTRANT -I/usr/include -I/usr/include -c -o src/ssl/Ssl.o src/ssl/Ssl.c src/ssl/Ssl.c: In function ‘_mutexLock’: src/ssl/Ssl.c:174:20: error: ‘CRYPTO_LOCK’ undeclared (first use in this function) if (mode & CRYPTO_LOCK) ^ src/ssl/Ssl.c:174:20: note: each undeclared identifier is reported only once for each function it appears in src/ssl/Ssl.c: In function ‘_checkExpiration’: src/ssl/Ssl.c:187:71: warning: implicit declaration of function ‘X509_get_notAfter’ [-Wimplicit-function-declaration] if (! ASN1_TIME_diff(&deltadays, &deltaseconds, NULL, X509_get_no ^ src/ssl/Ssl.c:187:71: warning: passing argument 4 of ‘ASN1_TIME_diff’ makes pointer from integer without a cast [-Wint-conversion] In file included from /usr/include/openssl/objects.h:916:0, from /usr/include/openssl/evp.h:27, from /usr/include/openssl/x509.h:23, from src/ssl/Ssl.c:73: /usr/include/openssl/asn1.h:591:5: note: expected ‘const ASN1_TIME * {aka const struct asn1_string_st *}’ but argument is of type ‘int’ int ASN1_TIME_diff(int *pday, int *psec, ^ src/ssl/Ssl.c: In function ‘_verifyClientCertificates’: src/ssl/Ssl.c:314:21: error: storage size of ‘found_cert’ isn’t known X509_OBJECT found_cert; ^ src/ssl/Ssl.c:315:57: warning: implicit declaration of function ‘X509_STORE_get_by_subject’ [-Wimplicit-function-declaration] if (X509_STORE_CTX_get_error_depth(ctx) == 0 && X509_STORE_get_by_subje ^ src/ssl/Ssl.c:314:21: warning: unused variable ‘found_cert’ [-Wunused-variable] X509_OBJECT found_cert; ^ src/ssl/Ssl.c: In function ‘Ssl_start’: src/ssl/Ssl.c:363:9: warning: implicit declaration of function ‘SSL_library_init’ [-Wimplicit-function-declaration] SSL_library_init(); ^ src/ssl/Ssl.c:364:9: warning: implicit declaration of function ‘SSL_load_error_strings’ [-Wimplicit-function-declaration] SSL_load_error_strings(); ^ src/ssl/Ssl.c:371:21: warning: implicit declaration of function ‘CRYPTO_num_locks’ [-Wimplicit-function-declaration] int locks = CRYPTO_num_locks(); ^ src/ssl/Ssl.c:375:9: warning: implicit declaration of function ‘CRYPTO_set_id_callback’ [-Wimplicit-function-declaration] CRYPTO_set_id_callback(_threadID); ^ src/ssl/Ssl.c:376:9: warning: implicit declaration of function ‘CRYPTO_set_locking_callback’ [-Wimplicit-function-declaration] CRYPTO_set_locking_callback(_mutexLock); ^ src/ssl/Ssl.c: In function ‘Ssl_stop’: src/ssl/Ssl.c:386:9: warning: implicit declaration of function ‘RAND_cleanup’ [-Wimplicit-function-declaration] RAND_cleanup(); ^ src/ssl/Ssl.c:387:9: warning: implicit declaration of function ‘ERR_free_strings’ [-Wimplicit-function-declaration] ERR_free_strings(); ^ src/ssl/Ssl.c: In function ‘Ssl_threadCleanup’: src/ssl/Ssl.c:393:9: warning: implicit declaration of function ‘ERR_remove_state’ [-Wimplicit-function-declaration] ERR_remove_state(0); ^ src/ssl/Ssl.c: In function ‘Ssl_new’: src/ssl/Ssl.c:422:34: warning: implicit declaration of function ‘SSLv2_client_method’ [-Wimplicit-function-declaration] method = SSLv2_client_method(); ^ src/ssl/Ssl.c:422:32: warning: assignment makes pointer from integer without a cast [-Wint-conversion] method = SSLv2_client_method(); ^ src/ssl/Ssl.c:438:34: warning: implicit declaration of function ‘TLSv1_client_method’ [-Wimplicit-function-declaration] method = TLSv1_client_method(); ^ src/ssl/Ssl.c:438:32: warning: assignment makes pointer from integer without a cast [-Wint-conversion] method = TLSv1_client_method(); ^ make[2]: *** [Makefile:737: src/ssl/Ssl.o] Error 1 make[2]: Leaving directory '/var/tmp/portage/app-admin/monit-5.19.0/work/monit-5.19.0' make[1]: *** [Makefile:804: all-recursive] Error 1
Fixed with version 5.20.0
Reopening. The package still fails whithout deprecated features from openssl: libtool: link: x86_64-pc-linux-gnu-gcc -Wno-address -Wno-pointer-sign -march=native -mtune=native -O2 -pipe -Wall -Wunused -Wno-unused-label -funsigned-char -D_GNU_SOURCE -std=c99 -D _REENTRANT -I/usr/include -I/usr/include -Wl,-O1 -Wl,- -hash-style=gnu -Wl,--sort-common -Wl,--as-needed -rdynamic -o monit src/y.tab.o src/lex.yy.o src/monit.o src/alert.o src/control.o src/daemonize.o src/env.o src/event.o src/file.o src/gc.o src/http.o src/log.o src/md5.o src/md5_crypt.o src/net.o src/sha1.o src/signal.o src/socket.o src/spawn.o src/state.o src/util.o src/ validate.o src/device/device_common.o src/device/sysdep_LINUX.o src/http/base64.o src/http/cervlet.o src/http/client.o src/http/engine.o src/http/xml.o src/http/processor.o src/notification/Address.o src/notification/MMonit.o src/notification/SMTP.o src/process/ProcessTree.o src/process/sysdep_LINUX.o src/protocols/apache_status.o src/protocols/clamav.o src/protocols/default.o src/protocols/dns.o src/protocols/dwp.o src/protocols/ftp.o src/protocols/generic.o src/protocols/gps.o src/protocols/http.o src/protocols/imap.o src/protocols/ldap2.o src/protocols/ldap3.o src/protocols/lmtp.o src/protocols/memcache.o src/protocols/mongodb.o src/protocols/mysql.o src/protocols/nntp.o src/protocols/ntp3.o src/protocols/pgsql.o src/protocols/pop.o src/protocols/postfix_policy.o src/protocols/protocol.o src/protocols/radius.o src/protocols/rdate.o src/protocols/redis.o src/protocols/rsync.o src/protocols/sieve.o src/protocols/sip.o src/protocols/smtp.o src/protocols/ssh.o src/protocols/tns.o src/protocols/websocket.o src/ssl/Ssl.o src/terminal/Box.o src/terminal/Color.o libmonit/.libs/libmonit.a -lm -lpam -lz -lpthread -lcrypt -lresolv -lnsl -L/usr/lib -lssl -lcrypto src/ssl/Ssl.o: In function `_verifyClientCertificates': Ssl.c:(.text+0x589): undefined reference to `X509_STORE_get_by_subject' src/ssl/Ssl.o: In function `Ssl_getCertificateValidDays': Ssl.c:(.text+0x10aa): undefined reference to `X509_get_notAfter' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:720: monit] Error 1 make[2]: Leaving directory '/var/tmp/portage/app-admin/monit-5.21.0/work/monit-5.21.0' make[1]: *** [Makefile:804: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/app-admin/monit-5.21.0/work/monit-5.21.0' make: *** [Makefile:517: all] Error 2
Will be fixed in monit-5.22.0: https://bitbucket.org/tildeslash/monit/commits/1cdfe3eba3cc/
commit e117618fa81e629d38fefebdcce27a00c2d599ea Author: Lars Wendler <polynomial-c@gentoo.org> Date: Thu Apr 20 10:05:05 2017 app-admin/monit: Bump to version 5.22.0 Package-Manager: Portage-2.3.5, Repoman-2.3.2