Emerging util-vserver fails. Reproducible: Always Steps to Reproduce: 1. emerge sync 2. emerge util-vserver Actual Results: diet gcc -O2 -march=i686 -fomit-frame-pointer -std=c99 -Wall -pedantic -W -o tests/getctx tests/getctx.o lib/libvserver.a lib/libvserver.a(lib_libvserver_a-syscall_gettaskxid.o)(.text+0x15b): In function `vc_get_task_xid': : undefined reference to `syscall' [...] lots of other errors Expected Results: What is interesting is that if I do the gcc command without diet, then it works fine. I expected that it was a problem with diet, so I did: emerge -Nb dietlibc which completed without errors but it did not help the vserver. Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.5-r0, 2.6.11.6-grsec-vs1.9.5 i686) ================================================================= System uname: 2.6.11.6-grsec-vs1.9.5 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.16 dev-lang/python: 2.3.3-r1 sys-apps/sandbox: 1.2.10 sys-devel/autoconf: 2.59-r5 sys-devel/automake: 1.8.5-r1 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.2-r5 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://mir.zyrianes.net/gentoo/ http://ftp.du.se/pub/os/gentoo http://195.56.77.10/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apm arts avi berkdb bitmap-fonts crypt cups emboss encode esd fam foomaticdb fortran gdbm gif gnome gpm gtkgtk2 hardened hardenedphp imlib ipv6 jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline sdl spell ssl tcpd tiff truetype truetype-fonts type1-fonts xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
which version of dietlibc do you have installed?
emerge -s dietlibc Searching... [ Results for search key : dietlibc ] [ Applications found : 1 ] * dev-libs/dietlibc Latest version available: 0.28 Latest version installed: 0.28 Size of downloaded files: 547 kB Homepage: http://www.fefe.de/dietlibc/ Description: A minimal libc License: GPL-2
If I do: rm /usr/bin/diet I can recompile successfully - though I get: So I will try with the non-diet version and see how far I get. <RANT> Why is old but working ebuilds removed from portage? I had an old version of util-vserver working, but I cannot rebuild it now because of the mission .ebuild. </RANT>
If I do: rm /usr/bin/diet I can recompile successfully - though I get: configure: WARNING: *** *** configure: WARNING: *** it is strongly recommended to link util-vserver against *** configure: WARNING: *** dietlibc; glibc's NSS functions are very unreliable in *** configure: WARNING: *** chroot() environments, so you have to expect problems *** configure: WARNING: *** there. *** configure: WARNING: *** *** So I will try with the non-diet version and see how far I get. <RANT> Why is old but working ebuilds removed from portage? I had an old version of util-vserver working, but I cannot rebuild it now because of the mission .ebuild. </RANT>
just copy the ebuild to your overlay and change versions... you can use util-vserver with USE="-glibc" too, try to merge 0.30.208 and report if the error still exists
please reopen if still exists
Still valid on a fresh install on x86 (stable) using gcc-3.3.*. On a gcc-3.4.* system (pentium-m) util-vserver installs just fine. (using stable dietlibc 0.28) Version of util-vserver: 0.30.205-r1 I tried util-vserver-0.30.208-r2 which failed as well (gcc-3.3.6) on same error.
Cause of this compilation error seems to be the hardened USE flag. I built 2 systems with same GCC version, only difference is the hardened USE flag. With it compilation failure, without compiles fine.
please try if 0.30.208-r3 solves the hardened problem (it should... ;)
Reopening.
Guess this thing is fixed, as no one complained about it being broken currently.