Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 434506 - sys-apps/smartmontools-5.42 / 5.43 - test for libcap-ng fails during configure phase
Summary: sys-apps/smartmontools-5.42 / 5.43 - test for libcap-ng fails during configur...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-09 20:08 UTC by Attila Tóth
Modified: 2012-10-11 19:02 UTC (History)
0 users

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


Attachments
build.log (build.log,7.03 KB, text/plain)
2012-10-11 19:01 UTC, Marco Clocchiatti
Details
envinroment (environment,86.66 KB, text/plain)
2012-10-11 19:02 UTC, Marco Clocchiatti
Details
emerge --info (smartmontool.emerge-info.txt,7.21 KB, text/plain)
2012-10-11 19:02 UTC, Marco Clocchiatti
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Attila Tóth 2012-09-09 20:08:22 UTC
Configure quits with this:

checking for capng_clear in -lcap-ng... no
configure: error: libcap-ng support was requested but the library was not found

It fails the same way both on a core-i7 and an Athlon-MP system as well.
I tried both with sys-libs/libcap-ng-0.6.6 and sys-libs/libcap-ng-0.7: the symptom is the same.

Reproducible: Always




Emerge info on one system:

Portage 2.1.11.9 (hardened/linux/x86, gcc-4.6.3, glibc-2.15-r2, 3.5.3-hardened-r1 i686)
=================================================================
System uname: Linux-3.5.3-hardened-r1-i686-AMD_Athlon-TM-_MP_2600+-with-gentoo-2.1
Timestamp of tree: Wed, 05 Sep 2012 09:00:01 +0000
ccache version 3.1.7 [disabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.8-r3
dev-util/pkgconfig:       0.27
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.4_p6-r1, 1.5-r1, 1.6.3::<unknown repository>, 1.7.9-r2, 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.6
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.5.4, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.5 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo x-portage hardened-dev anarchy x-overlay
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -mtune=athlon-mp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/mozilla/defaults/pref /usr/share/gnupg/qualified.txt /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=i686 -mtune=athlon-mp -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-march=i686 -O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles metadata-transfer news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-march=i686 -O2 -pipe"
GENTOO_MIRRORS="http://gentoo.inf.elte.hu/ http://gentoo.inode.at/"
LANG="hu_HU.utf8"
LC_ALL="hu_HU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="hu en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/hardened-development /var/lib/layman/anarchy /home/atoth/public_html/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="32bit 3dnow 3dnowext 7zip GNU R X X509 Xaw3d a52 aac aalib acl acpi action_modeswitch aiglx aio aisleriot alaw alsa amr aotuv apache2 apng applet archive ares asf atahpt atmo audio audiofile avcodec avformat bash-completion bazaar bcmath bdf berkdb bind binfilter bitbang_spi bitmap-fonts bittorrent blas bluetooth bonobo boost branding browserplugin bugzilla buspirate_spi bzip2 cairo calendar canvas caps cdaudio cdda cddax cddb cdio cdparanoia cdr cdrom celt cgi chardet charmap checkpath cheese clamdtop cli client clutter color colord consolekit contentcache context contrib corefonts coverage cracklib cramfs crashreporter crypt css ctype cue cups curl curlwrappers cvs cxx dba dbm dbus dcmtk ddate dediprog deskbar detex devhelp device-mapper dga dhcp dia dicom dirac disassembler discard-path divx divx4linux djbfft djvu dlloader dmi dnsrbl doc-pdf dot dri drkaiser dselect dtmf dts dv dvbpsi dvd dvdnav dvdr dvdread dvi dvi2tty dvipdfm eap-sim ecap edd eds elf emerald enca enchant encode enscript epiphany epoll epspdf equalizer evo exif expat extensions extra extrafilters extras faac faad fallback fam fame fat fax fbosd ffmpeg fftw fileinfo filter-aaaa finger firefox firefox-bookmarks flac flash flatfile flickr floppy fltk follow-xff fontconfig fontforge foomaticdb force-cgi-redirect fortran fpx ftdi ftp g3dvl g722 g729 gadu gajim galago gallium gbm gconf gd gdb gdbm gdl gdu gedit geoip geoloc gftp gif gimp gimpprint ginac git glade glchess gles glibc gme gmedia gmp gnet gnome gnome-keyring gnome-screensaver gnumeric gold gopher gpac gpg gphoto2 gpm graphics graphicsmagick graphviz groupwise gs gsf gsl gsm gstreamer gtalk gtk gtk2 gtk3 gtkhtml gudev guile h224 h281 h323 hardened hash hdf5 hpcups hpijs html http hub hwdb icap-client iconv icu id3 id3tag idle idn iksemel ilbc imagemagick imap imlib inherit-graph inifile inkjar inode internal intl introspection ipc iplayer iplsrc iptc ipv6 irc irda ivr jabber jadetex java java-internal java6 javascript jemalloc jingle jpeg jpeg2k jpgraph jrtplib json kate kdrive keymap kpathsea ladspa lame lapack latex latex3 lcms ldb libass libburn libcaca libffi libgda libkms libnl libnotify libplot libsamplerate libssh2 libtar libv4l2 libvisual lightning llvm lm_sensors lock logging logitech-mouse loop-aes lua lxde lyx lzma lzo lzw m17n-lib mad map math matroska mbox mcal mclib md5sum mdev meanwhile memlimit mercurial mhash midi mikmod milter ming mjpeg mktemp mmap mmx mmxext mng mod mode-owner modemmanager modules motif mozbranding mozcalendar mp2 mp3 mp4 mpeg mpeg1 mpeg2 mplayer mudflap multinetwork musepack mysql mysqli nautilus ncurses nemesi netlink network networking networkmanager new-login nic3com nicintel nicintel_spi nicnatsemi nicrealtek nifti nls nntp nokia nopop3d nptl nsplugin nss ntfs numpy nut nuv oav ocr odbc odk ofx ogg oggvorbis ogm ogp_spi oidentd oil onaccess opencore-amr openct opendbx openexr opengl openmp openssl openvg optimisememory otr overload pam pam_chroot pam_ssh pam_timestamp pango passwd passwdqc paste64 pasteafter pax_kernel pccts pcmcia pcntl pcre pcsc-lite pda pdf pdfannotextractor pdo pear perl phar php pic pidgin playlist plotutils plugin-autowep plugin-btscan plugin-dot15d4 plugin-ptw plugin-spectools plugins png pnm policykit pony_spi posix postproc postscript ppds pppd prefixaq prevent-removal projectm pstricks publishers pulseaudio pvr python python2 qhull qt3support quicktime quota quotas rar rc5 rcs readline realmedia reflection reiserfs remoteosd replytolist rle rss rtc rtf rtmp ruby18 ruby19 rule_generator samba sasl satamv satasii sbc scanner scenarios schroedinger science scp screen scripting sdl sdl-sound sdlgfx secure secure-delete seed sendmail sendto sensord serprog session sftplogging shared-dricore shared-glapi shm short-touchpad-timeout showlistmodes showtabbar sid sidebar sieve silc sip sipim skins slang smbsharemodes smime smp sms smtp sndfile soap socialweb sockets sound soundex soundtouch sourceview sox sparse speex spell spoof sqlite3 srt srtp sse sse2check ssh ssl ssp sspall startup-notification stats stun subtitles subversion sudoku suhosin svg svnserve swat switcher swscale syslog system-sqlite systray sysvipc t1lib taglib tagwriting tcl tcltk tcpd templates terminal tetex tex4ht tga themes theora thin threads threadsafe thunar thunderbird tidy tiff tilepath timidity tk tlen tokenizer toolbar tools topicisnuhost totem tracker transcode trayicon truetype truetype-fonts twolame type1-fonts type3 udev udis86 udisks ulaw underscores unicode unlock-notify usb userlocales usermod utils v4l v4l2 vala valgrind vcd vcdinfo vcdx video virus-scan vista visualization vlc vlm volpack vorbis vtk vxml wav wavplay webcam webgl webkit webm webp webrtc-aec wifi wiki wildcards wimax win32codecs winscp wma wmf wmp wps wxwidgets wxwindows x264 x86 xattr xcap xcb xchatdccserver xetex xforms xine xmedcon xml xml2 xmlreader xmlrpc xmlwriter xmp xnest xorg xpm xps xscreensaver xsl xulrunner xv xvfb xvid xvmc yahoo zeitgeist zip zlib zvbi" ALSA_CARDS="cmipci" 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 headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias auth_digest version filter ident charset_lite asis dbd authn_dbd proxy proxy_ajp proxy_balancer proxy_connect proxy_http imagemap cgid substitute" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="nss" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard mouse acecad evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer nlpsolver pdfimport" LINGUAS="hu en" PHP_TARGETS="php5-3 php5-4" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="epson epson2 gt68xx ma1509 mustek mustek_usb mustek_usb2 plustek snapscan umax" USERLAND="GNU" VIDEO_CARDS="radeon v4l modesetting r200" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Attila Tóth 2012-09-10 00:33:34 UTC
captest:
User  credentials uid:0 euid:0 suid:0
Group credentials gid:0 egid:0 sgid:0
Effective:    0000000F, FFFFFFFF
Permitted:    0000000F, FFFFFFFF
Inheritable:  00000000, 00000000
Bounding Set: 0000000F, FFFFFFFF
securebits flags: none
Attempting direct access to shadow...SUCCESS
Attempting to access shadow by child process...SUCCESS
Attempting to regain root...SUCCESS - PRIVILEGE ESCALATION POSSIBLE
Child User  credentials uid:0 euid:0 suid:0
Child Group credentials gid:0 egid:0 sgid:0
Child capabilities:
Effective:    0000000F, FFFFFFFF
Permitted:    0000000F, FFFFFFFF
Inheritable:  00000000, 00000000
Bounding Set: 0000000F, FFFFFFFF
Child securebits flags: none
Attempting direct access to shadow...SUCCESS
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-09-10 11:28:58 UTC
Please attach the config.log mentioned in the build log as well as the build log to this bug report.
Comment 3 Attila Tóth 2012-09-14 21:01:36 UTC
(In reply to comment #2)
> Please attach the config.log mentioned in the build log as well as the build
> log to this bug report.

Instead of attaching my logs, here is the solution:
If smartmontools has USE static, libcap-ng must have static-libs. That must be forced in the ebuild.

Dwokfur
Comment 4 Marco Clocchiatti 2012-10-11 19:01:45 UTC
Created attachment 326314 [details]
build.log

(In reply to comment #3)
> (In reply to comment #2)
> > Please attach the config.log mentioned in the build log as well as the build
> > log to this bug report.
> 
> Instead of attaching my logs, here is the solution:
> If smartmontools has USE static, libcap-ng must have static-libs. That must
> be forced in the ebuild.
> 
> Dwokfur

I agree with Attila.
anyway, I attach my logs to permit you to reopen this bug and to fix it in the way suggested by Attila.
Comment 5 Marco Clocchiatti 2012-10-11 19:02:17 UTC
Created attachment 326316 [details]
envinroment
Comment 6 Marco Clocchiatti 2012-10-11 19:02:37 UTC
Created attachment 326318 [details]
emerge --info