kyoto root # emerge nis-utils Calculating dependencies ...done! >>> emerge (1 of 1) net-nds/nis-utils-1.4.1 to / cleansing builddir/var/tmp/portage/nis-utils-1.4.1 >>> md5 files ;-) ChangeLog >>> md5 files ;-) nis-utils-1.4.1-r1.ebuild >>> md5 files ;-) nis-utils-1.4.1.ebuild >>> md5 files ;-) files/digest-nis-utils-1.4.1-r1 >>> md5 files ;-) files/digest-nis-utils-1.4.1 >>> md5 files ;-) files/keyserv.rc >>> md5 src_uri ;-) nis-utils-1.4.1.tar.bz2 creating temp dir swapping processors for ['unpack', 'compile', 'test'] >>> Unpacking source... >>> Unpacking nis-utils-1.4.1.tar.bz2 to /var/tmp/portage/nis-utils-1.4.1/work >>> Source unpacked. * econf: updating nis-utils-1.4.1/config.sub with /usr/share/gnuconfig/config.sub * econf: updating nis-utils-1.4.1/config.guess with /usr/share/gnuconfig/config.guess `/var/cache/edb/confcache' -> `/var/tmp/portage/nis-utils-1.4.1/temp/local_cache' >>> Temporary configure cache file is /var/tmp/portage/nis-utils-1.4.1/temp/local_cache ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --cache-file=/var/tmp/portage/nis-utils-1.4.1/temp/local_cache --enable-nlsloading cache /var/tmp/portage/nis-utils-1.4.1/temp/local_cache <snip compilation info> mkdir .libs i686-pc-linux-gnu-gcc -W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wshadow -Wstrict-prototypes -Wundef -mcpu=athlon-xp -march=athlon-xp -O3 -pipe -o nisgrpadm nisgrpadm.o -lnsl ../../lib/compat/libcompat.a nisgrpadm.o(.text+0xbcf): In function `list_group_members': : undefined reference to `nis_domain_of_r' collect2: ld returned 1 exit status make[3]: *** [nisgrpadm] Error 1 make[3]: Leaving directory `/var/tmp/portage/nis-utils-1.4.1/work/nis-utils-1.4.1/src/nisgrpadm' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/nis-utils-1.4.1/work/nis-utils-1.4.1/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/nis-utils-1.4.1/work/nis-utils-1.4.1' make: *** [all-recursive-am] Error 2 !!! ERROR: net-nds/nis-utils-1.4.1 failed. !!! Function src_compile, Line 1897, Exitcode 2 !!! Make Failed !!! If you need support, post the topmost build error, NOT this status message. phases failed >>> pids file is not a regular file I've built this before previous on both x86 and sparc, so I find it odd that it is failing now. kyoto root # emerge info Portage 1.586-cvs (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.10-gentoo-r6 i686) ================================================================= System uname: 2.6.10-gentoo-r6 i686 AMD Athlon(tm) XP 1800+ Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 5 2005, 02:36:29)] distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]ccache: No such file or directory [disabled] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.8.5-r3, 1.5, 1.7.9-r1, 1.6.3, 1.4_p6, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="no" CFLAGS="-mcpu=athlon-xp -march=athlon-xp -O3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mcpu=athlon-xp -march=athlon-xp -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg confcache digest distlocks parallel-fetch sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo ftp://gentoo.chem.wisc.edu/gentoo" MAKEOPTS="-j2" PKGDIR="/home/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 3dnow X acpi alsa apm arts avi bash-completion berkdb bitmap-fonts bmp canna caps cdr cjk crypt curl dvd dvdr dvdread emboss encode esd ethereal fam foomaticdb fortran gdbm gif gpm gtk gtk2 imagemagick imap imlib ipv6 jpeg kde libg++ libwww lm_sensors mad maildir matroska mikmod mmx mono motif mp3 mpeg mysql ncurses nis nls nptl offensive ogg oggvorbis openal opengl pam pdflib perl png posix python qt quicktime readline real sdl spell sse ssl svg svga tcltk tcpd threads tiff truetype truetype-fonts type1-fonts vorbis wxwindows xml xml2 xmms xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS Config files: /etc/make.conf, /etc/portage/bashrc, /etc/portage/package.mask, /etc/portage/package.unmask, /etc/portage/package.keywords, /etc/portage/profile/virtuals Reproducible: Always Steps to Reproduce: 1. Buy too many sparcs and attempt to set up NIS ;) 2. unmask nis-utils-1.4.1 on x86 in /etc/portage/package.keywords 3. emerge nis-utils Actual Results: compile error Expected Results: NIS goodness 1.4.1-r1 build fine on my sparc system ( not keyworded ). Not sure what the issue is.
remove 'confcache' from your KEYWORDS and see if that helps
fails with FEATURES="-confcache" emerge =nis-utils-1.4.1 same error.
can you post the full log ? `env FEATURES=-confcache emerge nis-utils >& log` if that fails, try emerging a stable portage and see if that works
I decided that I'd try on a box with stable portage. torx root # emerge info Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.10-gentoo-r6 i686) ================================================================= System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 14 2005, 09:12:48)] ccache version 2.3 [enabled] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.5, 1.9.4, 1.6.3, 1.7.9-r1, 1.4_p6, 1.8.5-r3 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-mcpu=pentium4 -march=pentium4 -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mcpu=pentium4 -march=pentium4 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apache2 apm avi bash-completion berkdb bitmap-fonts cdr cjk crypt cups curl dvd dvdr dvdread emboss encode esd fam flac foomaticdb fortran freetype gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imap imlib ipv6 jpeg ldap libg++ libwww lm_sensors mad matroska mikmod motif mozilla mp3 mpeg ncurses nis nls ntpl ntpl-only offensive ogg oggvorbis openal opengl pam pdflib perl php pic png posix python quicktime readline samba sdl spell ssl svga tcpd threads tiff truetype truetype-fonts type1-fonts vorbis wxwindows xine xinerama xml2 xmms xprint xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Created attachment 57066 [details] Log of output. Here is the log of build output for the build on torx ( stable portage ).
what does `readelf -s /usr/lib/libnsl.so | grep nis_domain_of_r` show ? that library should be exporting that function
kyoto root # readelf -s /usr/lib/libnsl.so | grep nis_domain 25: 0000ce80 54 FUNC GLOBAL DEFAULT 12 nis_domain_of@@GLIBC_2.1 Apparently not :(
can you list all the different versions of glibc you are using ? my output was from glibc-2.3.5
skyfw@kyoto skyfw $ emerge -Cp glibc >>> These are the packages that I would unmerge: !!! Trying to unmerge package(s) in system profile. 'sys-libs/glibc' !!! This could be damaging to your system. sys-libs/glibc selected: 2.3.4.20041102-r1 protected: none omitted: none >>> 'Selected' packages are slated for removal. >>> 'Protected' and 'omitted' packages will not be removed. skyfw@kyoto skyfw $
WORKSFORME w/ glibc-2.3.5 Recently upgraded to do gcc4 testing, but this was with gcc 3.3.5 Might want to add a DEPEND on glibc-2.3.5 and above ( assuming the above work correctly ). Thanks for all the help!
see above comment, wasn't sure if vapier wanted more testing on why it failed with other glibc, reopen if so.
just FYI, I had the same problem while running glibc-2.3.4. After I emerged glibc-2.3.5, it worked fine.