* [Bluez-devel] Fix linking order so that -Wl,--as-needed works
@ 2007-05-11 19:27 Petteri Räty
0 siblings, 0 replies; only message in thread
From: Petteri Räty @ 2007-05-11 19:27 UTC (permalink / raw)
To: bluez-devel
[-- Attachment #1.1.1: Type: text/plain, Size: 2554 bytes --]
gcc -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/freetype2
-I/usr/include/libpng12 -Wall -O2 -D_FORTIFY_SOURCE=2 -Wl,--as-needed
-o bluetooth-sendto main.o -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
-lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0
-lgmodule-2.0 -ldl -lglib-2.0 -ldbus-glib-1 -ldbus-1 -lgobject-2.0
-lglib-2.0 ../common/libcommon.a
../common/libcommon.a(client.o): In function
`bluetooth_client_cancel_discovery':
client.c:(.text+0x566): undefined reference to `dbus_g_proxy_call'
../common/libcommon.a(client.o): In function
`bluetooth_client_discover_devices':
client.c:(.text+0x666): undefined reference to `dbus_g_proxy_call'
../common/libcommon.a(client.o): In function
`bluetooth_client_create_bonding':
client.c:(.text+0x79f): undefined reference to `dbus_g_proxy_begin_call'
../common/libcommon.a(client.o): In function
`adapter_create_bonding_async_callback':
client.c:(.text+0x7f1): undefined reference to `dbus_g_proxy_end_call'
../common/libcommon.a(client.o): In function
`bluetooth_client_register_passkey_agent':
client.c:(.text+0x8de): undefined reference to
`dbus_g_object_type_install_info'
client.c:(.text+0x904): undefined reference to
`dbus_g_connection_register_g_object'
client.c:(.text+0x937): undefined reference to `dbus_g_proxy_new_for_name'
client.c:(.text+0x974): undefined reference to `dbus_g_proxy_call'
../common/libcommon.a(client.o): In function `insert_device':
client.c:(.text+0xb80): undefined reference to `dbus_g_proxy_call'
client.c:(.text+0xbbd): undefined reference to `dbus_g_proxy_call'
client.c:(.text+0xbfd): undefined reference to `dbus_g_proxy_call'
client.c:(.text+0xc3b): undefined reference to `dbus_g_proxy_call'
../common/libcommon.a(client.o):client.c:(.text+0xf8c): more undefined
references to `dbus_g_proxy_call' follow
../common/libcommon.a(client.o): In function `add_adapter':
client.c:(.text+0x12b1): undefined reference to `dbus_g_proxy_new_for_name'
client.c:(.text+0x1328): undefined reference to `dbus_g_proxy_add_signal'
client.c:(.text+0x134f): undefined reference to
`dbus_g_proxy_connect_signal'
This is fixed with the attached patch. See
http://www.gentoo.org/proj/en/qa/asneeded.xml for background.
Regards,
Petteri Räty
--
Gentoo developer
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.1.2: bluez-gnome-linking-order.patch --]
[-- Type: text/x-patch; name="bluez-gnome-linking-order.patch", Size: 584 bytes --]
Index: sendto/Makefile.am
===================================================================
RCS file: /cvsroot/bluez/gnome/sendto/Makefile.am,v
retrieving revision 1.3
diff -u -r1.3 Makefile.am
--- sendto/Makefile.am 22 Oct 2006 18:22:25 -0000 1.3
+++ sendto/Makefile.am 11 May 2007 19:02:01 -0000
@@ -3,7 +3,7 @@
bluetooth_sendto_SOURCES = main.c
-bluetooth_sendto_LDADD = @GTK_LIBS@ @DBUS_LIBS@ $(top_builddir)/common/libcommon.a
+bluetooth_sendto_LDADD = $(top_builddir)/common/libcommon.a @GTK_LIBS@ @DBUS_LIBS@
AM_CFLAGS = @DBUS_CFLAGS@ @GTK_CFLAGS@
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
[-- Attachment #2: Type: text/plain, Size: 286 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-05-11 19:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-11 19:27 [Bluez-devel] Fix linking order so that -Wl,--as-needed works Petteri Räty
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.