[Pkg-xen-devel] libxen-dev: multiple symbol definition
Maxim Gorbachyov
maxim.gorbachyov at gmail.com
Wed Nov 12 10:23:07 UTC 2008
Hello.
That's what I've got from ld:
/usr/lib/libxenguest.a(xg_private.o): In function `unlock_pages':
(.text+0x490): multiple definition of `unlock_pages'
/usr/lib/libxenctrl.a(xc_private.o):(.text+0x6a0): first defined here
/usr/lib/libxenguest.a(xg_private.o): In function `lock_pages':
(.text+0x4d0): multiple definition of `lock_pages'
/usr/lib/libxenctrl.a(xc_private.o):(.text+0x700): first defined here
collect2: ld returned 1 exit status
Indeed:
/usr/lib$ readelf -s libxenctrl.a | grep lock_pages
8: 00000000 0 NOTYPE GLOBAL DEFAULT UND lock_pages
10: 00000000 0 NOTYPE GLOBAL DEFAULT UND unlock_pages
8: 00000000 0 NOTYPE GLOBAL DEFAULT UND lock_pages
10: 00000000 0 NOTYPE GLOBAL DEFAULT UND unlock_pages
15: 00000000 0 NOTYPE GLOBAL DEFAULT UND lock_pages
17: 00000000 0 NOTYPE GLOBAL DEFAULT UND unlock_pages
9: 00000000 0 NOTYPE GLOBAL DEFAULT UND lock_pages
11: 00000000 0 NOTYPE GLOBAL DEFAULT UND unlock_pages
54: 000006a0 86 FUNC GLOBAL DEFAULT 1 unlock_pages
56: 00000700 41 FUNC GLOBAL DEFAULT 1 lock_pages
8: 00000000 0 NOTYPE GLOBAL DEFAULT UND lock_pages
10: 00000000 0 NOTYPE GLOBAL DEFAULT UND unlock_pages
8: 00000000 0 NOTYPE GLOBAL DEFAULT UND lock_pages
10: 00000000 0 NOTYPE GLOBAL DEFAULT UND unlock_pages
9: 00000000 0 NOTYPE GLOBAL DEFAULT UND lock_pages
11: 00000000 0 NOTYPE GLOBAL DEFAULT UND unlock_pages
21: 00000000 0 NOTYPE GLOBAL DEFAULT UND lock_pages
22: 00000000 0 NOTYPE GLOBAL DEFAULT UND unlock_pages
43: 00000000 0 NOTYPE GLOBAL DEFAULT UND lock_pages
45: 00000000 0 NOTYPE GLOBAL DEFAULT UND unlock_pages
/usr/lib$ readelf -s libxenguest.a | grep lock_pages
29: 00000490 51 FUNC GLOBAL DEFAULT 1 unlock_pages
31: 000004d0 9 FUNC GLOBAL DEFAULT 1 lock_pages
30: 00000000 0 NOTYPE GLOBAL DEFAULT UND lock_pages
32: 00000000 0 NOTYPE GLOBAL DEFAULT UND unlock_pages
38: 00000000 0 NOTYPE GLOBAL DEFAULT UND lock_pages
42: 00000000 0 NOTYPE GLOBAL DEFAULT UND unlock_pages
19: 00000000 0 NOTYPE GLOBAL DEFAULT UND lock_pages
21: 00000000 0 NOTYPE GLOBAL DEFAULT UND unlock_pages
60: 00000000 0 NOTYPE GLOBAL DEFAULT UND lock_pages
64: 00000000 0 NOTYPE GLOBAL DEFAULT UND unlock_pages
Are these libs supposed to be used together? If yes, how?
Please cc me if you reply.
More information about the Pkg-xen-devel
mailing list