#4 Lib pthread not found

open
None
5
2009-01-11
2009-01-11
Mike
No

profbunny@sysiphus:~/source/mplayerxp-0.7.1$ dpkg -l|grep thread
ii apache2-mpm-prefork 2.2.11-1 Apache HTTP Server - traditional non-threaded model
ii kaffe-jthreads 2:1.1.8-5.2 A green threads enabled version of the Kaffe VM
ii kaffe-pthreads 2:1.1.8-5.2 A POSIX threads enabled version of the Kaffe VM
ii libboost-thread-dev 1.34.1-15 portable C++ multi-threading
ii libboost-thread1.34.1 1.34.1-15 portable C++ multi-threading
ii libclthreads-dev 2.2.1-2+b1 Development file for libclthreads
ii libclthreads2 2.2.1-2+b1 POSIX threads C++ access library
ii libomnithread3-dev 4.1.2-1+b1 C++ threading library development files
ii libomnithread3c2 4.1.2-1+b1 C++ threading library
ii libopenthreads-dev 2.4.0-1.1 Object-Oriented (OO) thread interface for C++ programmers, devel
rc libopenthreads11 2.6.1-1 Object-Oriented (OO) thread interface for C++ programmers, devel
ii libopenthreads7 2.4.0-1.1 Object-Oriented (OO) thread interface for C++ programmers, devel
ii libpthread-stubs0 0.1-2 pthread stubs not provided by native libc
ii libpthread-stubs0-dev 0.1-2 pthread stubs not provided by native libc, development files
ii libqthreads-12 1.6.8-6.1 QuickThreads library for Guile
ii mutt 1.5.18-4 text-based mailreader supporting MIME, GPG, PGP and threading
profbunny@sysiphus:~/source/mplayerxp-0.7.1$ dpkg -S pthread.h
libc6-dev: /usr/include/pthread.h
libmysqlclient15-dev: /usr/include/mysql/my_no_pthread.h
libmysqlclient15-dev: /usr/include/mysql/my_pthread.h
libstlport4.6-dev: /usr/include/stlport/pthread.h

hi,

can you give me some hint which lib i should install?
another short question, can i use the codecs from mplayer or should i take yours? have you the codecs also adapted?

thx and regards
michael

Discussion

  • Mike

    Mike - 2009-01-11

    Checking for pthread ... yes
    Checking for pthread_kill ... no
    Checking for pthread ... yes
    Checking for pthread_kill ... no
    Checking for pthread ... yes
    Checking for pthread_kill ... no
    Checking for pthread ... yes
    Checking for pthread_kill ... no

    Error: Lib pthread not found. (needed by xp mode)

     
  • Anonymous - 2009-01-11
    • assigned_to: nobody --> nickols_k
     
  • Anonymous - 2009-01-11

    try this patch from current mplayerxp-cvs:

    Index: configure

    RCS file: /cvsroot/mplayerxp/mplayerxp/mplayerxp/configure,v
    retrieving revision 1.90
    retrieving revision 1.91
    diff -p -u -d -r1.90 -r1.91
    --- configure 24 Dec 2008 16:04:59 -0000 1.90
    +++ configure 9 Jan 2009 18:01:08 -0000 1.91
    @@ -769,7 +769,7 @@ print_config HAVE_ config.h config.mak l

    disable pthread
    for _ld_i in "-lpthreadGC2" "-lpthread" "-pthread" "" ; do
    -disabled pthread && require3 pthread pthread.h PTHREAD_COND_INITIALIZER pthread_kill $_ld_i
    +disabled pthread && require3 pthread "signal.h pthread.h" PTHREAD_COND_INITIALIZER pthread_kill $_ld_i
    enabled pthread && break
    done
    disabled pthread && die "Lib pthread not found. (needed by xp mode)"

     
  • Mike

    Mike - 2009-01-11

    File to patch: configure
    patching file configure
    patch: **** malformed patch at line 9: pthread_kill $_ld_i

    can you pleas, attatch a file, seems to something went wrong by copy & paste.

    thanks

     
  • Anonymous - 2009-01-11
     
  • Anonymous - 2009-01-11

    attached!
    File Added: configure.patch

     
  • Mike

    Mike - 2009-01-11

    thx,

    but there is the next :-) problem

    make[1]: Leaving directory `/home/profbunny/source/mplayerxp-0.7.1/mplayerxp'
    make -C codecs
    make[1]: Entering directory `/home/profbunny/source/mplayerxp-0.7.1/codecs'
    export SUBDIR=liba52 libdca libfaad2 libmpeg2 mp3lib
    make -C mp3lib
    make[2]: Entering directory `/home/profbunny/source/mplayerxp-0.7.1/codecs/mp3lib'
    gcc -c -O3 -march=i686 -pipe -fopenmp -fPIC -o sr1.o sr1.c
    In file included from layer3.c:1167,
    from sr1.c:422:
    decod386.c: In function ‘synth_1to1_32’:
    decod386.c:329: warning: passing argument 3 of ‘synth_func’ from incompatible pointer type
    gcc -c -O3 -march=i686 -pipe -fopenmp -fPIC -o dct36_3dnow.o dct36_3dnow.c
    dct36_3dnow.c: In function ‘dct36_3dnow’:
    dct36_3dnow.c:548: error: can't find a register in class ‘GENERAL_REGS’ while reloading ‘asm’
    dct36_3dnow.c:37: error: ‘asm’ operand has impossible constraints
    dct36_3dnow.c:125: error: ‘asm’ operand has impossible constraints
    dct36_3dnow.c:186: error: ‘asm’ operand has impossible constraints
    dct36_3dnow.c:242: error: ‘asm’ operand has impossible constraints
    dct36_3dnow.c:280: error: ‘asm’ operand has impossible constraints
    dct36_3dnow.c:336: error: ‘asm’ operand has impossible constraints
    dct36_3dnow.c:386: error: ‘asm’ operand has impossible constraints
    dct36_3dnow.c:436: error: ‘asm’ operand has impossible constraints
    dct36_3dnow.c:488: error: ‘asm’ operand has impossible constraints
    dct36_3dnow.c:548: error: ‘asm’ operand has impossible constraints
    make[2]: *** [dct36_3dnow.o] Fehler 1
    make[2]: Leaving directory `/home/profbunny/source/mplayerxp-0.7.1/codecs/mp3lib'
    make[1]: *** [mp3lib] Fehler 2
    make[1]: Leaving directory `/home/profbunny/source/mplayerxp-0.7.1/codecs'
    make: *** [codecs] Fehler 2

    any suggestions in this way?

     
  • Anonymous - 2009-01-11

    This is a bug!

    Workaround:

    #!/bin/sh
    CFLAGS="-O3 -march=i686 -pipe -mmmx -m3dnow -msse -msse2"
    export CFLAGS
    ./configure
    make
    make install

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks