| Summary: | cross-compiling dbus on ubuntu/mingw-w64, undefined reference to message_get_error_name | ||
|---|---|---|---|
| Product: | dbus | Reporter: | william <r.3> |
| Component: | core | Assignee: | Havoc Pennington <hp> |
| Status: | RESOLVED DUPLICATE | QA Contact: | John (J5) Palmieri <johnp> |
| Severity: | normal | ||
| Priority: | medium | ||
| Version: | 1.5 | ||
| Hardware: | x86 (IA32) | ||
| OS: | Windows (All) | ||
| Whiteboard: | |||
| i915 platform: | i915 features: | ||
| Attachments: |
compilation log, configure.ac, configure.log
adds "disable_shared" detection patch to dbus-1-5-8/tools/Makefile.am |
||
|
Description
william
2012-02-20 12:38:38 UTC
*** This bug has been marked as a duplicate of bug 33973 *** *** Bug 46366 has been marked as a duplicate of this bug. *** Created attachment 57476 [details]
compilation log, configure.ac, configure.log
the bug was not really the same as 33973, and the proposed action did not solved the problem... oops sorry :
the proposed patch on the configure.ac did not work :
if test "x$enable_shared" = xno; then
AC_DEFINE([DBUS_STATIC_BUILD], [1],
[Define to 1 if you are only building static libraries])
fi
but adding DDBUS_STATIC_BUILD worked :
./configure [...] --enable-static --disable-shared CFLAGS=-DDBUS_STATIC_BUILD
I'll have a look to see a way to include this in configure.ac
cheers
Created attachment 57488 [details] [review] adds "disable_shared" detection Created attachment 57489 [details] [review] patch to dbus-1-5-8/tools/Makefile.am Here are patches to dbus-1.5.8/configure.ac and dbus-1.5.8/tools/Makefile.am to fix the problem. (In reply to comment #4) > the bug was not really the same as 33973 The cause and solution appear to be the same, even if your compilation environment is different. I'm going to (re-)close this as a duplicate and use Bug #33973 as the "main" bug, since that ensures that the reporter of 33973 gets cc'd. (In reply to comment #8) > Here are patches to dbus-1.5.8/configure.ac and dbus-1.5.8/tools/Makefile.am to > fix the problem. Thanks, these look good. I've adjusted them a bit to add some comments and propagate DBUS_BUILD_STATIC to the pkg-config files too, when in a static-only build (which I believe is necessary if you're using pkg-config). I'll attach the results to Bug #33973. *** This bug has been marked as a duplicate of bug 33973 *** |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.