mail-filter/sendmail-8.15.2-r2 fails to compile with glibc 2.30. Here's a patch that can probably be used: https://build.opensuse.org/package/view_file/server:mail/sendmail/sendmail-8.15.2-glibc-2.30.patch Error message: x86_64-pc-linux-gnu-gcc -O2 -I. -I../../sendmail -I../../include -DTCPWRAPPERS -DSTARTTLS -D_FFR_DEAL_WITH_ERROR_SSL -D_FFR_TLS_1 -DNETINET6 -DNOT_SENDMAIL -Dsm_snprintf=snprintf -O2 -pipe -march=broadwell -D_REENTRANT -fPIC -DXP_MT -c -o sm_gethost.o sm_gethost.c In file included from ../../include/sendmail/sendmail.h:21, from ../../sendmail/sendmail.h:44, from sm_gethost.c:14: sm_gethost.c: In function ‘sm_getipnodebyname’: sm_gethost.c:58:18: error: ‘RES_USE_INET6’ undeclared (first use in this function) 58 | resv6 = bitset(RES_USE_INET6, _res.options); | ^~~~~~~~~~~~~ ../../include/sm/bitops.h:55:40: note: in definition of macro ‘bitset’ 55 | # define bitset(bit, word) (((word) & (bit)) != 0) | ^~~ sm_gethost.c:58:18: note: each undeclared identifier is reported only once for each function it appears in 58 | resv6 = bitset(RES_USE_INET6, _res.options); | ^~~~~~~~~~~~~ ../../include/sm/bitops.h:55:40: note: in definition of macro ‘bitset’ 55 | # define bitset(bit, word) (((word) & (bit)) != 0) | ^~~
Created attachment 596240 [details, diff] corrected patch for gentoo. This compiles correctly. patch to make this work on gentoo
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03c66ac305fd6e88a3c23bea9b7c1e678f13587c commit 03c66ac305fd6e88a3c23bea9b7c1e678f13587c Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2020-03-12 00:08:59 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2020-03-12 00:25:30 +0000 mail-mta/sendmail: fix for glibc-2.30, bug #700108 Patch by John Covici. Reported-by: Hanno Böck Fixed-by: John Covici Closes: https://bugs.gentoo.org/700108 Package-Manager: Portage-2.3.93, Repoman-2.3.20 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> .../files/sendmail-8.15.2-glibc-2.30.patch | 52 ++++++++++++++++++++++ mail-mta/sendmail/sendmail-8.15.2-r2.ebuild | 1 + 2 files changed, 53 insertions(+)