Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Error emerging media-video/ffmpeg-1.0.7:
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
elmar283
Guru
Guru


Joined: 06 Dec 2004
Posts: 316
Location: Haarlem, Netherlands

PostPosted: Thu Oct 31, 2013 7:46 pm    Post subject: [solved] Error emerging media-video/ffmpeg-1.0.7: Reply with quote

When I was doing an 'emerge -aDNuv @world' because of some use changes I made in '/etc/portage/make.con' the ebuild 'media-video/ffmpeg-1.07' failed to build.
I tried again and failed again.

The error is:
Code:

Unable to create and execute files in /var/tmp/portage/media-video/ffmpeg-1.0.7/temp.  Set the TMPDIR environment
variable to another directory and make sure that it is not mounted noexec.
Sanity test failed.


What is wrong?

Here are the relevant outputs:

Code:

elmarotter@ZaphodBeeblebrox ~ $ eselect profile list
Available profile symlink targets:
  [1]   default/linux/x86/13.0
  [2]   default/linux/x86/13.0/selinux
  [3]   default/linux/x86/13.0/desktop
  [4]   default/linux/x86/13.0/desktop/gnome
  [5]   default/linux/x86/13.0/desktop/gnome/systemd
  [6]   default/linux/x86/13.0/desktop/kde
  [7]   default/linux/x86/13.0/desktop/kde/systemd
  [8]   default/linux/x86/13.0/developer
  [9]   hardened/linux/x86 *
  [10]  hardened/linux/x86/selinux
  [11]  hardened/linux/uclibc/x86


Code:

elmarotter@ZaphodBeeblebrox ~ $ gcc-config -l
 [1] i686-pc-linux-gnu-4.7.3 *
 [2] i686-pc-linux-gnu-4.7.3-hardenednopie
 [3] i686-pc-linux-gnu-4.7.3-hardenednopiessp
 [4] i686-pc-linux-gnu-4.7.3-hardenednossp
 [5] i686-pc-linux-gnu-4.7.3-vanilla

Code:

* Messages for package media-video/ffmpeg-1.0.7:

 * ERROR: media-video/ffmpeg-1.0.7::gentoo failed (configure phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  93:  Called src_configure
 *   environment, line 2664:  Called die
 * The specific snippet of code:
 *       ./configure --prefix="${EPREFIX}/usr" --libdir="${EPREFIX}/usr/$(get_libdir)" --shlibdir="${EPREFIX}/usr/$(get_libdir)" --mandir="${EPREFIX}/usr/share/man" --enable-shared --cc="$(tc-getCC)" --cxx="$(tc-getCXX)" --ar="$(tc-getAR)" --optflags="${CFLAGS}" --extra-cflags="${CFLAGS}" --extra-cxxflags="${CXXFLAGS}" $(use_enable static-libs static) ${myconf} || die
 *
 * If you need support, post the output of `emerge --info '=media-video/ffmpeg-1.0.7::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-video/ffmpeg-1.0.7::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-video/ffmpeg-1.0.7/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/ffmpeg-1.0.7/temp/environment'.
 * Working directory: '/var/tmp/portage/media-video/ffmpeg-1.0.7/work/ffmpeg-1.0.7'
 * S: '/var/tmp/portage/media-video/ffmpeg-1.0.7/work/ffmpeg-1.0.7'

 * Messages for package virtual/ffmpeg-0.10.3:

 * emerge --keep-going: virtual/ffmpeg-0.10.3 dropped because it requires
 * >=media-video/ffmpeg-0.10.3:0[X,encode,jpeg2k,mp3,sdl,x264], >=media-
 * video/ffmpeg-0.10.3:0[X,encode,jpeg2k,mp3,sdl,x264], >=media-
 * video/ffmpeg-0.10.3:0[X,encode,jpeg2k,mp3,sdl,x264]

 * Messages for package app-misc/mc-4.8.7:

 * To enable exiting to latest working directory,
 * put this into your ~/.bashrc:
 * . /usr/libexec/mc/mc.sh
 *
 * The following 2 packages have failed to build or install:
 *
 *  (media-video/ffmpeg-1.0.7::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/media-video/ffmpeg-1.0.7/temp/build.log'
 *  (virtual/ffmpeg-0.10.3::gentoo, ebuild scheduled for merge)
 *

 * Regenerating GNU info directory index...
 * Processed 104 info files.
 * After world updates, it is important to remove obsolete packages with
 * emerge --depclean. Refer to `man emerge` for more information.



Code:

elmarotter@ZaphodBeeblebrox ~ $ cat /var/tmp/portage/media-video/ffmpeg-1.0.7/temp/build.log
cat: /var/tmp/portage/media-video/ffmpeg-1.0.7/temp/build.log: Permission denied
elmarotter@ZaphodBeeblebrox ~ $ sudo cat /var/tmp/portage/media-video/ffmpeg-1.0.7/temp/build.log
Password:
 * Package:    media-video/ffmpeg-1.0.7
 * Repository: gentoo
 * Maintainer: media-video@gentoo.org
 * USE:        3dnow 3dnowext X aac aacplus abi_x86_32 alsa bzip2 elibc_glibc encode faac fftools_aviocat fftools_cws2fws fftools_ffeval fftools_fourcc2pixfmt fftools_graph2dot fftools_ismindex fftools_pktdumper fftools_qt-faststart fftools_trasher hardcoded-tables jack jpeg2k kernel_linux mmx mmxext mp3 network openssl pic sdl ssse3 theora userland_GNU vorbis x264 x86 xvid zlib
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking ffmpeg-1.0.7.tar.bz2 to /var/tmp/portage/media-video/ffmpeg-1.0.7/work
>>> Source unpacked in /var/tmp/portage/media-video/ffmpeg-1.0.7/work
>>> Preparing source in /var/tmp/portage/media-video/ffmpeg-1.0.7/work/ffmpeg-1.0.7 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-video/ffmpeg-1.0.7/work/ffmpeg-1.0.7 ...
Unable to create and execute files in /var/tmp/portage/media-video/ffmpeg-1.0.7/temp.  Set the TMPDIR environment
variable to another directory and make sure that it is not mounted noexec.
Sanity test failed.

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.
 * ERROR: media-video/ffmpeg-1.0.7::gentoo failed (configure phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  93:  Called src_configure
 *   environment, line 2664:  Called die
 * The specific snippet of code:
 *       ./configure --prefix="${EPREFIX}/usr" --libdir="${EPREFIX}/usr/$(get_libdir)" --shlibdir="${EPREFIX}/usr/$(get_libdir)" --mandir="${EPREFIX}/usr/share/man" --enable-shared --cc="$(tc-getCC)" --cxx="$(tc-getCXX)" --ar="$(tc-getAR)" --optflags="${CFLAGS}" --extra-cflags="${CFLAGS}" --extra-cxxflags="${CXXFLAGS}" $(use_enable static-libs static) ${myconf} || die
 *
 * If you need support, post the output of `emerge --info '=media-video/ffmpeg-1.0.7::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-video/ffmpeg-1.0.7::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-video/ffmpeg-1.0.7/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/ffmpeg-1.0.7/temp/environment'.
 * Working directory: '/var/tmp/portage/media-video/ffmpeg-1.0.7/work/ffmpeg-1.0.7'
 * S: '/var/tmp/portage/media-video/ffmpeg-1.0.7/work/ffmpeg-1.0.7'


Code:

elmarotter@ZaphodBeeblebrox ~ $ emerge --info '=media-video/ffmpeg-1.0.7::gentoo'
Portage 2.2.1 (hardened/linux/x86, gcc-4.7.3, glibc-2.15-r3, 3.11.2-hardened i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.11.2-hardened-i686-Intel-R-_Atom-TM-_CPU_Z530_@_1.60GHz-with-gentoo-2.2
KiB Mem:     2061076 total,     65280 free
KiB Swap:     976556 total,    975660 free
Timestamp of tree: Thu, 31 Oct 2013 04:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r3, 3.2.5-r3
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-march=i686 -O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=i686 -O2 -pipe"
GENTOO_MIRRORS="rsync://mirror.leaseweb.com/gentoo/ http://mirror.leaseweb.com/gentoo/ ftp://mirror.leaseweb.com/gentoo/ ftp://gentoo.tiscali.nl/pub/mirror/gentoo/ http://gentoo.tiscali.nl/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.snt.utwente.nl/pub/os/linux/gentoo rsync://ftp.snt.utwente.nl/gentoo"
LANG="en_GB nl_NL"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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=""
SYNC="rsync://rsync2.nl.gentoo.org/gentoo-portage"
USE="X X11 acl acpi alsa apache2 apm autoip avahi berkdb bonjour bzip2 cifs cli consolekit cracklib crypt cups curl cxx dbus dri exif expat fbcon fuse gd gdbm geoip gif gs hardened iconv imagemagick imap ipv6 jpeg jpeg2k libwww lm_sensor maildir md5sum mdnsresponder-compat mmx modules mp3 mudflap mysql mysqli ncurses nls nptl ntp offensive openmp openssl pam pax_kernel pcre pear perl php pic pmu png policykit python readline samba sasl sdl session slang spamassassin sql sqlite sqlite2 sse sse2 ssl tcpd tiff udev unicode urandom webkit x86 xml xorg zeroconf zip zlib" ABI_X86="32" ALSA_CARDS="intel" APACHE2_MODULES="actions alias auth_basic auth_digest authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid 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" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en nl" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="vesa" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

media-video/ffmpeg-1.0.7 was built with the following:
USE="3dnow 3dnowext aac aacplus alsa bzip2 encode faac hardcoded-tables jack jpeg2k mmx mmxext mp3 network openssl pic sdl ssse3 theora vorbis x264 xvid zlib -X (-altivec) -amr -avx -bindist -bluray -cdio (-celt) -cpudetection -debug -doc -examples -fdk -flite -fontconfig -frei0r -gnutls -gsm -iec61883 -ieee1394 -libass -libcaca -libv4l -modplug (-neon) -openal -opus -oss -pulseaudio -rtmp



Code:

elmarotter@ZaphodBeeblebrox ~ $ sudo lspci -k
Password:
00:00.0 Host bridge: Intel Corporation System Controller Hub (SCH Poulsbo) (rev 07)
   Subsystem: Intel Corporation Device 8119
00:02.0 VGA compatible controller: Intel Corporation System Controller Hub (SCH Poulsbo) Graphics Controller (rev 07)
   Subsystem: Intel Corporation Device 8119
   Kernel driver in use: gma500
   Kernel modules: gma500_gfx
00:1b.0 Audio device: Intel Corporation System Controller Hub (SCH Poulsbo) HD Audio Controller (rev 07)
   Subsystem: Intel Corporation Device 8119
   Kernel driver in use: snd_hda_intel
   Kernel modules: snd_hda_intel
00:1c.0 PCI bridge: Intel Corporation System Controller Hub (SCH Poulsbo) PCI Express Port 1 (rev 07)
   Kernel driver in use: pcieport
00:1c.1 PCI bridge: Intel Corporation System Controller Hub (SCH Poulsbo) PCI Express Port 2 (rev 07)
   Kernel driver in use: pcieport
00:1d.0 USB controller: Intel Corporation System Controller Hub (SCH Poulsbo) USB UHCI #1 (rev 07)
   Subsystem: Intel Corporation Device 8119
   Kernel driver in use: uhci_hcd
00:1d.1 USB controller: Intel Corporation System Controller Hub (SCH Poulsbo) USB UHCI #2 (rev 07)
   Subsystem: Intel Corporation Device 8119
   Kernel driver in use: uhci_hcd
00:1d.2 USB controller: Intel Corporation System Controller Hub (SCH Poulsbo) USB UHCI #3 (rev 07)
   Subsystem: Intel Corporation Device 8119
   Kernel driver in use: uhci_hcd
00:1d.7 USB controller: Intel Corporation System Controller Hub (SCH Poulsbo) USB EHCI #1 (rev 07)
   Subsystem: Intel Corporation Device 8119
   Kernel driver in use: ehci-pci
00:1e.0 SD Host controller: Intel Corporation System Controller Hub (SCH Poulsbo) SDIO Controller #1 (rev 07)
   Subsystem: Intel Corporation Device 8119
00:1e.1 SD Host controller: Intel Corporation System Controller Hub (SCH Poulsbo) SDIO Controller #2 (rev 07)
   Subsystem: Intel Corporation Device 8119
00:1f.0 ISA bridge: Intel Corporation System Controller Hub (SCH Poulsbo) LPC Bridge (rev 07)
   Subsystem: Intel Corporation System Controller Hub (SCH Poulsbo) LPC Bridge
00:1f.1 IDE interface: Intel Corporation System Controller Hub (SCH Poulsbo) IDE Controller (rev 07)
   Subsystem: Intel Corporation Device 8119
   Kernel driver in use: pata_sch
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168 PCI Express Gigabit Ethernet controller (rev 03)
   Subsystem: Realtek Semiconductor Co., Ltd. RTL8111/8168 PCI Express Gigabit Ethernet controller
   Kernel driver in use: r8169
03:00.0 Network controller: Ralink corp. RT3090 Wireless 802.11n 1T/1R PCIe
   Subsystem: Ralink corp. RT3090 Wireless 802.11n 1T/1R PCIe
   Kernel driver in use: rt2800pci


Code:

elmarotter@ZaphodBeeblebrox ~ $ egrep -v '#|^$' /etc/portage/make.conf
CFLAGS="-O2 -march=native -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"
CHOST="i686-pc-linux-gnu"
USE="apache2 acpi alsa apm autoip avahi bonjour cifs consolekit curl cups dbus exif expat fbcon fuse gd geoip gif gs hardened imagemagick imap ipv6 jpeg jpeg2k libwww lm_sensor maildir md5sum mdnsresponder-compat mmx mp3 mysql mysqli nls ntp offensive openssl pear perl pam pcre php pic pmu png policykit python samba sasl sdl slang spamassassin sse sse2 ssl sql sqlite sqlite2 tiff udev unicode webkit X X11 xorg xml zeroconf zip -ppp"
LINGUAS="en nl"
LANG="en_GB nl_NL"
APACHE2_MODULES="actions alias auth_basic auth_digest authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid 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"
APACHE2_MPMS="prefork"
PHP_TARGETS="php5-4"
SYNC="rsync://rsync2.nl.gentoo.org/gentoo-portage"
INPUT_DEVICES="evdev keyboard mouse"
VIDEO_CARDS="vesa"
ALSA_CARDS="intel"
ACCEPT_LICENSE="*"
PORTDIR="/usr/portage"
GENTOO_MIRRORS="rsync://mirror.leaseweb.com/gentoo/ http://mirror.leaseweb.com/gentoo/ ftp://mirror.leaseweb.com/gentoo/ ftp://gentoo.tiscali.nl/pub/mirror/gentoo/ http://gentoo.tiscali.nl/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.snt.utwente.nl/pub/os/linux/gentoo rsync://ftp.snt.utwente.nl/gentoo"


Code:

elmarotter@ZaphodBeeblebrox ~ $ egrep -v '#|^$' /etc/portage/package.use
dev-db/mysql community perl ssl latin1
dev-lang/php apache2 bzip2 calendar cgi cli crypt ctype curl exif filter force-cgi-redirect fpm ftp gd gdbm gmp iconv imap json ming mysql mysqli nls pcre pdo posix reflection session simplexml soap sockets spell spl sqlite sqlite3 ssl tokenizer truetype unicode xml xls xmlreader xmlrpc xmlwriter zip zlib
www-servers/nginx nginx_modules_http_dav
media-gfx/imagemagick bzip2 corefonts cxx gs jpeg openmp perl png tiff truetype xml zlib jpeg2k 
dev-libs/cyrus-sasl -berkdb authdaemond crypt gdbm mysql ssl urandom
net-fs/samba aov acl avahi client cups gtk gtk3 gvfs netapi pam python readline server smbclient caps quota smbsharemodes swat syslog winbind
sys-libs/talloc compat
app-misc/mc edit gpm nls samba
net-dns/bind berkdb dlz mysql ssl xml resolvconf
mail-client/squirrelmail mysql nls ssl filter spell -ipv6
dev-db/phpmyadmin -setup vhosts
net-print/cups dbus jpeg nls pam php png ppds python samba slp ssl tiff -usb
net-print/gutenprint cups readline ppds
media-sound/mt-daapd vorbis
www-client/elinks javascript ftp
www-client/links gpm suid
www-apps/owncloud curl mysql sqlite3 vhosts
dev-lang/perl ithreads
sys-auth/consolekit  policykit
media-plugins/gst-plugins-meta ogg vorbis
sys-fs/udev gudev hwdb
net-proxy/squid ipv6 mysql pam sasl sqlite ssl logrotate samba
media-libs/libpng apng
app-misc/mc slang -ncurses
net-nds/openldap -gdbm berkdb crypt perl samba ssl syslog tcpd -experimental
sys-libs/zlib minizip
virtual/udev gudev hwdb
app-admin/eselect-php fpm
media-libs/flac cxx sse 3dnow ogg
media-sound/lame mmx mp3rtp sndfile
media-libs/speex sse ogg
media-sound/pulseaudio alsa asyncns avahi caps dbus gdbm glib ipv6 ssl tcpd udev webrtc-aec jack
media-plugins/alsa-plugins ffmpeg jack
media-video/ffmpeg 3dnow 3dnowext aac aacplus alsa bzip2 encode faac hardcoded-tables jpeg2k mmx mmxext mp3 network openssl pic sdl ssse3 theora vorbis x264 xvid zlib jack
virtual/ffmpeg encode jpeg2k mp3 sdl x264
media-sound/mpd aac alsa bzip2 curl ffmpeg fifo flac id3tag -ipv6 jack lame mad mpg123 network ogg sqlite tcpd twolame unicode vorbis wavpack zeroconf zip
media-sound/ncmpc help-screen nls artist-screen colors key-screen lyrics-screen search-screen song-screen
media-sound/ncmpcpp curl iconv unicode clock outputs taglib visualizer
media-sound/mt-daapd vorbis
net-fs/netatalk acl avahi cracklib cups pam ssl tcpd appletalk
net-firewall/ipset -modules
net-misc/ntp caps
dev-lang/php pdo sqlite3 curl xmlwriter gd truetype cgi force-cgi-redirect fpm
www-servers/nginx nginx_modules_http_dav
net-proxy/dansguardian pcre clamav
x11-base/xorg-server udev
x11-libs/libdrm libkms


Last edited by elmar283 on Tue Aug 09, 2016 10:07 am; edited 1 time in total
Back to top
View user's profile Send private message
_______0
Guru
Guru


Joined: 15 Oct 2012
Posts: 521

PostPosted: Thu Oct 31, 2013 8:22 pm    Post subject: uh? Reply with quote

make.conf in /etc/portage/??

Perhaps is trying for safe defaults in the absence of /etc/make.conf.

Check mounted partitions with mount to see whether /var/run

Or try to set

Code:
PORTAGE_TMPFS=/tmp/portage
PORTAGE_TMPDIR=


in /etc/make.conf

What changes did you make in make.conf?

for reference see:

https://forums.gentoo.org/viewtopic-t-541850.html?sid=7cd6240dda0e25712e5cea8f94e1d392
Back to top
View user's profile Send private message
elmar283
Guru
Guru


Joined: 06 Dec 2004
Posts: 316
Location: Haarlem, Netherlands

PostPosted: Thu Oct 31, 2013 8:40 pm    Post subject: Reply with quote

There is no '/etc/make.conf'. That is obsolete.

I printed my '/etc/portage/make.conf' in the last post.

I changed the use flags from: '...-X -xorg -x11' to '... X xorg x11'.

Code:

elmarotter@ZaphodBeeblebrox ~ $ mount
rootfs on / type rootfs (rw)
/dev/root on / type ext4 (rw,noatime,data=ordered)
devtmpfs on /dev type devtmpfs (rw,relatime,size=1030272k,nr_inodes=220558,mode=755)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
cgroup_root on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)
openrc on /sys/fs/cgroup/openrc type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/rc/sh/cgroup-release-agent.sh,name=openrc)
cpuset on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cpu on /sys/fs/cgroup/cpu type cgroup (rw,nosuid,nodev,noexec,relatime,cpu)
cpuacct on /sys/fs/cgroup/cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct)
freezer on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
/dev/sdb2 on /mnt/dontpanic type ext4 (rw,noatime)
/dev/sdb3 on /mnt/fordprefect type ext4 (rw,noatime)
/mnt/fordprefect/irenedinkel/movies on /home/irenedinkel/movies type none (rw,rbind)
/mnt/fordprefect/deluge on /home/irenedinkel/deluge type none (rw,rbind)
/mnt/dontpanic/Backup/Backup/arthurdent-new/Users/elmarotter/Documents on /home/elmarotter/Documenten type none (rw,rbind)
/mnt/fordprefect/deluge on /home/elmarotter/deluge type none (rw,rbind)
/var/www on /var/dav/mydavserver/www type none (rw,rbind)
/var/www on /home/elmarotter/www type none (rw,rbind)
/mnt/fordprefect/www/elmarotter.nl/beta.elmarotter.nl/htdocs on /var/dav/mydavserver/irenedrop type none (rw,rbind)
/mnt/fordprefect/deluge on /var/dav/mydavserver/deluge type none (rw,rbind)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nodev,noexec,nosuid)


Code:

elmarotter@ZaphodBeeblebrox ~ $ export
declare -x CONFIG_PROTECT="/var/bind /usr/share/gnupg/qualified.txt"
declare -x CONFIG_PROTECT_MASK="/etc/gentoo-release /etc/sandbox.d /etc/php/cli-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/apache2-php5.3/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/fonts/fonts.conf /etc/terminfo /etc/ca-certificates.conf /etc/revdep-rebuild"
declare -x EDITOR="/bin/nano"
declare -x GCC_SPECS=""
declare -x HOME="/home/elmarotter"
declare -x INFOPATH="/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.7.3/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.23.1/info"
declare -x LANG="en_GB.UTF-8"
declare -x LC_COLLATE="C"
declare -x LESS="-R -M --shift 5"
declare -x LESSOPEN="|lesspipe %s"
declare -x LOGNAME="elmarotter"
declare -x LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:"
declare -x MAIL="/var/mail/elmarotter"
declare -x MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.7.3/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.23.1/man:/usr/lib/php5.3/man/:/usr/lib/php5.5/man/"
declare -x MULTIOSDIRS="../lib"
declare -x OLDPWD
declare -x OPENGL_PROFILE="xorg-x11"
declare -x PAGER="/usr/bin/less"
declare -x PATH="/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.7.3"
declare -x PRELINK_PATH_MASK="/usr/lib/klibc"
declare -x PWD="/home/elmarotter"
declare -x SHELL="/bin/bash"
declare -x SHLVL="2"
declare -x SSH_CLIENT="192.168.0.4 51184 22"
declare -x SSH_CONNECTION="192.168.0.4 51184 192.168.0.1 22"
declare -x SSH_TTY="/dev/pts/1"
declare -x STY="4997.pts-1.ZaphodBeeblebrox"
declare -x TERM="screen"
declare -x TERMCAP="SC|screen|VT 100/ANSI X3.64 virtual terminal:\\
        :DO=\\E[%dB:LE=\\E[%dD:RI=\\E[%dC:UP=\\E[%dA:bs:bt=\\E[Z:\\
        :cd=\\E[J:ce=\\E[K:cl=\\E[H\\E[J:cm=\\E[%i%d;%dH:ct=\\E[3g:\\
        :do=^J:nd=\\E[C:pt:rc=\\E8:rs=\\Ec:sc=\\E7:st=\\EH:up=\\EM:\\
        :le=^H:bl=^G:cr=^M:it#8:ho=\\E[H:nw=\\EE:ta=^I:is=\\E)0:\\
        :li#51:co#201:am:xn:xv:LP:sr=\\EM:al=\\E[L:AL=\\E[%dL:\\
        :cs=\\E[%i%d;%dr:dl=\\E[M:DL=\\E[%dM:dc=\\E[P:DC=\\E[%dP:\\
        :im=\\E[4h:ei=\\E[4l:mi:IC=\\E[%d@:ks=\\E[?1h\\E=:\\
        :ke=\\E[?1l\\E>:vi=\\E[?25l:ve=\\E[34h\\E[?25h:vs=\\E[34l:\\
        :ti=\\E[?1049h:te=\\E[?1049l:us=\\E[4m:ue=\\E[24m:so=\\E[3m:\\
        :se=\\E[23m:mb=\\E[5m:md=\\E[1m:mr=\\E[7m:me=\\E[m:ms:\\
        :Co#8:pa#64:AF=\\E[3%dm:AB=\\E[4%dm:op=\\E[39;49m:AX:\\
        :vb=\\Eg:G0:as=\\E(0:ae=\\E(B:\\
        :ac=\\140\\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:\\
        :po=\\E[5i:pf=\\E[4i:Z0=\\E[?3h:Z1=\\E[?3l:k0=\\E[10~:\\
        :k1=\\EOP:k2=\\EOQ:k3=\\EOR:k4=\\EOS:k5=\\E[15~:k6=\\E[17~:\\
        :k7=\\E[18~:k8=\\E[19~:k9=\\E[20~:k;=\\E[21~:F1=\\E[23~:\\
        :F2=\\E[24~:F3=\\E[1;2P:F4=\\E[1;2Q:F5=\\E[1;2R:F6=\\E[1;2S:\\
        :F7=\\E[15;2~:F8=\\E[17;2~:F9=\\E[18;2~:FA=\\E[19;2~:kb=^H:\\
        :K2=\\EOE:kB=\\E[Z:kF=\\E[1;2B:kR=\\E[1;2A:*4=\\E[3;2~:\\
        :*7=\\E[1;2F:#2=\\E[1;2H:#3=\\E[2;2~:#4=\\E[1;2D:%c=\\E[6;2~:\\
        :%e=\\E[5;2~:%i=\\E[1;2C:kh=\\E[1~:@1=\\E[1~:kH=\\E[4~:\\
        :@7=\\E[4~:kN=\\E[6~:kP=\\E[5~:kI=\\E[2~:kD=\\E[3~:ku=\\EOA:\\
        :kd=\\EOB:kr=\\EOC:kl=\\EOD:km:"
declare -x USER="elmarotter"
declare -x WINDOW="0"


I'll come back on the:
Code:

PORTAGE_TMPFS=/tmp/portage
PORTAGE_TMPDIR=
Back to top
View user's profile Send private message
elmar283
Guru
Guru


Joined: 06 Dec 2004
Posts: 316
Location: Haarlem, Netherlands

PostPosted: Thu Oct 31, 2013 9:09 pm    Post subject: Reply with quote

Setting the temp dirs didn't do the trick. Still no luck.
So far as I can the '/' has no 'exec' restrictions.

Could it have something to do with the hardened profile?
Back to top
View user's profile Send private message
elmar283
Guru
Guru


Joined: 06 Dec 2004
Posts: 316
Location: Haarlem, Netherlands

PostPosted: Sun Nov 03, 2013 5:34 pm    Post subject: Reply with quote

I now found an errormessage in '/var/log/grsec.log' that explains the problem:
Code:

Nov  3 18:29:53 ZaphodBeeblebrox kernel: [273631.739911] grsec: From 83.117.241.26: denied untrusted exec (due to file in group-writable directory) of /var/tmp/portage/media-video/ffmpeg-1.0.7/temp/ffconf.6vjChSSt.sh by /var/tmp/portage/media-video/ffmpeg-1.0.7/temp/ffconf.6vjChSSt.sh[configure:22778] uid/euid:250/250 gid/egid:250/250, parent /var/tmp/portage/media-video/ffmpeg-1.0.7/work/ffmpeg-1.0.7/configure[configure:22311] uid/euid:250/250 gid/egid:250/250


Today in this thread it is also mentioned: https://forums.gentoo.org/viewtopic-p-7432456.html#7432456
Back to top
View user's profile Send private message
elmar283
Guru
Guru


Joined: 06 Dec 2004
Posts: 316
Location: Haarlem, Netherlands

PostPosted: Sun Nov 03, 2013 6:58 pm    Post subject: Reply with quote

I have solved the problem by rebooting with a usb-stick and then I chrooted into my system. I then emerged 'ffmpeg'.
That worked.
For now my problem is solved, but it looks like a bug on 'ffmpeg' on systems with Hardened and grsececure. Should I report this as a bug?
Back to top
View user's profile Send private message
LomatHome
n00b
n00b


Joined: 26 Aug 2014
Posts: 1

PostPosted: Tue Aug 26, 2014 9:39 pm    Post subject: Reply with quote

A script that is more generalized, but seems to work just as well is:

while :
do
find /var/tmp/portage/ -type d -exec chmod 755 {} \; >/dev/null 2>&1
sleep .5
done

I was able to make it through libav, ffmpg, and a bunch of others using this on a fresh laptop hardened+kde install.

Hope it helps someone else with error:

grsec: denied untrusted exec (due to file in group-writable directory)

while emerging
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum