Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 176403 - net-misc/mDNSResponder-107.6-r4: mdnsd fails to start
Summary: net-misc/mDNSResponder-107.6-r4: mdnsd fails to start
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 176845 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-04-28 20:14 UTC by Dennis Schridde
Modified: 2007-05-05 12:20 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2007-04-28 20:14:04 UTC
When I try to start /etc/init.d/mdnsd it fails silently. Starting manually in debugmode reveals the problem:

# mdnsd -debug
starting
socket: Address family not supported by protocol
stopping

Reproducible: Always

Steps to Reproduce:




Portage 2.1.2.5 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r1, 2.6.21-gentoo i686)
=================================================================
System uname: 2.6.21-gentoo i686 AMD Athlon(tm) XP 2600+
Gentoo Base System release 1.12.10
Timestamp of tree: Sat, 28 Apr 2007 14:00:10 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-java/java-config: 1.3.7, 2.0.31-r7
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch prelink sandbox sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="en_US.UTF-8"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa apache2 bash-completion berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus doc dri dvb dvd dvdr dvdread eds emboss encode evo fam firefox foomaticdb fortran gdbm gif gpm gtk hal iconv ipod ipv6 isdnlog jpeg kde kdeenablefinal kdehiddenvisibility ldap libg++ mad midi mikmod mmx mmxext mp3 mp4 mpeg mplayer mysql ncurses nls nptl nptlonly nsplugin ogg openal openexr opengl pam pch pcre pdf perl php png ppds pppd python qt3 qt3support qt4 quicktime readline real reflection samba sasl sdl session speex spell spl sse ssl subversion svg tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts unicode usb visualization vorbis win32codecs x264 x86 xcomposite xml xorg xv xvid zeroconf zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" LIRC_DEVICES="userspace" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Dennis Schridde 2007-05-03 12:01:40 UTC
One needs to enable IPv6 support in the Kernel. So probably a sanity check should be added to the ebuild.

Now that I figured this out, it still refuses to start, this time with following message:
# mdnsd -debug
starting
setsockopt - IPV6_PKTINFO: Protocol not available
stopping

I have no idea what IPV6_PKTINFO is and there doesn't seem to be a Kconfig value for it.
Comment 2 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2007-05-03 17:26:16 UTC
*** Bug 176845 has been marked as a duplicate of this bug. ***
Comment 3 Dennis Schridde 2007-05-03 18:49:06 UTC
(In reply to bug 176845 comment #3)
> You've enabled the ipv6 use flag. I can't connect to my system now, but from
> your error, I believe that mdsnd was built with ipv6 support. Did you enable
> ipv6 in your kernel?
Yes, unlike (all?) other packages mdnsd wont run when it was built with ipv6
support, but the current Kernel doesn't support it.
I wonder how other packages manage to work around that issue without failing to
start at all. Is that a misdesign by Apple in mDNSResponder?
Comment 4 Scott M. Likens 2007-05-03 20:53:20 UTC
    since my bug got marked a duplicate, I'll join here.

    With my IPV6 Enabled, Routing, real ip address, IPV6 in the kernel.

    I get

    desolation mDNSResponder # mdnsd -debug
    starting
    setsockopt - IPV6_PKTINFO: Protocol not available
    stopping

    It looks like we can undefine IPV6_PKTINFO it would resolve that.

    // code

    mDNSPosix.c:    #if defined(IPV6_PKTINFO)mDNSPosix.c:                          
     err = setsockopt(*sktPtr, IPPROTO_IPV6, IPV6_PKTINFO, &kOn,
    sizeof(kOn));mDNSPosix.c:                            if (err < 0) { err =
    errno; perror("setsockopt - IPV6_PKTINFO"); }mDNSUNP.c:#if
    defined(IPV6_PKTINFO) && HAVE_IPV6mDNSUNP.c:            cmptr->cmsg_type ==
    IPV6_PKTINFO) {

    // end

    I'll have to do some testing, and see in a few.

Comment 5 Carsten Lohrke (RETIRED) gentoo-dev 2007-05-05 12:20:41 UTC
No, undefining isn't it. Disabled ipv6 support in -r5. Future on linux seems to be using avahi anyways.