Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
weird dmesg output
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
invictus
n00b
n00b


Joined: 09 Jan 2004
Posts: 26

PostPosted: Fri Jan 09, 2004 3:47 pm    Post subject: weird dmesg output Reply with quote

I am using gentoo 1.4 with kernel 2.6.0. After emerging bind and doing rc-update add named default I get the following message when using dmesg:

process `named' is using obsolete setsockopt SO_BSDCOMPAT

Does anyone know how to fix this? named isnt working as I want either
Back to top
View user's profile Send private message
Kirigoe
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jan 2003
Posts: 147
Location: concrete hut, sweden

PostPosted: Fri Jan 09, 2004 4:09 pm    Post subject: Reply with quote

you can comment out the obsolete code from BIND if you really want to get rid of the message but it's completely unharmful, it's just a flag for socket functions that has become obsolete.
_________________
+ adopt an unanswered post today!
+ kimono network monitor
+ downshift.org
Back to top
View user's profile Send private message
invictus
n00b
n00b


Joined: 09 Jan 2004
Posts: 26

PostPosted: Fri Jan 09, 2004 4:14 pm    Post subject: Reply with quote

so the only solution is really to edit bind's source? if its obsolete, why is it still in the code? do you think it will be removed in a later version so I dont have to get this message?

*cant stop getting annoyed by warnings and such*
Back to top
View user's profile Send private message
radulucian
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 151
Location: Bucharest Romania

PostPosted: Tue Mar 16, 2004 8:59 am    Post subject: Reply with quote

bumped.

did you figured out what that was ?

same problem here. can anyone at least explain this issue a little ?
_________________
--------------------------
i am gen2 fan too
noone clicks links in the signature :D
--------------------------
Back to top
View user's profile Send private message
vague
n00b
n00b


Joined: 17 May 2004
Posts: 6
Location: Cape Town, South Afica

PostPosted: Thu Mar 31, 2005 6:45 am    Post subject: Reply with quote

Quote:
same problem here. can anyone at least explain this issue a little ?


Let me try and explain this a bit.

The SO_BSDCOMPAT define is obsolete in 2.6 kernels.
I am not sure exactly what it was used for in 2.4 kernels, but we do not need it now.
However a lot of programs still use this define and until they stop using it we will still get this message, though it does no harm that I can see.
With bind you can comment out the references to the define in the source.
You can find it in lib/isc/unix/socket.c
there are two sections that need removing:
Code:
#if defined(USE_CMSG) || defined(SO_BSDCOMPAT)
        int on = 1;
#endif

should become:
Code:
#if defined(USE_CMSG)
        int on = 1;
#endif

And comment out this whole section:
Code:
#ifdef SO_BSDCOMPAT
        if (setsockopt(sock->fd, SOL_SOCKET, SO_BSDCOMPAT,
                       (void *)&on, sizeof(on)) < 0) {
                isc__strerror(errno, strbuf, sizeof(strbuf));
                UNEXPECTED_ERROR(__FILE__, __LINE__,
                                 "setsockopt(%d, SO_BSDCOMPAT) %s: %s",
                                 sock->fd,
                                 isc_msgcat_get(isc_msgcat, ISC_MSGSET_GENERAL,
                                                ISC_MSG_FAILED, "failed"),
                                 strbuf);
                /* Press on... */
        }
#endif


With programs other than bind the same approach should work, you will just need to find the right places in the source.

If you are not happy editing the source of your programs then you will just have to wait for the software developers to fix it for you or for a gentoo patch.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum