Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 238651 - app-emulation/xen-tools-3.3.0 - xenstat.c:(.text+0x527): undefined reference to `xc_version'
Summary: app-emulation/xen-tools-3.3.0 - xenstat.c:(.text+0x527): undefined reference ...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Xen Devs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-25 12:58 UTC by Goran Mekić
Modified: 2009-04-27 12:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
xen-tools-3.3.0-r1.ebuild diff (xen-tools-3.3.0-r1.ebuild.patch,320 bytes, patch)
2008-09-30 06:56 UTC, Goran Mekić
Details | Diff
Patch to include missing libs (xen-tools-3.3.0-include-libs.patch,612 bytes, patch)
2008-09-30 07:00 UTC, Goran Mekić
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Goran Mekić 2008-09-25 12:58:30 UTC
With this error (I've tried not to reapeat same error mesages):
xenstat.c:(.text+0x527): undefined reference to `xc_version'
xenstat.c:(.text+0x64a): undefined reference to `xc_vcpu_getinfo'
xenstat.c:(.text+0x768): undefined reference to `xc_physinfo'
xenstat.c:(.text+0x7fa): undefined reference to `xc_domain_getinfolist'
xenstat.c:(.text+0x8ab): undefined reference to `xs_read'
xenstat.c:(.text+0xa99): undefined reference to `xc_interface_close'
xenstat.c:(.text+0xaa2): undefined reference to `xs_daemon_close'
xenstat.c:(.text+0xaf0): undefined reference to `xc_interface_open'
xenstat.c:(.text+0xafc): undefined reference to `xs_daemon_open_readonly'
xenstat.c:(.text+0xb3b): undefined reference to `xc_interface_close'

I think some of -L and -l options are missing.

Reproducible: Always

Steps to Reproduce:
Comment 1 Rafał Mużyło 2008-09-26 11:25:00 UTC
Care to post a few more lines, like
i.e. the command that triggered the error ?
Comment 2 Goran Mekić 2008-09-26 11:53:34 UTC
make[4]: Entering directory `/var/tmp/paludis/app-emulation-xen-tools-3.3.0/work/xen-3.3.0/tools/xenstat/xentop'
gcc  -fno-strict-overflow -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statemen
t  -D__XEN_TOOLS__  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unus
ed-value -Wdeclaration-after-statement  -D__XEN_TOOLS__  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu9
9 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -D__XEN_TOOLS__  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -O2 -fomit-frame-pointe
r -m64 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -D__XEN_TOOLS__  -D_LARGEFILE_SOURCE -D_LARGEF
ILE64_SOURCE  -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -D__XEN_T
OOLS__  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -DGCC_PRINTF -Wall -Werror -I../../../tools/xenstat/libxenstat/src -DHOST_Linux  -Wl,-O1 -Wl,--hash-style=gnu
 -Wl,--sort-common -s                -L../../../tools/xenstat/libxenstat/src  xentop.c  -lxenstat -lncurses  -o xentop
../../../tools/xenstat/libxenstat/src/libxenstat.a(xenstat.o): In function `xenstat_collect_xen_version':
xenstat.c:(.text+0x527): undefined reference to `xc_version'
xenstat.c:(.text+0x541): undefined reference to `xc_version'
../../../tools/xenstat/libxenstat/src/libxenstat.a(xenstat.o): In function `xenstat_collect_vcpus':
xenstat.c:(.text+0x64a): undefined reference to `xc_vcpu_getinfo'
../../../tools/xenstat/libxenstat/src/libxenstat.a(xenstat.o): In function `xenstat_get_node':
xenstat.c:(.text+0x768): undefined reference to `xc_physinfo'
xenstat.c:(.text+0x7fa): undefined reference to `xc_domain_getinfolist'
xenstat.c:(.text+0x8ab): undefined reference to `xs_read'
xenstat.c:(.text+0x971): undefined reference to `xs_read'
../../../tools/xenstat/libxenstat/src/libxenstat.a(xenstat.o): In function `xenstat_uninit':
xenstat.c:(.text+0xa99): undefined reference to `xc_interface_close'
xenstat.c:(.text+0xaa2): undefined reference to `xs_daemon_close'
../../../tools/xenstat/libxenstat/src/libxenstat.a(xenstat.o): In function `xenstat_init':
xenstat.c:(.text+0xaf0): undefined reference to `xc_interface_open'
xenstat.c:(.text+0xafc): undefined reference to `xs_daemon_open_readonly'
xenstat.c:(.text+0xb3b): undefined reference to `xc_interface_close'
collect2: ld returned 1 exit status
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2008-09-26 14:08:32 UTC
Please post your `emerge --info' too.
Comment 4 Goran Mekić 2008-09-26 14:53:25 UTC
I use paludis, but here it goes:

Portage 2.2_rc8 (default-linux/amd64/2006.1/no-multilib, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.26-zenrt1 x86_64)
=================================================================
System uname: Linux-2.6.26-zenrt1-x86_64-AMD_Athlon-tm-_64_Processor_3000+-with-glibc2.2.5
Timestamp of tree: Fri, 26 Sep 2008 01:45:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -mtune=athlon64 -fomit-frame-pointer -frename-registers -momit-leaf-frame-pointer -Wno-error -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon64 -mtune=athlon64 -fomit-frame-pointer -frename-registers -momit-leaf-frame-pointer -Wno-error -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -s"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/overlays/paludis-extras"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip X aac alsa amd64 async atm avi bash-completion bzip2 cairo contrarius crypt custom-cflags directfb divx dlloader dpms dri dvd dvdr dvdread encode exif fbcon ffmpeg firefox flac gif glibc-omitfp glsa glut gpgme gpm gtk2 iconv imap ipv6 ithreads jpeg kqemu lm_sensors logrotate mng mp3 mpeg ncurses nls nptl nptlonly nsplugin nvidia ogg oggvorbis opengl oss pcre pdf png posix pulseaudio qemu rtc sdl slang spell ssl svg symlink tga threads threadsonly tiff truetype unicode usb vid visibility vorbis wma x xft xorg xv zip" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x        ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3       trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Goran Mekić 2008-09-30 06:56:02 UTC
Created attachment 166801 [details, diff]
xen-tools-3.3.0-r1.ebuild diff
Comment 6 Goran Mekić 2008-09-30 07:00:51 UTC
Created attachment 166802 [details, diff]
Patch to include missing libs
Comment 7 Goran Mekić 2008-09-30 07:01:42 UTC
It builds with this changes, but I can not test it because xen package fails at building. Will see to fix that, too.
Comment 8 Patrick Lauer gentoo-dev 2009-04-27 12:58:01 UTC
Cannot reproduce. Does it happen with 3.3.1? What useflags/cflags/... are needed to trigger it?