Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 132215

Summary: hcid needs dbus (otherwise fails)
Product: Gentoo Linux Reporter: Marcin Polak <Marcin.Polak>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED INVALID    
Severity: minor CC: deathwing00
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Marcin Polak 2006-05-04 00:54:57 UTC
Hello.

on my system (which may be broken in some way as I'm new to Gentoo) hcid segfaults when started without dbus:

tangerine ~ # killall -9 hcid
tangerine ~ # /etc/init.d/dbus stop
 * Service dbus stopping
 * Service dbus stopped
tangerine ~ # hcid -n
hcid[8258]: Bluetooth HCI daemon
hcid[8258]: Can't open system message bus connection: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
hcid[8258]: Starting security manager 0
Segmentation fault
>>>>>> ^^^^^^^^^^^ [mp]
tangerine ~ # /etc/init.d/dbus start
 * Service dbus starting
 * Service dbus started
tangerine ~ # hcid -n
hcid[8311]: Bluetooth HCI daemon
hcid[8311]: Starting security manager 0 

Similar situation seems to be when using /etc/init.d/bluetooth script (which in fact I was trying first):

tangerine ~ # /etc/init.d/dbus stop
 * Service dbus stopping
 * Service dbus stopped
tangerine ~ # ps afx | grep hcid
 9686 ?        Ss     0:00 hcid: processing events
10119 pts/1    S+     0:00  |   |       \_ grep hcid
tangerine ~ # /etc/init.d/bluetooth stop
 * Service bluetooth stopping
 * Service bluetooth stopped
tangerine ~ # ps afx | grep hcid
10228 pts/1    S+     0:00  |   |       \_ grep hcid
tangerine ~ # /etc/init.d/bluetooth start
 * Service bluetooth starting                                                                                        [ !! ]
>>>>>> mp: exclamation marks above
 * Service bluetooth started
tangerine ~ # ps afx | grep hcid
10295 pts/1    S+     0:00  |   |       \_ grep hcid

and now:
tangerine ~ # /etc/init.d/dbus start
 * Service dbus starting
 * Service dbus started
tangerine ~ # /etc/init.d/bluetooth start
 * WARNING:  bluetooth has already been started.
tangerine ~ # /etc/init.d/bluetooth restart
 * Service bluetooth stopping
 * Service bluetooth stopped
 * Service bluetooth starting
 * Service bluetooth started
tangerine ~ # ps afx | grep hcid
10604 pts/1    S+     0:00  |   |       \_ grep hcid
10554 ?        Ss     0:00 hcid: processing events

I have installed my system from Kororaa installation CD's, and then changed version to unstable ~x86 and emerged world resolving problems [].


# emerge --info
Portage 2.1_pre10-r2 (default-linux/x86/2005.1, gcc-3.4.6, glibc-2.4-r1, 2.6.16-gentoo-r6 i686)
=================================================================
System uname: 2.6.16-gentoo-r6 i686 AMD Turion(tm) 64 Mobile ML-40
Gentoo Base System version 1.12.0_pre18
dev-lang/python:     2.3.5-r2, 2.4.3
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -pipe -O3 -fweb -frename-registers -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -pipe -O3 -fweb -frename-registers -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -fvisibility-inlines-hidden -Wl,-O3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sfperms"
GENTOO_MIRRORS="http://gentoo.zie.pg.gda.pl/"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"
LINGUAS="en_AU en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/xgl-coffee /usr/portage/local/layman/portage-xgl"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dfx 3dnow 3dnowext X a52 aac acpi alsa arts avi bash-completion berkdb bidi bitmap-fonts bluetooth browserplugin bzip2 cairo cddb cdr clamav crypt cups dbus dga dhcp dio directfb divx4linux dri dts dv dvb dvd dvdr dvdread dvr3 encode ethereal exif fbcon ffmpeg firefox flac flash foomaticdb gd gdbm gif gimp gimpprint glitz gnome gphoto2 gpm gstreamer gtk gtk2 hal hddtemp howl i8x0 icq ieee1394 imlib innodb irmc jabber jack java javascript jpeg jpeg2k kde kdeenablefinal kdexdeltas lcms libclamav libwww lirc lm_sensors logitech-mouse madwifi mikmod mime mjpeg mono mp3 mpeg mppe-mppc musepack musicbrainz mysql nautilis ncurses network nls noamazon nptl nptlonly nsplugin nvidia odbc ogg oggvorbis on-the-fly-crypt opengl pam pcmcia pda pdflib png ppds python qt quicktime radiotap rdesktop readline real samba scanner sdk sdl skey slp snmp spell sse ssl symlink szip tcpd threads tiff truetype truetype-fonts type1-fonts unicode usb userlocales v4l vcd visualization vorbis wifi win32codecs x86 xine xinerama xml xml2 xorg xv xvid zeroconf zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_synaptics kernel_linux linguas_en_AU linguas_en_GB userland_GNU video_cards_ati"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-05-04 01:02:20 UTC
> I have installed my system from Kororaa installation CD's, and then changed
> version to unstable ~x86 and emerged world resolving problems [].

We don't support Kororaa-installed systems, their default C[XX]FLAGS/LDFLAGS are insane. Sorry, this is not a proper place to file Kororaa bugs. If you are re-emerging system/world, then fix those flags first.

And - for the record, hcid starts just fine here without any dbus version installed.
Comment 2 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-05-04 01:16:37 UTC
Looks like you received the same answer again :)
Comment 3 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-05-04 09:34:39 UTC
In reply to:

|> ------- Comment #2 from deathwing00@gentoo.org  2006-05-04 01:16 PST -------
|> Looks like you received the same answer again :)
|>
|
|Yes, it's true:-)
|By the way, could you please give me your _SANE_ C[XX]FLAGS/LDFLAGS?
|Than I could reemerge my world and hopefully forget about Kororaa... 



Have a look at my --info:


Portage 2.1_pre10-r2 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-xp -ftracer -fomit-frame-pointer -ffast-math -pipe -falign-functions=4 -fforce-addr"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -ftracer -fomit-frame-pointer -ffast-math -pipe -falign-functions=4 -fforce-addr"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages metadata-transfer sandbox sfperms strict usersandbox"
GENTOO_MIRRORS="http://mirror.gentoo.no/ http://gentoo.prz.rzeszow.pl http://ftp.du.se/pub/os/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="es el"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X acpi acpi4linux alsa apache apache2 apm arts audiofile avi berkdb bitmap-fonts blender-game bluetooth bootsplash browserplugin bzlib c++ caps cddb cdinstall cdparanoia cdrom chroot clamav clanVoice cli codecs crypt cups curl dga dio divx4linux dri dvd dvdr dvdread eds emboss encode erandom esd ethereal fam fbcon flac flash foomaticdb fortran freetype gd gdbm gif gimp gimpprint gmp gnome gpm gstreamer gtk gtk2 icq imagemagick imlib ipv6 isdnlog java jikes jpeg junit kde lcms libg++ libwww live mad memlimit mikmod mmx mmx2 motif mp3 mpeg mplayer msn mysql ncurses network nls nocd nptl nptlonly nvidia ogg opengl oss pam pcre pdflib perl php pic png ppds pppd python qt quicktime readline reflection rtc samba sdl session spell spl sse sse2 ssl svg szip tcpd tiff truetype truetype-fonts ttf type1-fonts udev unicode usb userlocales v4l v4l2 videos vorbis wmf xml xmms xorg xv xvid zlib elibc_glibc kernel_linux linguas_es linguas_el userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS


I hope it works fine for you (I use a very similar configuration on my amd64)
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-05-04 10:09:30 UTC
If you want something really safe, then:

CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
CXXFLAGS="${CFLAGS}"

Definitely *don't* use -fvisibility-inlines-hidden ever, it breaks stuff heavily. -Wl,--enable-new-dtags is just pointless on Gentoo, it's always enabled in our binutils.