Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 224745 - sys-apps/dbus-1.2.1 Exec format error
Summary: sys-apps/dbus-1.2.1 Exec format error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: x86 FreeBSD
: High normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-03 11:57 UTC by MT
Modified: 2009-07-05 21:40 UTC (History)
0 users

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


Attachments
dbus-1.2.1_fbsd.patch (dbus-1.2.1_fbsd.patch,538 bytes, patch)
2008-06-03 13:10 UTC, MT
Details | Diff
dbus-1.2.1.ebuild.patch (dbus-1.2.1.ebuild.patch,528 bytes, patch)
2008-06-03 13:11 UTC, MT
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description MT 2008-06-03 11:57:47 UTC
dbus compile fine but the binary /usr/bin/dbus-daemon is broken:

 /etc/init.d/dbus start
 * Caching service dependencies ...                                                                                                                                                         [ ok ]
 * Starting D-BUS system messagebus ...
 * start-stop-daemon: failed to exec `/usr/bin/dbus-daemon': Exec format error
 * start-stop-daemon: failed to start `/usr/bin/dbus-daemon'                                                                                                                                                [ !! ]
 * ERROR: dbus failed to start
localhost tmp # scanelf -T /usr/bin/dbus-daemon 
 TYPE   TEXTRELS FILE 
  dbus-daemon: (memory/data?) [0xF761] in (optimized out) [0xF710]
  dbus-daemon: (memory/data?) [0xF7B8] in (optimized out) [0xF710]
  dbus-daemon: (memory/data?) [0xF7C5] in (optimized out) [0xF710]
  dbus-daemon: (memory/data?) [0xF7CC] in (optimized out) [0xF710]
  dbus-daemon: (memory/data?) [0xF7E2] in (optimized out) [0xF710]
  dbus-daemon: (memory/data?) [0xF7ED] in (optimized out) [0xF710]
  dbus-daemon: (memory/data?) [0xF813] in (optimized out) [0xF710]
  dbus-daemon: (memory/data?) [0xF81A] in (optimized out) [0xF710]
  dbus-daemon: (memory/data?) [0xF824] in (optimized out) [0xF710]
  dbus-daemon: (memory/data?) [0xF838] in (optimized out) [0xF710]
  dbus-daemon: (memory/data?) [0x46568] in (optimized out: previous _dbus_sha_compute) [0x464B0]
  dbus-daemon: (memory/data?) [0x46577] in (optimized out: previous _dbus_sha_compute) [0x464B0]
  dbus-daemon: environ [0xF728] in (optimized out) [0xF710]
  dbus-daemon: __progname [0xF736] in (optimized out) [0xF710]
  dbus-daemon: __progname [0xF753] in (optimized out) [0xF710]
  dbus-daemon: atexit [0xF76D] in (optimized out) [0xF710]
  dbus-daemon: atexit [0xF779] in (optimized out) [0xF710]
  dbus-daemon: _fini [0xF774] in (optimized out) [0xF710]
  dbus-daemon: __guard_setup [0xF783] in (optimized out) [0xF710]
  dbus-daemon: exit [0xF79E] in (optimized out) [0xF710]
  dbus-daemon: _init_tls [0xF7A3] in (optimized out) [0xF710]
  dbus-daemon: __deregister_frame_info [0xF7D7] in (optimized out) [0xF710]
  dbus-daemon: __deregister_frame_info [0xF7E7] in (optimized out) [0xF710]
  dbus-daemon: __register_frame_info [0xF802] in (optimized out) [0xF710]
  dbus-daemon: __register_frame_info [0xF81F] in (optimized out) [0xF710]
  dbus-daemon: _Jv_RegisterClasses [0xF82D] in (optimized out) [0xF710]
ET_DYN  /usr/bin/dbus-daemon
Comment 1 MT 2008-06-03 13:08:30 UTC
this error happen because freebsd 6.x do not support -fPIE but the configure process force it, producing a broken dbus-daemon binary.

attached there is a temporary workaround fix untill the new 7.x snapshot will hit the portage tree (freebsd 7.x support -fPIE).
Comment 2 MT 2008-06-03 13:10:09 UTC
Created attachment 155363 [details, diff]
dbus-1.2.1_fbsd.patch
Comment 3 MT 2008-06-03 13:11:13 UTC
Created attachment 155365 [details, diff]
dbus-1.2.1.ebuild.patch
Comment 4 Marcin Borzkiewicz 2008-08-21 20:58:23 UTC
(In reply to comment #3)
> Created an attachment (id=155365) [edit]
> dbus-1.2.1.ebuild.patch
> 


Patch works and dbus-daemon looks fine, but now is something wrong in recognizing uid/gid messagebus' user. 

m dbus-1.0 # /etc/init.d/dbus start
 * Starting D-BUS system messagebus ...
Failed to start message bus: Could not get UID and GID for username "messagebus"

m dbus-1.0 # id messagebus
uid=101(messagebus) gid=102(messagebus) groups=102(messagebus)

 
Comment 5 Alexis Ballier gentoo-dev 2009-07-05 21:40:20 UTC
this is fixed in latest dbus and fbsd 7.x