[FFmpeg-cvslog] r19404 - in trunk: common.mak configure

Måns Rullgård mans
Tue Jul 21 16:17:34 CEST 2009


Stefano Sabatini <stefano.sabatini-lala at poste.it> writes:

> stefano at geppetto ~/s/ffmpeg> configure --enable-libx264 --enable-gpl
> [...]
> /home/stefano/lib/libx264.a(encoder.o): In function `x264_encoder_frame_end':
> encoder.c:(.text+0x2d8a): undefined reference to `pthread_join'
> /home/stefano/lib/libx264.a(encoder.o): In function `x264_encoder_encode':
> encoder.c:(.text+0x3ad3): undefined reference to `pthread_create'
> /home/stefano/lib/libx264.a(encoder.o): In function `x264_encoder_close':
> encoder.c:(.text+0x4a59): undefined reference to `pthread_join'
> collect2: ld returned 1 exit status
> ERROR: libx264 not found
>
> Manually adding --enable-pthreads fix it.

This is an old problem, and there is nothing we can do about it.

> stefano at geppetto ~/s/ffmpeg> configure --enable-x11grab --enable-gpl
> make
> ...
>
> gcc -DHAVE_AV_CONFIG_H -I. -I"/home/stefano/src/ffmpeg"
> -I/home/stefano/include -I/home/stefano/include -std=c99
> -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall
> -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls
> -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef
> -O3 -fno-math-errno -fno-signed-zeros -c -o libavdevice/x11grab.o
> libavdevice/x11grab.c
> In file included from libavdevice/x11grab.c:51:
> /usr/include/sys/ipc.h:25:3: warning: #warning "Files using this header must be compiled with _SVID_SOURCE or _XOPEN_SOURCE"
> libavdevice/x11grab.c: In function ?x11grab_read_packet?:
> libavdevice/x11grab.c:441: error: storage size of ?ts? isn?t known
> libavdevice/x11grab.c:458: warning: implicit declaration of function ?nanosleep?
> libavdevice/x11grab.c:441: warning: unused variable ?ts?
> make: *** [libavdevice/x11grab.o] Error 1

I get no such error.  What libc are you getting this on?

> $ configure:
> $ make
> gcc -DHAVE_AV_CONFIG_H -I. -I"/home/stefano/src/ffmpeg"
> -I/home/stefano/include -I/home/stefano/include -std=c99
> -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall
> -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls
> -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef
> -O3 -fno-math-errno -fno-signed-zeros -c -o libavformat/udp.o
> libavformat/udp.c
> libavformat/udp.c: In function ?udp_ipv6_resolve_host?:
> libavformat/udp.c:144: error: storage size of ?hints? isn?t known

Again, what libc are you using?

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-cvslog mailing list