[MPlayer-dev-eng] configure problem on FreeBSD

Charles Henrich henrich at sigbus.com
Fri Jul 12 02:30:50 CEST 2002


With the CVS version configure dies with the following errors.  However if I
change the script to be 

elif ( cc_check -pthread ) ; then

instead of

elif ( cc_check -pthread && $TMPO ) ; then

then it works, and compiles successfully.  Any ideas?
------------------------------------------------------------------------


Checking for pthread ... 
Error: Lib pthread not found. (needed by windows and networking stuff)

============ Checking for pthread ============

#include <pthread.h>
void* func(void *arg) { return arg; }
int main(void) { pthread_t tid; return pthread_create (&tid, 0, func, 0) == 0
?
0 : 1; }

gcc  -I/usr/local/include   -L/usr/local/lib /tmp/mplayer-conf--50860.c -o
/tmp/mplayer-conf--50860.o
/tmp/cclurOA5.o: In function `main':
/tmp/cclurOA5.o(.text+0x24): undefined reference to `pthread_create'

ldd /tmp/mplayer-conf--50860.o
ldd: /tmp/mplayer-conf--50860.o: No such file or directory  


#include <pthread.h>
void* func(void *arg) { return arg; }
int main(void) { pthread_t tid; return pthread_create (&tid, 0, func, 0) == 0
?
0 : 1; }
 
gcc  -I/usr/local/include   -L/usr/local/lib /tmp/mplayer-conf--50860.c -o
/tmp/mplayer-conf--50860.o -lpthread
/usr/libexec/elf/ld: cannot find -lpthread

ldd /tmp/mplayer-conf--50860.o
ldd: /tmp/mplayer-conf--50860.o: No such file or directory


#include <pthread.h>
void* func(void *arg) { return arg; }
int main(void) { pthread_t tid; return pthread_create (&tid, 0, func, 0) == 0
?
0 : 1; }

gcc  -I/usr/local/include   -L/usr/local/lib /tmp/mplayer-conf--50860.c -o
/tmp/mplayer-conf--50860.o -pthread

ldd /tmp/mplayer-conf--50860.o
/tmp/mplayer-conf--50860.o:
        libc_r.so.4 => /usr/lib/libc_r.so.4 (0x88065000)


       Charles Henrich         Eon Entertainment         henrich at msu.edu

                        http://www.sigbus.com/~henrich



More information about the MPlayer-dev-eng mailing list