building multimedia/ffmpeg results in tons of 'undefined references'

Raivo Hool raivo.hool at gmail.com
Sat Jul 4 21:15:03 UTC 2015


FreeBSD 10.1-STABLE from mid-June on a Core2Duo.

Building multimedia/ffmpeg invariably fails for me like this:

MAN     doc/ffprobe.1
MAN     doc/ffmpeg-all.1
MAN     doc/ffprobe-all.1
MAN     doc/ffmpeg-utils.1
libavcodec/libavcodec.so: undefined reference to `ff_dcadsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_ttadsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_dwt_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_bswapdsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_h264dsp_init_x86'
libavcodec/libavcodec.so: undefined reference to `ff_h263dsp_init_x86’

Etc. Needless to say, the functions are nicely present within the files.

Curiously enough, it is always multimedia/ffmpeg and never any of the suffixed ffmpeg ports, such as multimedia/ffmpeg26, which did not used to build when it was still called multimedia/ffmpeg, but now, having gained the suffix, builds without an issue. There is no difference whether I have a make.conf or not. No suffix - build fail. Suffix - no problemo.

Where should I look? I am completely at a loss. I have read through all the man pages I could think of (ldconfig and ld, to be precise), wandered in places the former recommended, and found nothing. The same port builds fine on another FreeBSD machine that I administer.


-- 
Raivo



More information about the freebsd-ports mailing list