Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 182456 - sys-apps/rsbac-admin-1.3.4 compile error
Summary: sys-apps/rsbac-admin-1.3.4 compile error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Guillaume Destuynder (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-18 13:34 UTC by Constantine Kardaris
Modified: 2008-02-15 17:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Constantine Kardaris 2007-06-18 13:34:53 UTC
sys-apps/rsbac-admin-1.3.4 does not compile


 Building RSBAC Libraries...
 -------------------------------------
  CC		helpers/acl_getname.c
  CC		helpers/cap_getname.c
  CC		helpers/getname.c
  CC		helpers/helpers.c
  CC		helpers/jail_getname.c
  CC		helpers/net_getname.c
  CC		helpers/net_helpers.c
  CC		helpers/pax_getname.c
  CC		helpers/pm_getname.c
  CC		helpers/rc_getname.c
  CC		helpers/res_getname.c
  CC		helpers/syscall_wrapper.c
  LD		librsbac.la
x86_64-pc-linux-gnu-g++: /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib64/crti.o: No such file or directory
x86_64-pc-linux-gnu-g++: /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/crtbeginS.o: No such file or directory
x86_64-pc-linux-gnu-g++: /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/crtendS.o: No such file or directory
x86_64-pc-linux-gnu-g++: /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib64/crtn.o: No such file or directory
make[1]: *** [librsbac.la] Error 1
make: *** [libs] Error 2

!!! ERROR: sys-apps/rsbac-admin-1.3.4 failed.
Call stack:
  ebuild.sh, line 1615:   Called dyn_compile
  ebuild.sh, line 972:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  rsbac-admin-1.3.4.ebuild, line 39:   Called die

=============

emerge --info

Portage 2.1.2.7 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.5-r3, 2.6.21.5 x86_64)
=================================================================
System uname: 2.6.21.5 x86_64 AMD Athlon(tm) 64 Processor 2800+
Gentoo Base System release 1.12.9
Timestamp of tree: Sun, 17 Jun 2007 18:00:11 +0000
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=k8 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://files.gentoo.gr"
LANG="el_GR.utf8"
LINGUAS="en el"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/local/layman/science /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 avi bitmap-fonts blas cairo cdinstall cdr chm cli cpudetection cracklib crypt cscope cups dbus dvd dvdr dvdread effects emboss epydoc fat ffmpeg fftw firefox fortran freetype gd gif gimp glitz gnome graphviz gtk gtk2 hal hdf5 iconv isdnlog jpeg kde kdeenablefinal kipi lapack lcms ldb libg++ lm_sensors mad midi mime mmx mmxext motif mozdevelop moznocompose moznoirc moznomail moznopango mp3 mpeg mudflap ncurses nls nntp nosendmail nptl nptlonly ntfs nvidia objc objc++ ogg oggvorbis opengl openmp pam pcre pdf plotutils png ppds pppd qt qt3 qt3support qt4 quicktime readline reflection replytolist restrict-javascript sbcl session spell spl srt sse sse2 ssl stroke subversion svg syslog tcltk tcpd teamarena tetex theora tidy tiff tk truetype truetype-fonts type1-fonts unicode usb userlocales v4l vcd vim-with-x vorbis wma x264 xforms xine xml xorg xscreensaver xv xvid zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en el" USERLAND="GNU" VIDEO_CARDS="nvidia nv"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Guillaume Destuynder (RETIRED) gentoo-dev 2007-06-21 09:35:37 UTC
your emerge info reports gcc 4.1.2 but it tries to compile with gcc 4.1.1 files.
To fix this try this command:

fix_libtool_files.sh 4.1.1

and

emerge --oneshot -av libtool
Comment 2 Constantine Kardaris 2007-06-21 10:02:13 UTC
oh... in the country of the blinds....

yes, it works thanks a lot :)
Comment 3 Constantine Kardaris 2007-06-21 12:08:37 UTC
hm i made the post faster than it should be
now emerge fail with:

ecompressdir: bzip2 -9 usr/share/man
strip: x86_64-pc-linux-gnu-strip --strip-unneeded
   usr/bin/rsbac_version
   usr/bin/acl_grant
   usr/bin/acl_group
   usr/bin/acl_mask
   usr/bin/acl_rights
   usr/bin/acl_rm_user
   usr/bin/acl_tlist
   usr/bin/attr_back_dev
   usr/bin/attr_back_fd
   usr/bin/attr_back_user
   usr/bin/attr_back_group
   usr/bin/attr_back_net
   usr/bin/attr_get_fd
   usr/bin/attr_get_file_dir
   usr/bin/attr_get_ipc
   usr/bin/attr_get_process
   usr/bin/attr_get_up
   usr/bin/attr_get_net
   usr/bin/attr_get_user
   usr/bin/attr_get_group
   usr/bin/attr_rm_fd
   usr/bin/attr_rm_file_dir
   usr/bin/attr_rm_user
   usr/bin/attr_rm_group
   usr/bin/attr_set_fd
   usr/bin/attr_set_file_dir
   usr/bin/attr_set_ipc
   usr/bin/attr_set_process
   usr/bin/attr_set_up
   usr/bin/attr_set_net
   usr/bin/attr_set_user
   usr/bin/attr_set_group
   usr/bin/auth_back_cap
   usr/bin/auth_set_cap
   usr/bin/get_attribute_name
   usr/bin/get_attribute_nr
   usr/bin/mac_wrap
   usr/bin/mac_get_levels
   usr/bin/mac_set_trusted
   usr/bin/mac_back_trusted
   usr/bin/pm_create
   usr/bin/pm_ct_exec
   usr/bin/daz_flush
   usr/bin/rc_copy_role
   usr/bin/rc_copy_type
   usr/bin/rc_get_eff_rights_fd
   usr/bin/rc_get_item
   usr/bin/rc_role_wrap
   usr/bin/rc_set_item
   usr/bin/rc_get_current_role
   usr/bin/rc_create_file
   usr/bin/rsbac_check
   usr/bin/rsbac_pm
   usr/bin/rsbac_stats
   usr/bin/rsbac_stats_pm
   usr/bin/rsbac_write
   usr/bin/switch_adf_log
   usr/bin/switch_module
   usr/bin/net_temp
   usr/bin/linux2acl
   usr/bin/rsbac_jail
   usr/bin/rsbac_init
   usr/bin/rsbac_useradd
   usr/bin/rsbac_usermod
   usr/bin/rsbac_userdel
   usr/bin/rsbac_usershow
   usr/bin/rsbac_groupadd
   usr/bin/rsbac_groupmod
   usr/bin/rsbac_groupdel
   usr/bin/rsbac_groupshow
   usr/bin/rsbac_passwd
   usr/bin/rsbac_gpasswd
   usr/bin/rsbac_list_ta
   usr/bin/rsbac_auth
   lib/librsbac.so.1.0.0
   lib/security/pam_rsbac.so
   lib/security/pam_rsbac_oldpw.so
   lib/libnss_rsbac.so.2.0.0
   bin/rsbac_login
   usr/lib/librsbac.a
   usr/lib/libnss_rsbac.a
removing executable bit: usr/lib/libnss_rsbac.la
removing executable bit: usr/lib/librsbac.la

 * QA Notice: Missing gen_usr_ldscript for libnss_rsbac.so

 * QA Notice: Missing gen_usr_ldscript for librsbac.so

!!! ERROR: sys-apps/rsbac-admin-1.3.4-r1 failed.
Call stack:
  misc-functions.sh, line 561:   Called install_qa_check
  misc-functions.sh, line 258:   Called die

----
related with above gcc problem?
Comment 4 Guillaume Destuynder (RETIRED) gentoo-dev 2007-07-27 15:10:58 UTC
sorry for the delay. the 2nd error is different. this shouldnt' happen with  sys-apps/rsbac-admin-1.3.4-r1 (was in  sys-apps/rsbac-admin-1.3.4).

In 1.3.5 this got shuffled around again (-.-)

If you have problems please try upgrading to sys-apps/rsbac-admin-1.3.5-r1 (this is in ~amd64) and tell me if it works ok for you.
Comment 5 Constantine Kardaris 2007-07-27 21:07:31 UTC
1.3.5 emerged successfully

1.3.5-r1 fails with same QA error :D
Comment 6 Guillaume Destuynder (RETIRED) gentoo-dev 2007-08-02 11:15:27 UTC
(In reply to comment #5)
> 1.3.5 emerged successfully
> 
> 1.3.5-r1 fails with same QA error :D
> 

could you give me the output of emerge --info ?

before the 1.3.5-r1 (same for 1.3.4) libs aren't installed in the correct location.

also the output of:
emerge -p rsbac-admin
equery f rsbac-admin|grep lib
Comment 7 Constantine Kardaris 2007-08-02 14:24:02 UTC
emerge --info
Portage 2.1.2.9 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.21.6 x86_64)
=================================================================
System uname: 2.6.21.6 x86_64 AMD Athlon(tm) 64 Processor 2800+
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 01 Aug 2007 19:30:01 +0000
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/svn/env /usr/kde/svn/share/config /usr/kde/svn/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=k8 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://files.gentoo.gr"
LANG="el_GR.utf8"
LINGUAS="en el"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/local/layman/science /usr/local/portage/local/layman/kde /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 avi bitmap-fonts blas cairo cdinstall cdr chm cli clucene cpudetection cracklib crypt cscope cups dbus dvd dvdr dvdread effects emboss epydoc fat ffmpeg fftw firefox fortran freetype gd gif gimp glitz gnome graphviz gtk gtk2 hal hdf5 iconv isdnlog jpeg kde kdeenablefinal kipi lapack lcms ldb libg++ lm_sensors mad midi mime mmx mmxext motif mozdevelop moznocompose moznoirc moznomail moznopango mp3 mpeg mudflap ncurses nls nntp nosendmail nptl nptlonly ntfs nvidia objc objc++ ogg oggvorbis opengl openmp pam pcre pdf plotutils png ppds pppd qt qt3 qt3support qt4 quicktime readline reflection replytolist restrict-javascript sbcl session spell spl srt sse sse2 ssl stroke subversion svg syslog tcltk tcpd teamarena tetex theora tidy tiff tk truetype truetype-fonts type1-fonts unicode usb userlocales v4l vcd vim-with-x vorbis wma x264 xine xml xorg xscreensaver xv xvid zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en el" USERLAND="GNU" VIDEO_CARDS="nvidia nv"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

============

emerge -p rsbac-admin

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-apps/rsbac-admin-1.3.5  

(i have masked r1)

==============

equery f rsbac-admin|grep lib
/lib
/lib/security
/lib/security/pam_rsbac.so
/lib/security/pam_rsbac_oldpw.so
/usr/lib
/usr/lib/libnss_rsbac.a
/usr/lib/libnss_rsbac.la
/usr/lib/libnss_rsbac.so
/usr/lib/libnss_rsbac.so.2
/usr/lib/libnss_rsbac.so.2.0.0
/usr/lib/librsbac.a
/usr/lib/librsbac.la
/usr/lib/librsbac.so
/usr/lib/librsbac.so.1
/usr/lib/librsbac.so.1.0.0
/usr/lib64
/usr/lib64/libnss_rsbac.so
/usr/lib64/librsbac.so
Comment 8 Jukka Ruohonen 2007-08-11 16:35:11 UTC
I can reproduce this on another amd64 hardened setup:

...
usr/lib/librsbac.a
usr/lib/libnss_rsbac.a
removing executable bit: usr/lib/libnss_rsbac.la
removing executable bit: usr/lib/librsbac.la

 * QA Notice: Missing gen_usr_ldscript for libnss_rsbac.so

 * QA Notice: Missing gen_usr_ldscript for librsbac.so


The same error is produced by:

sys-apps/rsbac-admin-1.3.4-r1
sys-apps/rsbac-admin-1.3.5-r1

but, as indicated, not with:

[ebuild  N    ] sys-apps/rsbac-admin-1.3.5  USE="pam" 0 kB

Keywording the ebuild and masking the 1.3.5-r1 gives:

equery f rsbac-admin|grep lib
/lib
/lib/security
/lib/security/pam_rsbac.so
/lib/security/pam_rsbac_oldpw.so
/usr/lib
/usr/lib/libnss_rsbac.a
/usr/lib/libnss_rsbac.la
/usr/lib/libnss_rsbac.so
/usr/lib/libnss_rsbac.so.2
/usr/lib/libnss_rsbac.so.2.0.0
/usr/lib/librsbac.a
/usr/lib/librsbac.la
/usr/lib/librsbac.so
/usr/lib/librsbac.so.1
/usr/lib/librsbac.so.1.0.0
/usr/lib64
/usr/lib64/libnss_rsbac.so
/usr/lib64/librsbac.so

emerge --ignore-default-opts --info
Portage 2.1.2.11 (hardened/amd64, gcc-3.4.6, glibc-2.5-r4, 2.6.20-hardened-r6 x86_64)
=================================================================
System uname: 2.6.20-hardened-r6 x86_64 AMD Opteron(tm) Processor 148
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 11 Aug 2007 06:20:01 +0000
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.61
sys-devel/automake:  1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=opteron -msse3 -O2 -fforce-addr -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=opteron -msse3 -O2 -fforce-addr -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--verbose --ask"
FEATURES="buildpkg distlocks fixpackages metadata-transfer notitle parallel-fetch sandbox sfperms strict suidctl userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.gentoo.no/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://portage@192.168.1.1/gentoo-portage"
USE="amd64 berkdb bzip2 cracklib crypt curl hardened justify midi ncurses nls nptl nptlonly pam perl pic python readline ssl udev unicode urandom xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 9 Guillaume Destuynder (RETIRED) gentoo-dev 2008-02-15 17:51:28 UTC
See #190217, fixed by Chris Gianelloni
Actually we should have opened another bug so that i could set it duplicate ;p
anyway both issues fixed, thx