New patch 0001-Explicitly-link-conn-test-example-against-libgobject.patch
Explicitly link conn-test example against libgobject
Guido Günther
12 years ago
|
0 |
From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
|
|
1 |
Date: Sun, 2 Oct 2011 13:58:52 +0200
|
|
2 |
Subject: Explicitly link conn-test example against libgobject
|
|
3 |
|
|
4 |
Otherwise the build fails with:
|
|
5 |
|
|
6 |
/usr/bin/ld: conn_test-conn-test.o: undefined reference to symbol 'g_type_check_instance_cast'
|
|
7 |
/usr/bin/ld: note: 'g_type_check_instance_cast' is defined in DSO /usr/lib/libgobject-2.0.so.0 so try adding it to the linker command line
|
|
8 |
/usr/lib/libgobject-2.0.so.0: could not read symbols: Invalid operation
|
|
9 |
collect2: ld returned 1 exit status
|
|
10 |
---
|
|
11 |
examples/Makefile.am | 4 ++--
|
|
12 |
1 files changed, 2 insertions(+), 2 deletions(-)
|
|
13 |
|
|
14 |
diff --git a/examples/Makefile.am b/examples/Makefile.am
|
|
15 |
index 10ce32d..0964597 100644
|
|
16 |
--- a/examples/Makefile.am
|
|
17 |
+++ b/examples/Makefile.am
|
|
18 |
@@ -25,5 +25,5 @@ conn_test_SOURCES = \
|
|
19 |
conn_test_LDADD = \
|
|
20 |
../libvirt-gobject/libvirt-gobject-1.0.la \
|
|
21 |
$(LIBVIRT_LIBS) \
|
|
22 |
- $(GLIB2_LIBS)
|
|
23 |
-
|
|
24 |
+ $(GLIB2_LIBS) \
|
|
25 |
+ $(GOBJECT2_LIBS)
|
|
26 |
--
|
|
0 |
0001-Explicitly-link-conn-test-example-against-libgobject.patch
|