[FFmpeg-trac] #1929(build system:new): ./configure --disable-w32threads doesn't check for presence of pthreads
FFmpeg
trac at avcodec.org
Thu Nov 29 20:25:29 CET 2012
#1929: ./configure --disable-w32threads doesn't check for presence of pthreads
-------------------------------------+-------------------------------------
Reporter: rogerdpack | Owner:
Type: defect | Status: new
Priority: normal | Component: build
Version: unspecified | system
Keywords: win | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by rogerdpack):
Here's my attempt (basically removing libpthread.a from my system).
/home/rogerdpack/dev/ffmpeg-windows-build-
helpers/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-gcc -Llibavcodec
-Llibavdevice -Llibavfilter -Llibavformat -Llibavresample -Llibavutil
-Llibpostproc -Llibswscale -Llibswresample -Wl,--as-needed -Wl,--warn-
common -Wl,-rpath-
link=libpostproc:libswresample:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil:libavresample
-o ffmpeg_g.exe ffmpeg_opt.o ffmpeg_filter.o ffmpeg.o cmdutils.o
-lavdevice -lavfilter -lavformat -lavcodec -lpostproc -lswresample
-lswscale -lavutil -lavicap32 -lpsapi -lole32 -lstrmiids -luuid -ldl -ldl
-lws2_32 -L/home/rogerdpack/dev/ffmpeg-windows-build-
helpers/sandbox/mingw-w64-i686/i686-w64-mingw32/lib -lmingw32 -lSDLmain
-lSDL -lm -luser32 -lgdi32 -lwinmm -ldxguid -lnettle -lhogweed -lgmp
-lxvidcore -lxavs -lx264 -lvorbisenc -lvorbis -logg -lvo-amrwbenc -lvo-
aacenc -lutvideo -lstdc++ -ltheoraenc -ltheoradec -logg -lspeex
-L/home/rogerdpack/dev/ffmpeg-windows-build-
helpers/sandbox/mingw-w64-i686/i686-w64-mingw32/lib -lrtmp -lwinmm -lz
-lgnutls -lnettle -lhogweed -lgmp -lcrypt32 -lws2_32
-L/home/rogerdpack/dev/ffmpeg-windows-build-
helpers/sandbox/mingw-w64-i686/i686-w64-mingw32/lib -lopus -lopenjpeg
-lopencore-amrwb -lopencore-amrnb -lmp3lame -lgsm -L/home/rogerdpack/dev
/ffmpeg-windows-build-helpers/sandbox/mingw-w64-i686/i686-w64-mingw32/lib
-lfreetype -L/home/rogerdpack/dev/ffmpeg-windows-build-
helpers/sandbox/mingw-w64-i686/i686-w64-mingw32/lib -lass -lm -lfontconfig
-lexpat -lfribidi -lfreetype -L/home/rogerdpack/dev/ffmpeg-windows-build-
helpers/sandbox/mingw-w64-i686/i686-w64-mingw32/lib -lgnutls -lnettle
-lhogweed -lgmp -lcrypt32 -lws2_32 -L/home/rogerdpack/dev/ffmpeg-windows-
build-helpers/sandbox/mingw-w64-i686/i686-w64-mingw32/lib -lfontconfig
-lfreetype -lexpat -lavifil32 -lm -pthread -lbz2 -lz -lpsapi -ladvapi32
-lshell32
/home/rogerdpack/dev/ffmpeg-windows-build-
helpers/sandbox/mingw-w64-i686/lib/gcc/i686-w64-mingw32/4.7.1/../../../../i686-w64-mingw32/bin/ld:
cannot find -lpthread
collect2: error: ld returned 1 exit status
make: *** [ffmpeg_g.exe] Error 1
{{{
check_func pthread_create
check_ld cc
check_cc
BEGIN /tmp/ffconf.UdeoAfnb.c
1 extern int pthread_create();
2 int main(void){ pthread_create(); }
END /tmp/ffconf.UdeoAfnb.c
/home/rogerdpack/dev/ffmpeg-windows-build-
helpers/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-gcc -D_ISOC99_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -U__STRICT_ANSI__
-DPTW32_STATIC_LIB -std=c99 -include ./compat/msvcrt/snprintf.h -fomit-
frame-pointer -c -o /tmp/ffconf.pdlULg0G.o /tmp/ffconf.UdeoAfnb.c
/home/rogerdpack/dev/ffmpeg-windows-build-
helpers/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-gcc -Wl,--as-needed -o
/tmp/ffconf.iBCSJu0K.exe /tmp/ffconf.pdlULg0G.o -lbz2 -lz -lpsapi
-ladvapi32 -lshell32
/tmp/ffconf.pdlULg0G.o:ffconf.UdeoAfnb.c:(.text+0xc): undefined reference
to `pthread_create'
collect2: error: ld returned 1 exit status
check_func pthread_create -pthread
check_ld cc -pthread
check_cc -pthread
BEGIN /tmp/ffconf.UdeoAfnb.c
1 extern int pthread_create();
2 int main(void){ pthread_create(); }
END /tmp/ffconf.UdeoAfnb.c
/home/rogerdpack/dev/ffmpeg-windows-build-
helpers/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-gcc -D_ISOC99_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -U__STRICT_ANSI__
-DPTW32_STATIC_LIB -std=c99 -include ./compat/msvcrt/snprintf.h -fomit-
frame-pointer -pthread -c -o /tmp/ffconf.pdlULg0G.o /tmp/ffconf.UdeoAfnb.c
/home/rogerdpack/dev/ffmpeg-windows-build-
helpers/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-gcc -Wl,--as-needed
-pthread -o /tmp/ffconf.iBCSJu0K.exe /tmp/ffconf.pdlULg0G.o -lbz2 -lz
-lpsapi -ladvapi32 -lshell32
check_func pthread_cancel
check_ld cc
check_cc
BEGIN /tmp/ffconf.UdeoAfnb.c
1 extern int pthread_cancel();
2 int main(void){ pthread_cancel(); }
END /tmp/ffconf.UdeoAfnb.c
/home/rogerdpack/dev/ffmpeg-windows-build-
helpers/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-gcc -D_ISOC99_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -U__STRICT_ANSI__
-DPTW32_STATIC_LIB -std=c99 -include ./compat/msvcrt/snprintf.h -fomit-
frame-pointer -pthread -c -o /tmp/ffconf.pdlULg0G.o /tmp/ffconf.UdeoAfnb.c
/home/rogerdpack/dev/ffmpeg-windows-build-
helpers/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-gcc -Wl,--as-needed -o
/tmp/ffconf.iBCSJu0K.exe /tmp/ffconf.pdlULg0G.o -pthread -lbz2 -lz -lpsapi
-ladvapi32 -lshell32
check_lib math.h sin -lm
check_header math.h
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1929#comment:3>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list