Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 151839 - net/dns/bind and net-dns/bind-tools should be patched to not use SO_BSDCOMPAT flag
Summary: net/dns/bind and net-dns/bind-tools should be patched to not use SO_BSDCOMPAT...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Konstantin Arkhipov (RETIRED)
URL:
Whiteboard:
Keywords:
: 154687 180190 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-10-18 08:43 UTC by Peter Fischer
Modified: 2007-06-02 22:37 UTC (History)
3 users (show)

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


Attachments
bind-9.4.1-so_bsdcompat.patch (bind-9.4.1-so_bsdcompat.patch,1.18 KB, text/plain)
2007-05-31 13:18 UTC, Conrad Kostecki
Details
bind-9.4.1-r1.ebuild (bind-9.4.1-r1.ebuild,10.60 KB, text/plain)
2007-05-31 13:19 UTC, Conrad Kostecki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Fischer 2006-10-18 08:43:37 UTC
linux kernel 2.6 is out for quite a while now, and doesn't provide the deprecated  SO_BSDCOMPAT flag any more.

But all processes of isc's bind software are still happily using it, littering logfiles:

Aug 10 00:50:21 ssl [   51.942051] process `named' is using obsolete setsockopt SO_BSDCOMPAT
Aug 23 17:52:12 ssl [1184218.175271] process `rndc' is using obsolete setsockopt SO_BSDCOMPAT
Aug 23 17:52:35 ssl [1184241.037022] process `host' is using obsolete setsockopt SO_BSDCOMPAT
Aug 27 21:40:03 ssl [1543383.818557] process `rndc' is using obsolete setsockopt SO_BSDCOMPAT
Aug 28 00:08:07 ssl [1552265.564535] process `named' is using obsolete setsockopt SO_BSDCOMPAT
Oct 18 10:55:29 ssl [   62.895885] process `named' is using obsolete setsockopt SO_BSDCOMPAT
Oct 18 11:00:17 ssl [   47.531513] process `named' is using obsolete setsockopt SO_BSDCOMPAT
Oct 18 16:36:42 ssl [20227.630593] process `rndc' is using obsolete setsockopt SO_BSDCOMPAT
Oct 18 16:36:43 ssl [20228.831750] process `dig' is using obsolete setsockopt SO_BSDCOMPAT
Oct 18 16:36:44 ssl [20229.030512] process `rndc' is using obsolete setsockopt SO_BSDCOMPAT

This topic is also talked about in http://forums.gentoo.org/viewtopic-t-501840-highlight-obsolete+setsockopt+sobsdcompat.html , a possible solution might be in the last third of http://www.hants.lug.org.uk/cgi-bin/wiki.pl?LinuxHints/RedHat_2.4_To_2.6_Kernel_Upgrade
, a second possible solution is here http://www.linuxfromscratch.org/blfs/view/svn/server/bind.html see the sed call after "Install BIND by running the following commands" , similar approach here http://news.softpedia.com/news/BIND-Installation-and-Configuration-Guide-36875.shtml

This should be a no brainer... for a c language maven, which I am unfortunately not. With BIND being security relevant, I'll keep my fingers off it's source.

I am using and referring to net-dns/bind-9.3.2-r3

Please submit your patch to ISC.ORG, too, so that this "unholy" sed command line patching has an end.
Comment 1 Konstantin Arkhipov (RETIRED) gentoo-dev 2006-10-22 10:29:01 UTC
fixed in 9.{2.6,3.2}-r5,
thanks for reporting.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-11-10 08:06:35 UTC
*** Bug 154687 has been marked as a duplicate of this bug. ***
Comment 3 Priit Laes (IRC: plaes) 2006-11-10 08:20:38 UTC
Um.. bind-tools is still unfixed.
Comment 4 Konstantin Arkhipov (RETIRED) gentoo-dev 2006-11-15 00:33:14 UTC
reopening for bind-tools.
Comment 5 Konstantin Arkhipov (RETIRED) gentoo-dev 2006-12-17 09:54:15 UTC
fixed in bind-tools-9.{2.7,3.3}.
Comment 6 Krzysztof Olędzki 2007-04-07 23:18:14 UTC
It seems that bind-tools-9.4.0 and bind-9.4.0 need a different fix:

# dmesg |grep SO_
process `host' is using obsolete setsockopt SO_BSDCOMPAT

How about the one from Slackware ftp://ftp.slackware.com/pub/slackware/slackware-current/source/n/bind/bind.so_bsdcompat.diff.gz:

#------ cut here ------
--- ./lib/isc/unix/socket.c.orig        2005-11-03 17:08:42.000000000 -0600
+++ ./lib/isc/unix/socket.c     2006-02-18 13:09:15.000000000 -0600
@@ -245,6 +245,8 @@

 #define SOCK_DEAD(s)                   ((s)->references == 0)

+#undef SO_BSDCOMPAT
+
 static void
 manager_log(isc_socketmgr_t *sockmgr,
            isc_logcategory_t *category, isc_logmodule_t *module, int level,
#------ cut here ------
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-05-29 18:46:07 UTC
*** Bug 180190 has been marked as a duplicate of this bug. ***
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-05-29 18:46:21 UTC
Reopen.
Comment 9 Conrad Kostecki gentoo-dev 2007-05-31 13:18:25 UTC
Created attachment 120768 [details]
bind-9.4.1-so_bsdcompat.patch

bind-9.4.1-so_bsdcompat.patch
Comment 10 Conrad Kostecki gentoo-dev 2007-05-31 13:19:23 UTC
Created attachment 120769 [details]
bind-9.4.1-r1.ebuild

bind-9.4.1-r1.ebuild

fixed for me the so_bsdcompat error message
Comment 11 Konstantin Arkhipov (RETIRED) gentoo-dev 2007-06-02 22:37:24 UTC
fixed in bind-9.2.8-r3, bind-9.3.4-r3, bind-9.4.1-r1, bind-tools-9.2.8-r1, bind-tools-9.3.4, bind-tools-9.4.1-r1.

thanks for reopening.