Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 596240 Details for
Bug 700108
mail-mta/sendmail-8.15.2-r2: Fails to compile with glibc 2.30 (error: ‘RES_USE_INET6’ undeclared)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
corrected patch for gentoo. This compiles correctly.
sendmail-8.15.2-r2-glib30.patch (text/plain), 1.32 KB, created by
John Covici
on 2019-11-15 15:38:07 UTC
(
hide
)
Description:
corrected patch for gentoo. This compiles correctly.
Filename:
MIME Type:
Creator:
John Covici
Created:
2019-11-15 15:38:07 UTC
Size:
1.32 KB
patch
obsolete
>--- sendmail-8.15.2-r1/libmilter/sm_gethost.c.orig 2014-03-04 19:59:45.000000000 -0500 >+++ sendmail-8.15.2-r1/libmilter/sm_gethost.c 2019-11-15 09:32:25.812406080 -0500 >@@ -51,18 +51,22 @@ > { > bool resv6 = true; > struct hostent *h; >- >+#ifdef RES_USE_INET6 >+ > if (family == AF_INET6) > { > /* From RFC2133, section 6.1 */ > resv6 = bitset(RES_USE_INET6, _res.options); > _res.options |= RES_USE_INET6; > } >+#endif > SM_SET_H_ERRNO(0); > h = gethostbyname(name); >+#ifdef RES_USE_INET6 > if (family == AF_INET6 && !resv6) > _res.options &= ~RES_USE_INET6; > >+ #endif > /* the function is supposed to return only the requested family */ > if (h != NULL && h->h_addrtype != family) > { >--- sendmail-8.15.2-r2/sendmail/conf.c.orig 2019-11-14 17:36:41.262218822 -0500 >+++ sendmail-8.15.2-r2/sendmail/conf.c 2019-11-15 09:57:43.550284580 -0500 >@@ -4243,18 +4243,21 @@ > > # else /* HAS_GETHOSTBYNAME2 */ > bool resv6 = true; >- >+#ifdef RES_USE_INET6 > if (family == AF_INET6) > { > /* From RFC2133, section 6.1 */ > resv6 = bitset(RES_USE_INET6, _res.options); > _res.options |= RES_USE_INET6; > } >+#endif > SM_SET_H_ERRNO(0); > h = gethostbyname(name); >+#ifdef RES_USE_INET6 > if (!resv6) > _res.options &= ~RES_USE_INET6; > >+#endif > /* the function is supposed to return only the requested family */ > if (h != NULL && h->h_addrtype != family) > {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 700108
: 596240