[MPlayer-users] HAVE_PTHREAD_CANCEL / FFmpeg a8d8e86

Josh joshf87 at live.com
Fri Jul 20 06:33:24 CEST 2012


http://git.videolan.org/?p=ffmpeg.git;a=commit;h=a8d8e868c6154f63a9229f913434aaa21833e488

Don't wanna be a bother again. I've had some free time from work. It 
seems MinGW/Windows (mingw.org) now requires HAVE_PTHREAD_CANCEL to be 
defined from that commit in FFmpeg. I compile with pthreads 
(pthreads-w32 2.9.0--the latest 2.9.1 doesn't work with MPlayer nor 
x264) but it doesn't support pthread_cancel (according to FFmpeg's 
configure).

I set HAVE_PTHREAD_CANCEL 0, but again it could be different for another 
environment/pthreads lib.

CC      libavformat/txd.o
CC      libavformat/udp.o
In file included from libavformat/network.h:28:0,
                  from libavformat/udp.c:36:
libavformat/os_support.h:41:0: warning: "fstat" redefined [enabled by 
default]
e:\buildsys\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/sys/stat.h:276:0: 
note: this is the location of the previous definition
libavformat/udp.c:40:5: warning: "HAVE_PTHREAD_CANCEL" is not defined 
[-Wundef]
libavformat/udp.c:68:5: warning: "HAVE_PTHREAD_CANCEL" is not defined 
[-Wundef]
libavformat/udp.c: In function 'udp_set_multicast_sources':
libavformat/udp.c:195:5: warning: "HAVE_STRUCT_GROUP_SOURCE_REQ" is not 
defined [-Wundef]
libavformat/udp.c:223:7: warning: "HAVE_STRUCT_IP_MREQ_SOURCE" is not 
defined [-Wundef]
libavformat/udp.c: At top level:
libavformat/udp.c:402:5: warning: "HAVE_PTHREAD_CANCEL" is not defined 
[-Wundef]
libavformat/udp.c: In function 'udp_open':
libavformat/udp.c:499:18: error: 'HAVE_PTHREAD_CANCEL' undeclared (first 
use in this function)
libavformat/udp.c:499:18: note: each undeclared identifier is reported 
only once for each function it appears in
libavformat/udp.c:652:5: warning: "HAVE_PTHREAD_CANCEL" is not defined 
[-Wundef]
libavformat/udp.c:678:5: warning: "HAVE_PTHREAD_CANCEL" is not defined 
[-Wundef]
libavformat/udp.c: In function 'udp_read':
libavformat/udp.c:699:5: warning: "HAVE_PTHREAD_CANCEL" is not defined 
[-Wundef]
libavformat/udp.c:697:16: warning: unused variable 'nonblock' 
[-Wunused-variable]
libavformat/udp.c:697:9: warning: unused variable 'avail' 
[-Wunused-variable]
libavformat/udp.c: In function 'udp_close':
libavformat/udp.c:779:5: warning: "HAVE_PTHREAD_CANCEL" is not defined 
[-Wundef]
libavformat/udp.c:774:9: warning: unused variable 'ret' [-Wunused-variable]
make[1]: *** [libavformat/udp.o] Error 1
make[1]: Leaving directory `/home/Joshua/mplayer/ffmpeg'
make: *** [ffmpeg/libavformat/libavformat.a] Error 2

A lot of other stuff is undefined but `if (!HAVE_PTHREADS_CANCEL)` 
bothers the compiler.


More information about the MPlayer-users mailing list