Bug 46366 - mingw-w64 compilation error with dbus-monitor : undefined reference to message_get_error_name
Summary: mingw-w64 compilation error with dbus-monitor : undefined reference to messag...
Status: RESOLVED DUPLICATE of bug 33973
Alias: None
Product: dbus
Classification: Unclassified
Component: core (show other bugs)
Version: 1.5
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Havoc Pennington
QA Contact: John (J5) Palmieri
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-20 12:33 UTC by william
Modified: 2012-02-21 07:11 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
dbus compilation full log (43.73 KB, application/octet-stream)
2012-02-20 12:33 UTC, william
Details

Description william 2012-02-20 12:33:56 UTC
Created attachment 57356 [details]
dbus compilation full log

cross-compiling on top of mingw-w64 gcc, from ubuntu, with a modified version of mingw-cross-env, I run :
automake && ./configure --host='x86_64-w64-mingw32' --prefix='/home/performance/prgm/mingw-cross-env-x86/usr/x86_64-w64-mingw32' --disable-shared --enable-static

with this, I get errors, among which the first : 
  CCLD   dbus-launch.exe
  CC     dbus-monitor.o
  CC     dbus-print-message.o
  CCLD   dbus-monitor.exe
dbus-monitor.o: In function `profile_print_with_attrs':
/home/performance/prgm/mingw-cross-env-x86/tmp-dbus/dbus-1.5.8/tools/dbus-monitor.c:154: undefined reference to `__imp_dbus_message_get_error_name'
/home/performance/prgm/mingw-cross-env-x86/tmp-dbus/dbus-1.5.8/tools/dbus-monitor.c:151: undefined reference to `__imp_dbus_message_get_member'
/home/performance/prgm/mingw-cross-env-x86/tmp-dbus/dbus-1.5.8/tools/dbus-monitor.c:148: undefined reference to `__imp_dbus_message_get_interface'
/home/performance/prgm/mingw-cross-env-x86/tmp-dbus/dbus-1.5.8/tools/dbus-monitor.c:145: undefined reference to `__imp_dbus_message_get_path'
/home/performance/prgm/mingw-cross-env-x86/tmp-dbus/dbus-1.5.8/tools/dbus-monitor.c:142: undefined reference to `__imp_dbus_message_get_destination'
/home/performance/prgm/mingw-cross-env-x86/tmp-dbus/dbus-1.5.8/tools/dbus-monitor.c:139: undefined reference to `__imp_dbus_message_get_sender'
/home/performance/prgm/mingw-cross-env-x86/tmp-dbus/dbus-1.5.8/tools/dbus-monitor.c:136: undefined reference to `__imp_dbus_message_get_reply_serial'
/home/performance/prgm/mingw-cross-env-x86/tmp-dbus/dbus-1.5.8/tools/dbus-monitor.c:133: undefined reference to `__imp_dbus_message_get_serial'

I am trying to compile "static", but it seems there is some confusion with dll?
Comment 1 Simon McVittie 2012-02-21 07:10:54 UTC
(Why is everyone suddenly interested in building static binaries on Windows?)

*** This bug has been marked as a duplicate of bug 46367 ***
Comment 2 Simon McVittie 2012-02-21 07:11:47 UTC

*** 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.