Bug 131250 - openvz-sources-026.009 - undefined reference to `ub_unused_privvm_inc'
Bug#: 131250 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: vserver-devs@gentoo.org Reported By: elton@doopydoop.nl
Component: Core system
URL: 
Summary: openvz-sources-026.009 - undefined reference to `ub_unused_privvm_inc'
Keywords:  
Status Whiteboard: 
Opened: 2006-04-25 11:30 0000
Description:   Opened: 2006-04-25 11:30 0000
mm/built-in.o: In function `__xip_unmap':
filemap_xip.c:(.text+0x19bd4): undefined reference to `ub_unused_privvm_inc'
make: *** [.tmp_vmlinux1] Error 1

Can be resolved by adding

#include <ub/ub_vmpages.h> 

to mm/filemap_xip.c

------- Comment #1 From Jakub Moc (RETIRED) 2006-04-25 11:40:06 0000 -------
Version? emerge --info?

------- Comment #2 From Elton Algera 2006-04-26 09:53:24 0000 -------
Version: openvz-sources-026.009

Portage 2.1_pre7-r5 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.4-r1,
2.6.16-026test009 i686)
=================================================================
System uname: 2.6.16-026test009 i686 AMD Athlon(tm) XP 3000+
Gentoo Base System version 1.12.0_pre17
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.15.92.0.2-r10, 2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild
/etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks metadata-transfer sandbox
sfperms strict"
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://85.25.128.62
ftp://mirror.nutsmaas.nl/gentoo/"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X Xaw3d aalib acl alsa bash-completion berkdb
bitmap-fonts browserplugin bzip2 canvas chroot crypt cscope cups curl dga
directfb dlloader examples extensions fbcon gdbm ggi gif glitz gpm gtk idea
imlib iproute2 ipv6 java javascript jpeg kdeenablefinal mmx mozsvg mp3 mpeg
multislot multitarget ncurses nls nptl nptlonly ogg opengl pam perl png python
rdesktop readline samba sdk sdl speex sse ssl svga tcpd threads tiff truetype
truetype-fonts type1-fonts unicode vorbis xinerama xmms xprint xv zlib
elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux
userland_GNU video_cards_nv video_cards_vesa video_cards_fbdev"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL,
LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY

------- Comment #3 From Jakub Moc (RETIRED) 2006-04-26 09:58:27 0000 -------
...

------- Comment #4 From Christian Heim (RETIRED) 2006-04-27 05:52:54 0000 -------
Elton, could you please provide the corresponding CONFIG options (the ones
openvz sets/uses) ?

------- Comment #5 From Elton Algera 2006-04-27 10:11:16 0000 -------
Sure, I think this is all:

CONFIG_VZ_QUOTA=m
# CONFIG_VZ_QUOTA_UNLOAD is not set
CONFIG_VZ_QUOTA_UGID=y


CONFIG_VE=y
CONFIG_VE_CALLS=m
CONFIG_VE_NETDEV=m
CONFIG_VE_IPTABLES=y
CONFIG_VZ_WDOG=m
CONFIG_VZ_CHECKPOINT=m

------- Comment #6 From Benedikt Böhm 2006-04-27 13:11:00 0000 -------
026.009-r1 in cvs, thanks.

------- Comment #7 From Kir Kolyshkin 2006-04-30 15:32:18 0000 -------
Filed as OpenVZ bug #149 (http://bugzilla.openvz.org/149). Apparently this is
due to CONFIG_FS_XIP which is not used in "standard" configs.