Skip to contentSkip to conversation

QEMU Xen compile problem

Qemu-devel Blue Swirl 2 participants 5 messages Apr 25, 2009 – Apr 28, 2009

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw

Hi,

When I try to compile the QEMU git head with Xen enabled, I get the following errors:

LINK qemu
/usr/lib/libxenguest.a(xg_private.o): In function `unlock_pages':
(.text+0x470): multiple definition of unlock_pages' /usr/lib/libxenctrl.a(xc_private.o):(.text+0x5d0): first defined here /usr/lib/libxenguest.a(xg_private.o): In function lock_pages':
(.text+0x4c0): multiple definition of `lock_pages' /usr/lib/libxenctrl.a(xc_private.o):(.text+0x650): first defined here
collect2: ld returned 1 exit status
make: *** [qemu] Error 1

It looks like this is a known problem:
http://lists.xensource.com/archives/html/xen-devel/2008-05/msg00510.html

Is there any fix available?

#1 lore raw
Quoted 15 lines · Blue Swirl

Hi,

When I try to compile the QEMU git head with Xen enabled, I get the following errors:

LINK qemu
/usr/lib/libxenguest.a(xg_private.o): In function `unlock_pages':
(.text+0x470): multiple definition of unlock_pages' /usr/lib/libxenctrl.a(xc_private.o):(.text+0x5d0): first defined here /usr/lib/libxenguest.a(xg_private.o): In function lock_pages':
(.text+0x4c0): multiple definition of `lock_pages' /usr/lib/libxenctrl.a(xc_private.o):(.text+0x650): first defined here
collect2: ld returned 1 exit status
make: *** [qemu] Error 1

Quoted 6 lines

It looks like this is a known problem:
http://lists.xensource.com/archives/html/xen-devel/2008-05/msg00510.html

Is there any fix available?

The fix is CS 17701, in facts I don't see these errors with the latest xen-unstable, what xen version are you trying against?

#2 lore raw
In reply to Blue Swirl
Quoted 15 lines · Blue Swirl

Hi,

When I try to compile the QEMU git head with Xen enabled, I get the following errors:

LINK qemu
/usr/lib/libxenguest.a(xg_private.o): In function `unlock_pages':
(.text+0x470): multiple definition of unlock_pages' /usr/lib/libxenctrl.a(xc_private.o):(.text+0x5d0): first defined here /usr/lib/libxenguest.a(xg_private.o): In function lock_pages':
(.text+0x4c0): multiple definition of `lock_pages' /usr/lib/libxenctrl.a(xc_private.o):(.text+0x650): first defined here
collect2: ld returned 1 exit status
make: *** [qemu] Error 1

Quoted 6 lines

It looks like this is a known problem:
http://lists.xensource.com/archives/html/xen-devel/2008-05/msg00510.html

Is there any fix available?

The fix is CS 17701, in facts I don't see these errors with the latest xen-unstable, what xen version are you trying against?

author
#3 lore raw
Quoted 28 lines · Stefano Stabellini
Quoted 15 lines · Blue Swirl

Hi,

When I try to compile the QEMU git head with Xen enabled, I get the following errors:

LINK qemu
/usr/lib/libxenguest.a(xg_private.o): In function `unlock_pages':
(.text+0x470): multiple definition of unlock_pages' /usr/lib/libxenctrl.a(xc_private.o):(.text+0x5d0): first defined here /usr/lib/libxenguest.a(xg_private.o): In function lock_pages':
(.text+0x4c0): multiple definition of `lock_pages' /usr/lib/libxenctrl.a(xc_private.o):(.text+0x650): first defined here
collect2: ld returned 1 exit status
make: *** [qemu] Error 1

Quoted 6 lines

It looks like this is a known problem:
http://lists.xensource.com/archives/html/xen-devel/2008-05/msg00510.html

Is there any fix available?

Quoted 2 lines

The fix is CS 17701, in facts I don't see these errors with the latest
xen-unstable, what xen version are you trying against?

This comes from Debian libxen-dev version: 3.2.1-2. Maybe it's too old.

#4 lore raw
Quoted 7 lines · Blue Swirl
Quoted 4 lines · Stefano Stabellini

Blue Swirl wrote:

The fix is CS 17701, in facts I don't see these errors with the latest
xen-unstable, what xen version are you trying against?

This comes from Debian libxen-dev version: 3.2.1-2. Maybe it's too old.

yeah, ancient :)