No subject


Sat Mar 21 19:08:20 CET 2009


#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/pkg/include  -L/usr/pkg/lib /tmp/mplayer-conf--2626.c -o /tmp/mplayer-conf--2626.o -lpthr
ead

ldd /tmp/mplayer-conf--2626.o
/tmp/mplayer-conf--2626.o:
         -lpthread.14 => not found
         -lc.12 => /usr/lib/libc.so.12

Thats becasue the test programm wasn't linked with -Wl,-R/usr/pkg/lib and so it
doesn't know about the runtime library path for libpthread.


Another problem is now the OSS check, don't know why I didn't had the problem
for my 0.90pre1 tests, but it fails now when I try the cvs tar file from this
night (from configure.log):

#include <soundcard.h>
int main(void) { int arg = SNDCTL_DSP_SETFRAGMENT; return 0; }

gcc -I/usr/pkg/include   -Wl,-R/usr/pkg/lib -L/usr/pkg/lib /tmp/mplayer-conf--26738.c -o /tmp/mplaye
r-conf--26738.o
/tmp/mplayer-conf--26738.c: In function `main': 
/tmp/mplayer-conf--26738.c:2: parse error before `int'

Thats easy to fix (for configure rev 1.449):

--- configure	Sun Apr 28 03:30:02 2002
+++ configure.new	Sun Apr 28 11:44:46 2002
@@ -2452,6 +2452,7 @@
 echocheck "OSS Audio"
 if test "$_ossaudio" = auto ; then
   cat > $TMPC << EOF
+#include <sys/ioctl.h>
 $_inc_soundcard
 int main(void) { int arg = SNDCTL_DSP_SETFRAGMENT; return 0; }
 EOF

> i've also commited usefull parts of the 2 openbsd patches sent to deveng,
> hope it works. these bsd pacthes had a lot of common code but differ at some
> points...

I was just browsing the mplayer-cvslog mailing list and it seems the main
differences are because openbsd is still a.out and not ELF.

Bernd




More information about the MPlayer-users mailing list