[FFmpeg-user] avformat_find_stream_info broken recently with multiple threads?
Dennis Volodomanov
volodomanov at gmail.com
Mon Jan 7 11:38:21 CET 2013
Carl,
Carl Eugen Hoyos wrote:
> New try follows, the question is still if pthread detection
> fails without the --extra-cflags but succeeds if you add them.
>
With the new "./configure --disable-w32threads" it still seems to
succeed in configuring and picking up pthreads (although the config.log
fails?), the output is this:
check_code ld pthread.h pthread_create(NULL, NULL, NULL, NULL) cc
check_ld cc
check_cc
BEGIN /tmp/ffconf.39UOYF2A.c
1 #include <pthread.h>
2 int main(void) { pthread_create(NULL, NULL, NULL, NULL);
return 0; }
END /tmp/ffconf.39UOYF2A.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -std=c99
-fomit-frame-pointer -c -o /tmp/ffconf.rYCYfqUu.o /tmp/ffconf.39UOYF2A.c
gcc -Wl,--as-needed -o /tmp/ffconf.7BZl4P1c /tmp/ffconf.rYCYfqUu.o -lrt
/tmp/ffconf.rYCYfqUu.o: In function `main':
ffconf.39UOYF2A.c:(.text+0x29): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
check_code ld pthread.h pthread_create(NULL, NULL, NULL, NULL) cc -pthread
check_ld cc -pthread
check_cc -pthread
BEGIN /tmp/ffconf.39UOYF2A.c
1 #include <pthread.h>
2 int main(void) { pthread_create(NULL, NULL, NULL, NULL);
return 0; }
END /tmp/ffconf.39UOYF2A.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -std=c99
-fomit-frame-pointer -pthread -c -o /tmp/ffconf.rYCYfqUu.o
/tmp/ffconf.39UOYF2A.c
gcc -Wl,--as-needed -pthread -o /tmp/ffconf.7BZl4P1c
/tmp/ffconf.rYCYfqUu.o -lrt
check_func pthread_cancel
check_ld cc
check_cc
BEGIN /tmp/ffconf.39UOYF2A.c
1 extern int pthread_cancel();
2 int main(void){ pthread_cancel(); }
END /tmp/ffconf.39UOYF2A.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -std=c99
-fomit-frame-pointer -pthread -c -o /tmp/ffconf.rYCYfqUu.o
/tmp/ffconf.39UOYF2A.c
gcc -Wl,--as-needed -o /tmp/ffconf.7BZl4P1c /tmp/ffconf.rYCYfqUu.o
-pthread -lrt
check_lib math.h sin -lm
I haven't compiled, but I assume it'll fail?
Also, all of the above tests are not what I typically do, as these are
native unix builds, while I build for windows. Should that matter?
I also still can't run gdb to find out what the crash is in the DLL, but
it's still there with today's code :(
Dennis
More information about the ffmpeg-user
mailing list