Date: Tue, 14 Jan 2020 23:41:54 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 243357] base sendmail fails to compile with openssl1.1.1 Message-ID: <bug-243357-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D243357 Bug ID: 243357 Summary: base sendmail fails to compile with openssl1.1.1 Product: Base System Version: 11.3-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: jnaughto@ee.ryerson.ca Updating from openssl 1.0.2t to openssl 1.1.1, re-compiling sendmail to sup= port sasl and sendmail fails to compile with tls errors: cc -O2 -pipe -march=3Dnocona -I/usr/src/contrib/sendmail/src -I/usr/src/contrib/sendmail/include -I. -DNEWDB -DNIS -DMAP_REGEX -DDNSMAP -DNETINET6 -DSTARTTLS -D_FFR_TLS_1 -DTCPWRAPPERS -I/usr/local/include -DSAS= L=3D2 -D_FFR_SMTP_SSL -g -MD -MF.depend.tls.o -MTtls.o -std=3Dgnu99 -fstack-protector-strong -Wno-pointer-sign -Wno-empty-body -Wno-string-plus= -int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses=20 -Qunused-arguments -c /usr/src/contrib/sendmail/src/tls.c -o tls.o /usr/src/contrib/sendmail/src/tls.c:70:4: error: incomplete definition of t= ype 'struct dh_st' dh->p =3D BN_bin2bn(dh512_p, sizeof(dh512_p), NULL); ~~^ /usr/local/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ /usr/src/contrib/sendmail/src/tls.c:71:4: error: incomplete definition of t= ype 'struct dh_st' dh->g =3D BN_bin2bn(dh512_g, sizeof(dh512_g), NULL); ~~^ /usr/local/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ /usr/src/contrib/sendmail/src/tls.c:72:9: error: incomplete definition of t= ype 'struct dh_st' if ((dh->p =3D=3D NULL) || (dh->g =3D=3D NULL)) ~~^ /usr/local/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ /usr/src/contrib/sendmail/src/tls.c:72:28: error: incomplete definition of = type 'struct dh_st' if ((dh->p =3D=3D NULL) || (dh->g =3D=3D NULL)) ~~^ /usr/local/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ /usr/src/contrib/sendmail/src/tls.c:123:4: error: incomplete definition of = type 'struct dh_st' dh->p=3DBN_bin2bn(dh2048_p,sizeof(dh2048_p),NULL); ~~^ /usr/local/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ /usr/src/contrib/sendmail/src/tls.c:124:4: error: incomplete definition of = type 'struct dh_st' dh->g=3DBN_bin2bn(dh2048_g,sizeof(dh2048_g),NULL); ~~^ /usr/local/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ /usr/src/contrib/sendmail/src/tls.c:125:9: error: incomplete definition of = type 'struct dh_st' if ((dh->p =3D=3D NULL) || (dh->g =3D=3D NULL)) ~~^ /usr/local/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ /usr/src/contrib/sendmail/src/tls.c:125:28: error: incomplete definition of type 'struct dh_st' if ((dh->p =3D=3D NULL) || (dh->g =3D=3D NULL)) ~~^ /usr/local/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ /usr/src/contrib/sendmail/src/tls.c:929:22: warning: implicit declaration of function 'BIO_s_file_internal' is invalid in C99 [-Wimplicit-function-declaration] crl_file =3D BIO_new(BIO_s_file_internal()); ^ /usr/src/contrib/sendmail/src/tls.c:929:22: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const BIO_METHOD *' (aka 'const struct bio_method_st *') [-Wint-conversion] crl_file =3D BIO_new(BIO_s_file_internal()); ^~~~~~~~~~~~~~~~~~~~~ /usr/local/include/openssl/bio.h:548:32: note: passing argument to parameter 'type' here BIO *BIO_new(const BIO_METHOD *type); ^ /usr/src/contrib/sendmail/src/tls.c:1006:17: warning: 'RSA_generate_key' is deprecated [-Wdeprecated-declarations] (rsa_tmp =3D RSA_generate_key(RSA_KEYLENGTH, RSA_F4, NULL, ^ /usr/local/include/openssl/rsa.h:234:1: note: 'RSA_generate_key' has been explicitly marked deprecated here DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void ^ /usr/local/include/openssl/opensslconf.h:170:34: note: expanded from macro 'DEPRECATEDIN_0_9_8' # define DEPRECATEDIN_0_9_8(f) DECLARE_DEPRECATED(f) ^ /usr/local/include/openssl/opensslconf.h:121:55: note: expanded from macro 'DECLARE_DEPRECATED' # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); ^ /usr/src/contrib/sendmail/src/tls.c:1213:10: warning: 'DSA_generate_paramet= ers' is deprecated [-Wdeprecated-declarations] dsa =3D DSA_generate_parameters(bits, NULL, 0, NULL, ^ /usr/local/include/openssl/dsa.h:117:1: note: 'DSA_generate_parameters' has been explicitly marked deprecated here DEPRECATEDIN_0_9_8(DSA *DSA_generate_parameters(int bits, ^ /usr/local/include/openssl/opensslconf.h:170:34: note: expanded from macro 'DEPRECATEDIN_0_9_8' # define DEPRECATEDIN_0_9_8(f) DECLARE_DEPRECATED(f) ^ /usr/local/include/openssl/opensslconf.h:121:55: note: expanded from macro 'DECLARE_DEPRECATED' # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); ^ /usr/src/contrib/sendmail/src/tls.c:1747:12: warning: 'RSA_generate_key' is deprecated [-Wdeprecated-declarations] rsa_tmp =3D RSA_generate_key(RSA_KEYLENGTH, RSA_F4, NULL, NULL); ^ /usr/local/include/openssl/rsa.h:234:1: note: 'RSA_generate_key' has been explicitly marked deprecated here DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void ^ /usr/local/include/openssl/opensslconf.h:170:34: note: expanded from macro 'DEPRECATEDIN_0_9_8' # define DEPRECATEDIN_0_9_8(f) DECLARE_DEPRECATED(f) ^ /usr/local/include/openssl/opensslconf.h:121:55: note: expanded from macro 'DECLARE_DEPRECATED' # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); ^ /usr/src/contrib/sendmail/src/tls.c:1974:10: error: incomplete definition of type 'struct x509_store_ctx_st' if (ctx->error =3D=3D X509_V_ERR_UNABLE_TO_GET_CRL) ~~~^ /usr/local/include/openssl/ossl_typ.h:128:16: note: forward declaration of 'struct x509_store_ctx_st' typedef struct x509_store_ctx_st X509_STORE_CTX; ^ /usr/src/contrib/sendmail/src/tls.c:1976:7: error: incomplete definition of type 'struct x509_store_ctx_st' ctx->error =3D 0; ~~~^ /usr/local/include/openssl/ossl_typ.h:128:16: note: forward declaration of 'struct x509_store_ctx_st' typedef struct x509_store_ctx_st X509_STORE_CTX; ^ 5 warnings and 10 errors generated. *** Error code 1 Stop. make: stopped in /usr/src/usr.sbin/sendmail --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-243357-227>