Hi, Emerged rsbac-sources-2.6.11-r3 OK. Received an error on rsbac-admin-1.2.4 package in the nss_rsbac part. Here's the log: ... make[2]: Leaving directory `/var/tmp/portage/rsbac-admin-1.2.4/work/rsbac-admin-v1.2.4/contrib/rsbac-klogd-2.0/rklogd-viewer'Making all in man make[2]: Entering directory `/var/tmp/portage/rsbac-admin-1.2.4/work/rsbac-admin-v1.2.4/contrib/rsbac-klogd-2.0/man' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/var/tmp/portage/rsbac-admin-1.2.4/work/rsbac-admin-v1.2.4/contrib/rsbac-klogd-2.0/man' make[2]: Entering directory `/var/tmp/portage/rsbac-admin-1.2.4/work/rsbac-admin-v1.2.4/contrib/rsbac-klogd-2.0' make[2]: Leaving directory `/var/tmp/portage/rsbac-admin-1.2.4/work/rsbac-admin-v1.2.4/contrib/rsbac-klogd-2.0' make[1]: Leaving directory `/var/tmp/portage/rsbac-admin-1.2.4/work/rsbac-admin-v1.2.4/contrib/rsbac-klogd-2.0' make: Leaving directory `/var/tmp/portage/rsbac-admin-1.2.4/work/rsbac-admin-v1.2.4/contrib/rsbac-klogd-2.0' * econf: updating rsbac-admin-v1.2.4/contrib/rsbac-klogd-2.0/config.guess with /usr/share/gnuconfig/config.guess * econf: updating rsbac-admin-v1.2.4/contrib/rsbac-klogd-2.0/config.sub with /usr/share/gnuconfig/config.sub * econf: updating rsbac-admin-v1.2.4/contrib/nss_rsbac/config.guess with /usr/share/gnuconfig/config.guess * econf: updating rsbac-admin-v1.2.4/contrib/nss_rsbac/config.sub with /usr/share/gnuconfig/config.sub * econf: updating rsbac-admin-v1.2.4/config.guess with /usr/share/gnuconfig/config.guess * econf: updating rsbac-admin-v1.2.4/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for i686-pc-linux-gnu-strip... i686-pc-linux-gnu-strip checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i686-pc-linux-gnu-gcc accepts -g... yes checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of i686-pc-linux-gnu-gcc... gcc3 checking for a sed that does not truncate output... /bin/sed checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for egrep... grep -E checking for ld used by i686-pc-linux-gnu-gcc... ../../src/librsbac.so.1.2.4 checking if the linker (../../src/librsbac.so.1.2.4) is GNU ld... no checking for a BSD-compatible install... /bin/install -c checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for unistd.h... (cached) yes checking nss.h usability... yes checking nss.h presence... yes checking for nss.h... yes checking for an ANSI C-conforming const... yes checking for rsbac_um_get_user_item in -lrsbac... no checking for ../../src/librsbac.so.1.2.4 option to reload object files... -r checking for BSD-compatible nm... /usr/bin/i686-pc-linux-gnu-nm -B checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for i686-pc-linux-gnu-g++... i686-pc-linux-gnu-g++ checking whether we are using the GNU C++ compiler... yes checking whether i686-pc-linux-gnu-g++ accepts -g... yes checking dependency style of i686-pc-linux-gnu-g++... gcc3 checking how to run the C++ preprocessor... i686-pc-linux-gnu-g++ -E checking for i686-pc-linux-gnu-g77... no checking for i686-pc-linux-gnu-f77... no checking for i686-pc-linux-gnu-xlf... no checking for i686-pc-linux-gnu-frt... no checking for i686-pc-linux-gnu-pgf77... no checking for i686-pc-linux-gnu-fort77... no checking for i686-pc-linux-gnu-fl32... no checking for i686-pc-linux-gnu-af77... no checking for i686-pc-linux-gnu-f90... no checking for i686-pc-linux-gnu-xlf90... no checking for i686-pc-linux-gnu-pgf90... no checking for i686-pc-linux-gnu-epcf90... no checking for i686-pc-linux-gnu-f95... no checking for i686-pc-linux-gnu-fort... no checking for i686-pc-linux-gnu-xlf95... no checking for i686-pc-linux-gnu-ifc... no checking for i686-pc-linux-gnu-efc... no checking for i686-pc-linux-gnu-pgf95... no checking for i686-pc-linux-gnu-lf95... no checking for i686-pc-linux-gnu-gfortran... no checking for g77... no checking for f77... no checking for xlf... no checking for frt... no checking for pgf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for f90... no checking for xlf90... no checking for pgf90... no checking for epcf90... no checking for f95... no checking for fort... no checking for xlf95... no checking for ifc... no checking for efc... no checking for pgf95... no checking for lf95... no checking for gfortran... no checking whether we are using the GNU Fortran 77 compiler... no checking whether accepts -g... no checking the maximum length of command line arguments... 32768 checking command to parse /usr/bin/i686-pc-linux-gnu-nm -B output from i686-pc-linux-gnu-gcc object... ok checking for objdir... .libs checking for i686-pc-linux-gnu-ar... i686-pc-linux-gnu-ar checking for i686-pc-linux-gnu-ranlib... i686-pc-linux-gnu-ranlib checking for i686-pc-linux-gnu-strip... (cached) i686-pc-linux-gnu-strip checking if i686-pc-linux-gnu-gcc static flag works... yes checking if i686-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no checking for i686-pc-linux-gnu-gcc option to produce PIC... -fPIC checking if i686-pc-linux-gnu-gcc PIC flag -fPIC works... yes checking if i686-pc-linux-gnu-gcc supports -c -o file.o... yes checking whether the i686-pc-linux-gnu-gcc linker (../../src/librsbac.so.1.2.4) supports shared libraries... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... no checking whether to build shared libraries... no checking whether to build static libraries... yes configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by i686-pc-linux-gnu-g++... ../../src/librsbac.so.1.2.4 checking if the linker (../../src/librsbac.so.1.2.4) is GNU ld... no checking whether the i686-pc-linux-gnu-g++ linker (../../src/librsbac.so.1.2.4) supports shared libraries... yes checking for i686-pc-linux-gnu-g++ option to produce PIC... -fPIC checking if i686-pc-linux-gnu-g++ PIC flag -fPIC works... yes checking if i686-pc-linux-gnu-g++ supports -c -o file.o... yes checking whether the i686-pc-linux-gnu-g++ linker (../../src/librsbac.so.1.2.4) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes appending configuration tag "F77" to libtool configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: executing depfiles commands make: Entering directory `/var/tmp/portage/rsbac-admin-1.2.4/work/rsbac-admin-v1.2.4/contrib/nss_rsbac' Making all in src make[1]: Entering directory `/var/tmp/portage/rsbac-admin-1.2.4/work/rsbac-admin-v1.2.4/contrib/nss_rsbac/src' if /bin/sh ../libtool --mode=compile i686-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libnss-rsbac\" -DVERSION=\"1.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_NSS_H=1 -DHAVE_DLFCN_H=1 -I. -I. -DLIBDIR=\"/usr/lib\" -DSYSCONFDIR=\"/etc\" -D_GNU_SOURCE -O2 -Wall -Wstrict-prototypes -I/usr/src/linux/include -O2 -march=athlon-xp -pipe -Os -MT interface.lo -MD -MP -MF ".deps/interface.Tpo" -c -o interface.lo interface.c; \ then mv -f ".deps/interface.Tpo" ".deps/interface.Plo"; else rm -f ".deps/interface.Tpo"; exit 1; fi i686-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libnss-rsbac\" -DVERSION=\"1.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_NSS_H=1 -DHAVE_DLFCN_H=1 -I. -I. -DLIBDIR=\"/usr/lib\" -DSYSCONFDIR=\"/etc\" -D_GNU_SOURCE -O2 -Wall -Wstrict-prototypes -I/usr/src/linux/include -O2 -march=athlon-xp -pipe -Os -MT interface.lo -MD -MP -MF .deps/interface.Tpo -c interface.c -o interface.o In file included from interface.c:18: /usr/include/bits/libc-lock.h:35:27: lowlevellock.h: No such file or directory /usr/include/bits/libc-lock.h:36:18: tls.h: No such file or directory /usr/include/bits/libc-lock.h:37:32: pthread-functions.h: No such file or directory make[1]: *** [interface.lo] Error 1 make[1]: Leaving directory `/var/tmp/portage/rsbac-admin-1.2.4/work/rsbac-admin-v1.2.4/contrib/nss_rsbac/src' make: *** [all-recursive] Error 1 make: Leaving directory `/var/tmp/portage/rsbac-admin-1.2.4/work/rsbac-admin-v1.2.4/contrib/nss_rsbac' !!! ERROR: sys-apps/rsbac-admin-1.2.4 failed. !!! Function src_compile, Line 49, Exitcode 2 !!! cannot make nss_rsbac !!! If you need support, post the topmost build error, NOT this status message. ... Making all in src make[1]: Entering directory `/var/tmp/portage/rsbac-admin-1.2.4/work/rsbac-admin-v1.2.4/contrib/nss_rsbac/src' if /bin/sh ../libtool --mode=compile i686-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libnss-rsbac\" -DVERSION=\"1.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_NSS_H=1 -DHAVE_DLFCN_H=1 -I. -I. -DLIBDIR=\"/usr/lib\" -DSYSCONFDIR=\"/etc\" -D_GNU_SOURCE -O2 -Wall -Wstrict-prototypes -I/usr/src/linux/include -O2 -march=athlon-xp -pipe -Os -MT interface.lo -MD -MP -MF ".deps/interface.Tpo" -c -o interface.lo interface.c; \ then mv -f ".deps/interface.Tpo" ".deps/interface.Plo"; else rm -f ".deps/interface.Tpo"; exit 1; fi i686-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libnss-rsbac\" -DVERSION=\"1.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_NSS_H=1 -DHAVE_DLFCN_H=1 -I. -I. -DLIBDIR=\"/usr/lib\" -DSYSCONFDIR=\"/etc\" -D_GNU_SOURCE -O2 -Wall -Wstrict-prototypes -I/usr/src/linux/include -O2 -march=athlon-xp -pipe -Os -MT interface.lo -MD -MP -MF .deps/interface.Tpo -c interface.c -o interface.o In file included from interface.c:18: /usr/include/bits/libc-lock.h:35:27: lowlevellock.h: No such file or directory /usr/include/bits/libc-lock.h:36:18: tls.h: No such file or directory /usr/include/bits/libc-lock.h:37:32: pthread-functions.h: No such file or directory make[1]: *** [interface.lo] Error 1 make[1]: Leaving directory `/var/tmp/portage/rsbac-admin-1.2.4/work/rsbac-admin-v1.2.4/contrib/nss_rsbac/src' make: *** [all-recursive] Error 1 make: Leaving directory `/var/tmp/portage/rsbac-admin-1.2.4/work/rsbac-admin-v1.2.4/contrib/nss_rsbac' !!! ERROR: sys-apps/rsbac-admin-1.2.4 failed. !!! Function src_compile, Line 49, Exitcode 2 !!! cannot make nss_rsbac !!! If you need support, post the topmost build error, NOT this status message. ... qpkg -f -v /usr/include/bits/libc-lock.h sys-libs/glibc-2.3.4.20041102-r1 * ... Will try some magic as currently i'm compiling sysa-apps category with "-Os" CFLAG instead of "02"; Second, will try again (failed two days ago) with "-pam" USE-flag, and BTW as there isn't an rsbac-admin dependency on nss also emerged nss - w/o success. Currently partly solved the problem by compiling rsbac-admin from SVN (as of 6-may-05) but have to manually finish the config part (mkdir /secoff, adduser). That's all for now, will report any change. All this done on non-hardened system. Rsbac-sources are compiled w/o PaX. Thanks. Rumen Reproducible: Always Steps to Reproduce: 1. 2. 3. Gentoo Base System version 1.4.16 Portage 2.0.51.19 (!/usr/portage/profiles/default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.5-r0, 2.6.11-gentoo-r6 i686) ================================================================= System uname: 2.6.11-gentoo-r6 i686 AMD Athlon(tm) XP 2200+ Python: dev-lang/python-2.3.5 [2.3.5 (#1, Apr 27 2005, 21:48:02)] ccache version 2.3 [enabled] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r8 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -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/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -pipe" DISTDIR="/var/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache collision-protect distlocks gpg sandbox sfperms strict test userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.ITDNet.net/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://files.gentoo.gr http://ftp.lug.ro/gentoo/ http://mirror.etf.bg.ac.yu/gentoo http://mirror.datapipe.net/gentoo" MAKEOPTS="-j2" PKGDIR="/var/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/var/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow X X509 a52 aac acl acpi alsa apache2 avi bash-completion berkdb bitmap-fonts caps cdb cdr crypt cups curl dvd dvdr eds encode esd evo exif fam ffmpeg flac foomaticdb freetype gd gif gmp gnutls gpm gstreamer gtk gtk2 gtkhtml hal iconv imagemagick imap imlib ipv6 javascript jpeg kdexdeltas lcms libg++ libwww mad maildir matroska mikmod mime mmx motif mozilla mp3 mpeg mysql ncurses nls nptl nptlonly nvidia ogg oggvorbis opengl oss pam pdflib perl png posix postgres ppds prelude python quicktime readline ruby sdl skey slang speex spell sse ssl svg svga symlink tcltk tcpd theora threads tiff transcode truetype truetype-fonts type1-fonts unicode usb vhosts vorbis win32codecs xine xml2 xmms xsl xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
dev-libs/nss Description: Mozilla's Netscape Security Services Library that implements PKI support => has nothing to do with rsbac rsbac uses nss from sys-apps/baselayout and glibc can you go into your svn directory where you have rsbac admin tools and do: # cd contrib/nss_rsbac # ./configure && make thanks!
Hi, Tried compiling only the nss_rsbac part,sadly with quite the same error message. './configure && make': in nss_rsbac subdir, the logs: ... Making all in src make[1]: Entering directory `/root/src/rsbac-admin-v1.2.4/contrib/nss_rsbac/src' make[2]: Entering directory `/root/src/rsbac-admin-v1.2.4/contrib/nss_rsbac' make[2]: Leaving directory `/root/src/rsbac-admin-v1.2.4/contrib/nss_rsbac' if /bin/sh ../libtool --mode=compile gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libnss-rsbac\" -DVERSION=\"1.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_NSS_H=1 -DHAVE_LIBRSBAC=1 -DHAVE_DLFCN_H=1 -I. -I. -DLIBDIR=\"/usr/local/lib\" -DSYSCONFDIR=\"/usr/local/etc\" -D_GNU_SOURCE -O2 -Wall -Wstrict-prototypes -I/usr/src/linux/include -g -O2 -MT interface.lo -MD -MP -MF ".deps/interface.Tpo" -c -o interface.lo interface.c; \ then mv -f ".deps/interface.Tpo" ".deps/interface.Plo"; else rm -f ".deps/interface.Tpo"; exit 1; fi gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libnss-rsbac\" -DVERSION=\"1.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_NSS_H=1 -DHAVE_LIBRSBAC=1 -DHAVE_DLFCN_H=1 -I. -I. -DLIBDIR=\"/usr/local/lib\" -DSYSCONFDIR=\"/usr/local/etc\" -D_GNU_SOURCE -O2 -Wall -Wstrict-prototypes -I/usr/src/linux/include -g -O2 -MT interface.lo -MD -MP -MF .deps/interface.Tpo -c interface.c -fPIC -DPIC -o .libs/interface.o In file included from interface.c:18: /usr/include/bits/libc-lock.h:35:27: lowlevellock.h: No such file or directory /usr/include/bits/libc-lock.h:36:18: tls.h: No such file or directory /usr/include/bits/libc-lock.h:37:32: pthread-functions.h: No such file or directory make[1]: *** [interface.lo] Error 1 make[1]: Leaving directory `/root/src/rsbac-admin-v1.2.4/contrib/nss_rsbac/src' make: *** [all-recursive] Error 1 ... Clearly previous (successfull) attempt was made w/o adding nss_rsbac as parameter in ./configure script so it passed. Tried "-O2" & "-pam" settings w/o success. Will post it something new pops up or can do something to help. PS: all this using two glibc versions: 2.3.4-20041102-r1 and glibc-2.3.5 (now). Thanks. Rumen
Ok, as i thought SVN version fails as well. It looks to me that it is because you are using ntplonly flag, and rsbac wants compat good old threading library. it would be nice if you had the time to test with a glibc which is not compiled with ntplonly. To spare your time, here is the stable one compiled for x86: http://chinstrap.alternating.net/files/2005.0/grp/i686/glibc-2.3.4.20041102-r1.tbz2 a word of warning: this is no officially supported so you might prefer to rebuild glibc the standard way. if my assumptions are correct i will forward the problem upstream or fix it myself (which includes digging into it anyway:) thanks!
Hi kang, i allready had a binary-package version of glibc-2.3.4-20041102-r1 (both +nptlonly and w/o it, installed the one with "+nptl -nptlonly") as just some 4-5 days ago went to glibc-2.3.5 (whole ~x86 toolchain). Still no luck - an error on the same place, i'll also have a look as recently don't have much time, the error log: ... Making all in src make[1]: Entering directory `/var/tmp/portage/rsbac-admin-1.2.4/work/rsbac-admin-v1.2.4/contrib/nss_rsbac/src' if /bin/sh ../libtool --mode=compile i686-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libnss-rsbac\" -DVERSION=\"1.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_NSS_H=1 -DHAVE_LIBRSBAC=1 -DHAVE_DLFCN_H=1 -I. -I. -DLIBDIR=\"/usr/lib\" -DSYSCONFDIR=\"/etc\" -D_GNU_SOURCE -O2 -Wall -Wstrict-prototypes -I/usr/src/linux/include -O2 -march=athlon-xp -pipe -Os -MT interface.lo -MD -MP -MF ".deps/interface.Tpo" -c -o interface.lo interface.c; \ then mv -f ".deps/interface.Tpo" ".deps/interface.Plo"; else rm -f ".deps/interface.Tpo"; exit 1; fi i686-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libnss-rsbac\" -DVERSION=\"1.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_NSS_H=1 -DHAVE_LIBRSBAC=1 -DHAVE_DLFCN_H=1 -I. -I. -DLIBDIR=\"/usr/lib\" -DSYSCONFDIR=\"/etc\" -D_GNU_SOURCE -O2 -Wall -Wstrict-prototypes -I/usr/src/linux/include -O2 -march=athlon-xp -pipe -Os -MT interface.lo -MD -MP -MF .deps/interface.Tpo -c interface.c -o interface.o In file included from interface.c:18: /usr/include/bits/libc-lock.h:35: error: parse error before '<' token interface.c:22: error: parse error before "lock" interface.c:22: warning: type defaults to `int' in declaration of `lock' interface.c:22: warning: data definition has no type or storage class interface.c: In function `_nss_rsbac_setpwent': interface.c:41: warning: passing arg 1 of `__pthread_mutex_lock' from incompatible pointer type interface.c:47: warning: passing arg 1 of `__pthread_mutex_unlock' from incompatible pointer type interface.c:54: warning: passing arg 1 of `__pthread_mutex_unlock' from incompatible pointer type interface.c:61: warning: passing arg 1 of `__pthread_mutex_unlock' from incompatible pointer type interface.c:65: warning: passing arg 1 of `__pthread_mutex_unlock' from incompatible pointer type interface.c: In function `_nss_rsbac_endpwent': interface.c:72: warning: passing arg 1 of `__pthread_mutex_lock' from incompatible pointer type interface.c:80: warning: passing arg 1 of `__pthread_mutex_unlock' from incompatible pointer type interface.c: In function `_nss_rsbac_getpwent_r': interface.c:175: warning: passing arg 1 of `__pthread_mutex_lock' from incompatible pointer type interface.c:183: warning: passing arg 1 of `__pthread_mutex_unlock' from incompatible pointer type interface.c:200: warning: passing arg 1 of `__pthread_mutex_unlock' from incompatible pointer type interface.c: In function `_nss_rsbac_getpwnam_r': interface.c:216: warning: passing arg 1 of `__pthread_mutex_lock' from incompatible pointer type interface.c:221: warning: passing arg 1 of `__pthread_mutex_unlock' from incompatible pointer type interface.c:230: warning: passing arg 1 of `__pthread_mutex_unlock' from incompatible pointer type interface.c: In function `_nss_rsbac_getpwuid_r': interface.c:243: warning: passing arg 1 of `__pthread_mutex_lock' from incompatible pointer type interface.c:249: warning: passing arg 1 of `__pthread_mutex_unlock' from incompatible pointer type interface.c: In function `_nss_rsbac_setgrent': interface.c:321: warning: passing arg 1 of `__pthread_mutex_lock' from incompatible pointer type interface.c:327: warning: passing arg 1 of `__pthread_mutex_unlock' from incompatible pointer type interface.c:334: warning: passing arg 1 of `__pthread_mutex_unlock' from incompatible pointer type interface.c:341: warning: passing arg 1 of `__pthread_mutex_unlock' from incompatible pointer type interface.c:345: warning: passing arg 1 of `__pthread_mutex_unlock' from incompatible pointer type interface.c: In function `_nss_rsbac_endgrent': interface.c:353: warning: passing arg 1 of `__pthread_mutex_lock' from incompatible pointer type interface.c:361: warning: passing arg 1 of `__pthread_mutex_unlock' from incompatible pointer type interface.c: In function `_nss_rsbac_getgrent_r': interface.c:374: warning: passing arg 1 of `__pthread_mutex_lock' from incompatible pointer type interface.c:381: warning: passing arg 1 of `__pthread_mutex_unlock' from incompatible pointer type interface.c:398: warning: passing arg 1 of `__pthread_mutex_unlock' from incompatible pointer type interface.c: In function `_nss_rsbac_getgrnam_r': interface.c:413: warning: passing arg 1 of `__pthread_mutex_lock' from incompatible pointer type interface.c:416: warning: passing arg 1 of `__pthread_mutex_unlock' from incompatible pointer type interface.c:424: warning: passing arg 1 of `__pthread_mutex_unlock' from incompatible pointer type interface.c: In function `_nss_rsbac_getgrgid_r': interface.c:438: warning: passing arg 1 of `__pthread_mutex_lock' from incompatible pointer type interface.c:444: warning: passing arg 1 of `__pthread_mutex_unlock' from incompatible pointer type interface.c: In function `_nss_rsbac_initgroups_dyn': interface.c:464: warning: passing arg 1 of `__pthread_mutex_lock' from incompatible pointer type interface.c:468: warning: passing arg 1 of `__pthread_mutex_unlock' from incompatible pointer type interface.c:474: warning: passing arg 1 of `__pthread_mutex_unlock' from incompatible pointer type interface.c:481: warning: passing arg 1 of `__pthread_mutex_unlock' from incompatible pointer type interface.c:488: warning: passing arg 1 of `__pthread_mutex_unlock' from incompatible pointer type interface.c:493: warning: passing arg 1 of `__pthread_mutex_unlock' from incompatible pointer type interface.c:514: warning: passing arg 1 of `__pthread_mutex_unlock' from incompatible pointer type make[1]: *** [interface.lo] Error 1 make[1]: Leaving directory `/var/tmp/portage/rsbac-admin-1.2.4/work/rsbac-admin-v1.2.4/contrib/nss_rsbac/src' make: *** [all-recursive] Error 1 make: Leaving directory `/var/tmp/portage/rsbac-admin-1.2.4/work/rsbac-admin-v1.2.4/contrib/nss_rsbac' !!! ERROR: sys-apps/rsbac-admin-1.2.4 failed. !!! Function src_compile, Line 50, Exitcode 2 !!! cannot make nss_rsbac !!! If you need support, post the topmost build error, NOT this status message. ... Will post if something new appears. PS:just saw a link to a thread in RH-ML about threading gone from some time (in trunk), haven't read it just from the subject line. Thanks. Rumen
Hi, Just saw the link about glibc dropping LinuxThreads from trunk (main dev branch). Here's the link: http://sources.redhat.com/ml/libc-alpha/2005-05/msg00022.html ...Date: Thu, 05 May 2005 15:44:56 -0700 Daniel Jacobowitz wrote: > In the mean time Jakub redid this for NPTL so here's the trivial > LinuxThreads patch. Tested on i686-pc-linux-gnu and by inspection. LinuxThreads patches for the trunk are meaningless. There will be no more release from the trunk which supports LT. --
Hi, Just saw the link about glibc dropping LinuxThreads from trunk (main dev branch). Here's the link: http://sources.redhat.com/ml/libc-alpha/2005-05/msg00022.html ...Date: Thu, 05 May 2005 15:44:56 -0700 Daniel Jacobowitz wrote: > In the mean time Jakub redid this for NPTL so here's the trivial > LinuxThreads patch. Tested on i686-pc-linux-gnu and by inspection. LinuxThreads patches for the trunk are meaningless. There will be no more release from the trunk which supports LT. -- â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â ...NEXT... > LinuxThreads patches for the trunk are meaningless. There will be no > more release from the trunk which supports LT. I'll still maintain it for now. It still may turn out that linuxthreads will live in the ports repository rather than just die. ... Don't know it this is also true for glibc-2.3.4-20041102 and glibc-2.3.5 but seems LT is going away. Other solution will be to manually patch it to support LT. Will check the ebuilds for any LT-patches present. Or may be the problem is mine and elsewhere. Thanks. Rumen
Sorry, I had no time to look over it lately. Will do so this week :)
Hi kang, One more try, this time a success. Went back to stable glibc (20041102-r1) and rebuild it w/o nptlonly then remerged rsbac-admin - no errors. Might be something with my old binaries (with & w/o threads), so the problem (only in my eyes) is solved. Sorry for all the fuss, error was on my end ;) PS: just a suggestion, may be it'll be good to have this info in the docs somewhere, plus the thing (not sure but saw it on rsbac-bugzilla or other forum) about not using 4K stacks for rsbac-kernel, other too. Might be outdated now. Thanks. Rumen
Hi, Think of closing this bug as it's clear it was due to missing glibc thread-support Thanks all. Rumen