Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 3326 - MPlayer emerge Lib pthread problem
Summary: MPlayer emerge Lib pthread problem
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-02 10:09 UTC by linux-dev
Modified: 2003-02-04 19:42 UTC (History)
0 users

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 linux-dev 2002-06-02 10:09:13 UTC
(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??!
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-06-03 14:45:25 UTC
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.

Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2002-06-03 15:04:17 UTC
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.
Comment 3 linux-dev 2002-06-03 15:17:20 UTC
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!
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2002-06-10 13:57:11 UTC
On most Gentoo boxes, $TMPDIR is not set.  Great to know its working!