(tried posting to gentoo-user, no response) trying to emerge mplayer, i get the following error: Checking for malloc.h ... yes Checking for memalign() ... yes Checking for alloca.h ... yes Checking for mman.h ... yes Checking for dynamic loader ... yes Checking for pthread ... ./configure: /tmp/mplayer-conf-31685-27356.o: Permission denied ./configure: /tmp/mplayer-conf-31685-27356.o: Permission denied Error: Lib pthread not found. (needed by windows and networking stuff) Check configure.log if you do not understand why it failed. !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 140, Exitcode 1 !!! (no error message) !!! emerge aborting on /usr/portage/media-video/mplayer/mplayer-0.90_pre4.ebuild . --------------------------------------------------------------- ---->>>> is this a *permission* problem or a *libpthread* issue? <<<<---- or an *mplayer* issue? ('configure.log' doesn't exist) permissions for /tmp are: drwxrwxrwt 7 root root 4096 Jun 2 00:18 tmp libpthread exists as such: /lib/libpthread-0.9.so /lib/libpthread.so.0 /usr/lib/libpthread.a /usr/lib/libpthread.so ANY IDEAS why this is not working??!
It is a ./configure / sandbox issue. A few things ... 1) What is your $PORTAGE_TMPDIR set to. 2) What is your $TMPDIR set to. 3) Do you have any $SANDBOX_* variables set. 4) Anything else that could be relevant.
Actually, try the following: Edit /usr/lib/portage/bin/ebuild.sh and search for the line: export S D then add just below it: export TMPDIR="${T}" Giving you: ------------------------snip------------------------------------ #our custom version of libtool uses $S and $D to fix #invalid paths in .la files export S D export TMPDIR="${T}" src_compile cd ${BUILDDIR} touch .compiled if [ ! -e "build-info" ] then mkdir build-info fi cd build-info ------------------------snip------------------------------------ And try to remerge mplayer.
Hello, adding: export TMPDIR="${T}" as you specified did the trick! why has no one else had this problem? is there something that i should know about, other than this fix? thanks!
On most Gentoo boxes, $TMPDIR is not set. Great to know its working!