Opened 3 months ago

Last modified 3 months ago

#69339 assigned defect

glib2 tests opportunistically use dbus

Reported by: barracuda156 Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.9.1
Keywords: Cc:
Port: glib2, glib2-devel

Description

In result the build of glib2 + universal may fail on linking, if dbus has been installed as non-universal earlier.

The issue discovered when trying to upgrade glib2 to + universal on 10.6.8 (standard set-up with Xcode 4.2 and Clang, building for i386+x86_64).

Change History (2)

comment:1 Changed 3 months ago by barracuda156

:info:build FAILED: gio/tests/gdbus-server-auth 
:info:build /opt/local/bin/clang-mp-3.7  -o gio/tests/gdbus-server-auth gio/tests/gdbus-server-auth.p/gdbus-server-auth.c.o -L/opt/local/lib -I/opt/local/include -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -Wl,-headerpad_max_install_names -lresolv -bind_at_load -lMacportsLegacySupport -arch i386 -pipe -Os -Wno-deprecated-declarations -arch i386 -Wl,-rpath,@loader_path/../../glib -Wl,-rpath,@loader_path/../../gmodule -Wl,-rpath,@loader_path/../../gobject -Wl,-rpath,@loader_path/.. -Wl,-rpath,/opt/local/lib glib/libglib-2.0.0.dylib gmodule/libgmodule-2.0.0.dylib gobject/libgobject-2.0.0.dylib gio/libgio-2.0.0.dylib -lintl -L/opt/local/lib -ldbus-1
:info:build ld: warning: ignoring file /opt/local/lib/libdbus-1.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
:info:build Undefined symbols for architecture i386:
:info:build   "_dbus_message_get_args", referenced from:
:info:build       _do_test_server_auth in gdbus-server-auth.c.o
:info:build   "_dbus_message_new_method_call", referenced from:
:info:build       _do_test_server_auth in gdbus-server-auth.c.o
:info:build   "_dbus_connection_send_with_reply_and_block", referenced from:
:info:build       _libdbus_call_task_cb in gdbus-server-auth.c.o
:info:build   "_dbus_connection_unref", referenced from:
:info:build       _do_test_server_auth in gdbus-server-auth.c.o
:info:build   "_dbus_message_unref", referenced from:
:info:build       _do_test_server_auth in gdbus-server-auth.c.o
:info:build   "_dbus_connection_open_private", referenced from:
:info:build       _do_test_server_auth in gdbus-server-auth.c.o
:info:build   "_dbus_connection_close", referenced from:
:info:build       _do_test_server_auth in gdbus-server-auth.c.o
:info:build ld: symbol(s) not found for architecture i386
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)

comment:2 Changed 3 months ago by jmroot (Joshua Root)

Summary: glib2 depends on dbus but does not declare thatglib2 tests opportunistically use dbus

Clearly doesn't actually depend on dbus or all buildbot builds would fail.

Note: See TracTickets for help on using tickets.