Bug 209010 - mail/exim-mysql: build broken (cc tls.c)
Summary: mail/exim-mysql: build broken (cc tls.c)
Status: Closed Unable to Reproduce
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dima Panov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-24 11:50 UTC by bugs.freebsd.org
Modified: 2020-02-27 13:03 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (vsevolod)


Attachments
build log from poudriere (29.42 KB, text/plain)
2016-04-24 11:50 UTC, bugs.freebsd.org
no flags Details
svn-diff-exim-mysql (4.99 KB, patch)
2018-03-14 08:44 UTC, Walter Schwarzenfeld
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description bugs.freebsd.org 2016-04-24 11:50:55 UTC
Created attachment 169625 [details]
build log from poudriere

Since 2016-04-22 poudriere fail to build mail/exim-mysql

make.conf:
OPENSSL_PORT=           security/libressl

cc tls.c
In file included from tls.c:121:
./tls-openssl.c:537:30: error: use of undeclared identifier 'depth'
  preverify_ok ? "ok":"BAD", depth, dn);
                             ^
tls.c:278:40: warning: '&&' within '||' [-Wlogical-op-parentheses]
     || Ustrncmp(ele, match, len) == 0 && ele[len] == '='
     ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
tls.c:278:40: note: place parentheses around the '&&' expression to silence this warning
     || Ustrncmp(ele, match, len) == 0 && ele[len] == '='
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
*** Error code 1
Comment 1 cal 2016-05-11 09:37:45 UTC
No, you're the only one affected.

All DANE users seem to be affected:

 528 #ifndef DISABLE_EVENT
 529 int depth = X509_STORE_CTX_get_error_depth(x509ctx);
 530 BOOL dummy_called, optional = FALSE;
 531 #endif
 532 
 533 X509_NAME_oneline(X509_get_subject_name(cert), CS dn, sizeof(dn));
 534 dn[sizeof(dn)-1] = '\0';
 535 
 536 DEBUG(D_tls) debug_printf("verify_callback_client_dane: %s depth %d %s\n",
 537   preverify_ok ? "ok":"BAD", depth, dn);


Unfortunately DISABLE_EVENT is defined in the master Makefile.
Comment 2 Kurt Jaeger freebsd_committer freebsd_triage 2017-12-23 14:19:59 UTC
I retested with exim-4.90, and this seems to work now.
Comment 3 Kurt Jaeger freebsd_committer freebsd_triage 2017-12-23 14:23:16 UTC
Ah, mis-tested 8-( OPENSSL_PORT=security/libressl in make.conf does not work any longer.
Comment 4 Walter Schwarzenfeld freebsd_triage 2018-03-14 08:44:33 UTC
Created attachment 191489 [details]
svn-diff-exim-mysql

Don't know how to set PORTREVISION in a slave port.
Comment 5 Walter Schwarzenfeld freebsd_triage 2019-08-05 11:48:24 UTC
We have version  4.92.1. Is this still relevant.