Bug 372711 - ia64: dbus build error, undefined reference to `audit_init'
ia64: dbus build error, undefined reference to `audit_init'
Product: Fedora
Classification: Fedora
Component: dbus (Show other bugs)
ia64 Linux
low Severity medium
: ---
: ---
Assigned To: David Zeuthen
Fedora Extras Quality Assurance
Depends On:
Blocks: fedora-ia64 418441
  Show dependency treegraph
Reported: 2007-11-09 08:43 EST by Zhan, Yi
Modified: 2013-03-05 22:53 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-02-22 00:38:04 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Zhan, Yi 2007-11-09 08:43:55 EST
Description of problem:

building dbus under Fedora-IA64 failed with below error: 

Making all in bus
make[2]: Entering directory `/usr/src/redhat/BUILD/dbus-1.1.2/bus'
/bin/sh ../libtool --tag=CC   --mode=link gcc  -ffunction-sections -fdata-sectio
ns -g -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -W
nested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wdeclaration-after-s
tatement -fno-common -Wl,--gc-sections   -o dbus-daemon-launch-helper-test dbus_
daemon_launch_helper_test-activation-helper-bin.o dbus_daemon_launch_helper_test
-config-loader-expat.o dbus_daemon_launch_helper_test-config-parser-common.o dbu
s_daemon_launch_helper_test-config-parser-trivial.o dbus_daemon_launch_helper_te
st-desktop-file.o dbus_daemon_launch_helper_test-utils.o dbus_daemon_launch_help
er_test-activation-helper.o -lexpat ../dbus/libdbus-convenience.la -lcap
gcc -ffunction-sections -fdata-sections -g -O2 -Wall -Wchar-subscripts -Wmissing
-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align
-Wsign-compare -Wdeclaration-after-statement -fno-common -Wl,--gc-sections -o d
bus-daemon-launch-helper-test dbus_daemon_launch_helper_test-activation-helper-b
in.o dbus_daemon_launch_helper_test-config-loader-expat.o dbus_daemon_launch_hel
per_test-config-parser-common.o dbus_daemon_launch_helper_test-config-parser-tri
vial.o dbus_daemon_launch_helper_test-desktop-file.o dbus_daemon_launch_helper_t
est-utils.o dbus_daemon_launch_helper_test-activation-helper.o  -lexpat ../dbus/
.libs/libdbus-convenience.a -lcap
/usr/bin/ld: Warning: gc-sections option ignored
../dbus/.libs/libdbus-convenience.a(dbus-sysdeps-util-unix.o): In function `_dbu
/usr/src/redhat/BUILD/dbus-1.1.2/dbus/dbus-sysdeps-util-unix.c:398: undefined re
ference to `audit_init'
collect2: ld returned 1 exit status
make[2]: *** [dbus-daemon-launch-helper-test] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/dbus-1.1.2/bus'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/dbus-1.1.2'
make: *** [all] Error 2

It's seems that the problem is caused by the code in dbus-1.1.2-audit-user.patch
. The patch add a call to audit_init() in the file
dbus/dbus-sysdeps-util-unix.c. But the function is defined in bus/selinux.c and
not available there. Do some change in dbus-sysdeps-util-unix.c or add the
selinux.o (and might some other ".o"s in bus/) to the link command above may fix
 the problem.

Version-Release number of selected component (if applicable):
dbus-1.1.2-8.fc8.src.rpm (CVS Nov 8 2007)

How reproducible:

Steps to Reproduce:
1.rpmbuild --rebuild dbus-1.1.2-8.fc8.src.rpm
Actual results:

Expected results:

Additional info:

I tried the same build on x86 and x86_64 platforms and both successful. Then I
traced this issue and found that the issue occurred only on ia64 due to the lack
of support for the linker (ld) option "--gc-sections". When replacing the
options with "-wl,--no-gc-sections" in the makefiles, I got the same error both
in x86 and x86_64.

I'm not familiar with dbus and not very sure if this is a real bug or some
tricks depending on the specified linker option.
Comment 1 Doug Chapman 2008-02-22 00:38:04 EST
latest version is building in rawhide now, closing.

Note You need to log in before you can comment on or make changes to this bug.