Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 151839
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Konstantin Arkhipov <voxus@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Peter Fischer <petrus69@gmx.de>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
bind-9.4.1-so_bsdcompat.patch bind-9.4.1-so_bsdcompat.patch text/plain Conrad Kostecki 2007-05-31 13:18 0000 1.18 KB Details
bind-9.4.1-r1.ebuild bind-9.4.1-r1.ebuild text/plain Conrad Kostecki 2007-05-31 13:19 0000 10.60 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 151839 depends on: Show dependency tree
Bug 151839 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-10-18 08:43 0000
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 From Konstantin Arkhipov 2006-10-22 10:29:01 0000 -------
fixed in 9.{2.6,3.2}-r5,
thanks for reporting.

------- Comment #2 From Jakub Moc (RETIRED) 2006-11-10 08:06:35 0000 -------
*** Bug 154687 has been marked as a duplicate of this bug. ***

------- Comment #3 From Priit Laes (IRC: plaes) 2006-11-10 08:20:38 0000 -------
Um.. bind-tools is still unfixed.

------- Comment #4 From Konstantin Arkhipov 2006-11-15 00:33:14 0000 -------
reopening for bind-tools.

------- Comment #5 From Konstantin Arkhipov 2006-12-17 09:54:15 0000 -------
fixed in bind-tools-9.{2.7,3.3}.

------- Comment #6 From Krzysztof Olędzki 2007-04-07 23:18:14 0000 -------
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 From Jakub Moc (RETIRED) 2007-05-29 18:46:07 0000 -------
*** Bug 180190 has been marked as a duplicate of this bug. ***

------- Comment #8 From Jakub Moc (RETIRED) 2007-05-29 18:46:21 0000 -------
Reopen.

------- Comment #9 From Conrad Kostecki 2007-05-31 13:18:25 0000 -------
Created an attachment (id=120768) [details]
bind-9.4.1-so_bsdcompat.patch

bind-9.4.1-so_bsdcompat.patch

------- Comment #10 From Conrad Kostecki 2007-05-31 13:19:23 0000 -------
Created an attachment (id=120769) [details]
bind-9.4.1-r1.ebuild

bind-9.4.1-r1.ebuild

fixed for me the so_bsdcompat error message

------- Comment #11 From Konstantin Arkhipov 2007-06-02 22:37:24 0000 -------
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.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug