When emerging python-2.6.2-r1 with USE="-nis" sometimes it failed. Possibly with MAKEOPTS="-j3". I build python with "-j1" 3 times - none failed and i see this file: /usr/lib/python2.6/lib-dynload/nis_failed.so. In attachment full build.log Reproducible: Sometimes Steps to Reproduce: 1.USE="-nis" emerge freebsd-lib 2.MAKEOPTS="-j3" emerge python Actual Results: ....................................... ar cr libpython2.6.a Modules/getbuildinfo.o ar cr libpython2.6.a Parser/acceler.o Parser/grammar1.o Parser/listnode.o Parser/node.o Parser/parser.o Parser/parsetok.o Parser/bitset.o Parser/metagrammar.o Parser/firstsets.o Parser/grammar.o Parser/pgen.o Parser/myreadline.o Parser/tokenizer.o ar cr libpython2.6.a Objects/abstract.o Objects/boolobject.o Objects/bufferobject.o Objects/bytes_methods.o Objects/bytearrayobject.o Objects/cellobject.o Objects/classobject.o Objects/cobject.o Objects/codeobject.o Objects/complexobject.o Objects/descrobject.o Objects/enumobject.o Objects/exceptions.o Objects/genobject.o Objects/fileobject.o Objects/floatobject.o Objects/frameobject.o Objects/funcobject.o Objects/intobject.o Objects/iterobject.o Objects/listobject.o Objects/longobject.o Objects/dictobject.o Objects/methodobject.o Objects/moduleobject.o Objects/object.o Objects/obmalloc.o Objects/rangeobject.o Objects/setobject.o Objects/sliceobject.o Objects/stringobject.o Objects/structseq.o Objects/tupleobject.o Objects/typeobject.o Objects/weakrefobject.o Objects/unicodeobject.o Objects/unicodectype.o ar cr libpython2.6.a Python/_warnings.o Python/Python-ast.o Python/asdl.o Python/ast.o Python/bltinmodule.o Python/ceval.o Python/compile.o Python/codecs.o Python/errors.o Python/frozen.o Python/frozenmain.o Python/future.o Python/getargs.o Python/getcompiler.o Python/getcopyright.o Python/getmtime.o Python/getplatform.o Python/getversion.o Python/graminit.o Python/import.o Python/importdl.o Python/marshal.o Python/modsupport.o Python/mystrtoul.o Python/mysnprintf.o Python/peephole.o Python/pyarena.o Python/pyfpe.o Python/pymath.o Python/pystate.o Python/pythonrun.o Python/structmember.o Python/symtable.o Python/sysmodule.o Python/traceback.o Python/getopt.o Python/pystrcmp.o Python/pystrtod.o Python/formatter_unicode.o Python/formatter_string.o Python/dynload_shlib.o Python/thread.o ar cr libpython2.6.a Modules/config.o Modules/getpath.o Modules/main.o Modules/gcmodule.o ar cr libpython2.6.a Modules/threadmodule.o Modules/signalmodule.o Modules/posixmodule.o Modules/errnomodule.o Modules/pwdmodule.o Modules/_sre.o Modules/_codecsmodule.o Modules/zipimport.o Modules/symtablemodule.o Modules/xxsubtype.o i486-gentoo-freebsd7.2-ranlib libpython2.6.a i486-gentoo-freebsd7.2-gcc -pthread -L. -Wl,--export-dynamic -o python \ Modules/python.o \ -L. -lpython2.6 -lutil -lm /var/tmp/portage/dev-lang/python-2.6.2-r1/work/Python-2.6.2/Modules/mathmodule.c: In function 'math_fsum': /var/tmp/portage/dev-lang/python-2.6.2-r1/work/Python-2.6.2/Modules/mathmodule.c:574: warning: passing argument 1 of 'PyFPE_dummy' discards qualifiers from pointer target type /var/tmp/portage/dev-lang/python-2.6.2-r1/work/Python-2.6.2/Modules/nismodule.c: In function 'nis_cat': /var/tmp/portage/dev-lang/python-2.6.2-r1/work/Python-2.6.2/Modules/nismodule.c:208: warning: assignment from incompatible pointer type [?1034h*** WARNING: renaming "nis" since importing it failed: build/lib.freebsd-7.2-RELEASE-i386-2.6/nis.so: Undefined symbol "yp_get_default_domain" .................................................. Failed to find the necessary bits to build these modules: _tkinter bsddb185 linuxaudiodev spwd sunaudiodev To find the necessary bits, look in setup.py in detect_modules() for the module's name. Failed to build these modules: nis >>> Source compiled. >>> Test phase [not enabled]: dev-lang/python-2.6.2-r1 >>> Install python-2.6.2-r1 into /var/tmp/portage/dev-lang/python-2.6.2-r1/image/ category dev-lang gmake -j3 DESTDIR=/var/tmp/portage/dev-lang/python-2.6.2-r1/image/ altinstall maninstall Creating directory /usr/include Creating directory /usr/bin Creating directory /usr/include/python2.6 install: mkdir /var/tmp/portage/dev-lang/python-2.6.2-r1/image//usr: File exists Creating directory /usr/lib /usr/bin/install -c python /var/tmp/portage/dev-lang/python-2.6.2-r1/image//usr/bin/python2.6 /usr/bin/install -c -m 644 ./Include/Python-ast.h /usr/include/python2.6 install: /var/tmp/portage/dev-lang/python-2.6.2-r1/image//usr/bin/python2.6: No such file or directory gmake: *** [altbininstall] Error 71 gmake: *** Waiting for unfinished jobs.... Portage 2.2_rc33 (default/bsd/fbsd/x86/7.2, gcc-4.3.3, freebsd-lib-7.2-r0, 7.2-RELEASE i386) ================================================================= System uname: FreeBSD-7.2-RELEASE-i386-32bit-ELF Timestamp of tree: Mon, 22 Jun 2009 13:15:01 +0000 app-shells/bash: 4.0_p24 dev-lang/python: 2.6.2-r1 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.4.3-r3 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.2, 1.11 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 7.2 ACCEPT_KEYWORDS="x86-fbsd ~x86-fbsd" CBUILD="i486-gentoo-freebsd7.2" CFLAGS="-march=athlon64 -O3 -pipe" CHOST="i486-gentoo-freebsd7.2" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=athlon64 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="buildpkg chflags collision-protect distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://localhost/gentoo/ http://mirror.yandex.ru/gentoo-distfiles/ http://distfiles.gentoo.org/ http://www.ibiblio.org/pub/Linux/distributions/gentoo/" LDFLAGS="" LINGUAS="ru" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" 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/local/portage" SYNC="rsync://mirrors.kernel.org/gentoo-portage/" USE="3dnow 3dnowext 7zip X a52 aac aalib acl acpi amr amrnb amrwb apache2 apm archive asf avi berkdb bluetooth browserplugin bzip2 cdr cli consolekit cracklib crypt cups curl dbus djvu dri dts dvd dvdr encode exif firefox flac flash foomaticdb ftp fuse gdbm gif gimp gimpprint glut gphoto2 gstreamer gtk hal iconv imlib ipv6 java5 java6 jpeg jpeg2k kde latex libcaca logrotate lzma mad midi mikmod mmx mmxext mng mozdevelop mozsvg mp3 mpeg mssql ncurses nls nptlonly nsplugin ogg openal openexr opengl oss pam pch pcre pdf perl plasma png postgres povray ppds python qt3 qt4 quicktime readline reflection rtc samba sdl session skins slang smp spell spl sqlite sqlite3 sse sse2 ssl subversion svg tcpd tga theora threads tiff truetype unicode usb userlocales vorbis win32codecs x264 x86-fbsd xcb xcomposite xine xml xorg xscreensaver xv xvid xvmc zip zlib" 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="FreeBSD" INPUT_DEVICES="keyboard mouse" KERNEL="FreeBSD" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" USERLAND="BSD" VIDEO_CARDS="nv nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 195496 [details] Build log
I got same error but on linux when compiled in chroot with uclibc. i can't find the "nis" key in my system...
Ahh, python 2.6.2-r1 seems to have been recently stabilised and now my uclibc+hardened chroot is breaking on this update... My significant errors are slightly different: building 'nis' extension i486-gentoo-linux-uclibc-gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -march=k6-2 -Os -pipe -fomit-frame-pointer -I. -I/var/tmp/portage/dev-lang/python-2.6.2-r1/work/Python-2.6.2/./Include -I. -IInclude -I./Include -I/var/tmp/portage/dev-lang/python-2.6.2-r1/work/Python-2.6.2/Include -I/var/tmp/portage/dev-lang/python-2.6.2-r1/work/Python-2.6.2 -c /var/tmp/portage/dev-lang/python-2.6.2-r1/work/Python-2.6.2/Modules/nismodule.c -o build/temp.linux-x86_64-2.6/var/tmp/portage/dev-lang/python-2.6.2-r1/work/Python-2.6.2/Modules/nismodule.o /var/tmp/portage/dev-lang/python-2.6.2-r1/work/Python-2.6.2/Modules/nismodule.c:18:28: rpcsvc/yp_prot.h: No such file or directory /var/tmp/portage/dev-lang/python-2.6.2-r1/work/Python-2.6.2/Modules/nismodule.c:19:27: rpcsvc/ypclnt.h: No such file or directory /var/tmp/portage/dev-lang/python-2.6.2-r1/work/Python-2.6.2/Modules/nismodule.c: In function `nis_error': /var/tmp/portage/dev-lang/python-2.6.2-r1/work/Python-2.6.2/Modules/nismodule.c:52: warning: passing arg 2 of `PyErr_SetString' makes pointer from integer without a cast /var/tmp/portage/dev-lang/python-2.6.2-r1/work/Python-2.6.2/Modules/nismodule.c: In function `nis_foreach': /var/tmp/portage/dev-lang/python-2.6.2-r1/work/Python-2.6.2/Modules/nismodule.c:108: error: `YP_TRUE' undeclared (first use in this function) /var/tmp/portage/dev-lang/python-2.6.2-r1/work/Python-2.6.2/Modules/nismodule.c:108: error: (Each undeclared identifier is reported only once /var/tmp/portage/dev-lang/python-2.6.2-r1/work/Python-2.6.2/Modules/nismodule.c:108: error: for each function it appears in.) /var/tmp/portage/dev-lang/python-2.6.2-r1/work/Python-2.6.2/Modules/nismodule.c: In function `nis_cat': /var/tmp/portage/dev-lang/python-2.6.2-r1/work/Python-2.6.2/Modules/nismodule.c:194: error: storage size of 'cb' isn't known /var/tmp/portage/dev-lang/python-2.6.2-r1/work/Python-2.6.2/Modules/nismodule.c: In function `nis_xdr_domainname': /var/tmp/portage/dev-lang/python-2.6.2-r1/work/Python-2.6.2/Modules/nismodule.c:270: error: `YPMAXDOMAIN' undeclared (first use in this function) /var/tmp/portage/dev-lang/python-2.6.2-r1/work/Python-2.6.2/Modules/nismodule.c: In function `nis_xdr_mapname': /var/tmp/portage/dev-lang/python-2.6.2-r1/work/Python-2.6.2/Modules/nismodule.c:280: error: `YPMAXMAP' undeclared (first use in this function) building '_curses' extension ...snip... Failed to find the necessary bits to build these modules: _tkinter bsddb185 dbm sunaudiodev To find the necessary bits, look in setup.py in detect_modules() for the module's name. Failed to build these modules: nis This persists even with -j1 on my setup? Actually I'm not sure that this is the real problem - googling around suggests that this failing is somewhat normal - what isn't normal is for it not to continue?
I've confirmed this bug on linux-hardened-uclibc. The bug is resolved if you use the toolchain from the hardened-development overlay.
You could also fix this bug by commenting out line 1099 in setup.py: # Sun yellow pages. Some systems have the functions in libc. if platform not in ['cygwin', 'atheos', 'qnx6']: if (self.compiler.find_library_file(lib_dirs, 'nsl')): libs = ['nsl'] else: libs = [] # exts.append( Extension('nis', ['nismodule.c'], # libraries = libs) ) else: missing.append('nis')
FYI: On hardened uclibc the solution from comment #4 failed the first time (workaround from comment #5 still worked) but it succeeded on the second stage rebuild.
same problem here when trying python-2.6.2-r1 with uclibc on i586, the solution in comment 5 works for me.
as for bsd this is fixed now since we always build nis support in freebsd-lib now