Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 700108 - mail-mta/sendmail-8.15.2-r2: Fails to compile with glibc 2.30 (error: ‘RES_USE_INET6’ undeclared)
Summary: mail-mta/sendmail-8.15.2-r2: Fails to compile with glibc 2.30 (error: ‘RES_US...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-14 18:15 UTC by Hanno Böck
Modified: 2020-03-12 00:25 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
corrected patch for gentoo. This compiles correctly. (sendmail-8.15.2-r2-glib30.patch,1.32 KB, patch)
2019-11-15 15:38 UTC, John Covici
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hanno Böck gentoo-dev 2019-11-14 18:15:04 UTC
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)
      |                                        ^~~
Comment 1 John Covici 2019-11-15 15:38:07 UTC
Created attachment 596240 [details, diff]
corrected patch for gentoo.  This compiles correctly.

patch to make this work on gentoo
Comment 2 Larry the Git Cow gentoo-dev 2020-03-12 00:25:36 UTC
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(+)