multimedia/x264 build failure

Bob Willcox bob at
Sat Feb 7 02:52:36 UTC 2015

I'm getting the following error when trying to build x264:

cc -o x264  x264.o input/input.o input/timecode.o input/raw.o input/y4m.o output/raw.o output/matroska.o output/matroska_ebml.o output/flv.o output/flv_bytestream.o filters/filters.o filters/video/video.o filters/video/source.o filters/video/internal.o filters/video/resize.o filters/video/cache.o filters/video/fix_vfr_pts.o filters/video/select_every.o filters/video/crop.o filters/video/depth.o input/thread.o output/mp4.o  -lgpac -lz  -L/usr/local/lib -lx264   -m64  -fstack-protector -L/usr/local/lib -lm -pthread
x264.o: In function `main':
x264.c:(.text+0x1aea): undefined reference to `x264_encoder_open_142'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile:177: recipe for target 'x264' failed
gmake[1]: *** [x264] Error 1
gmake[1]: Leaving directory '/usr/ports/multimedia/x264/work/x264-snapshot-20140827-2245-stable'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

make: stopped in /usr/ports/multimedia/x264

Also, I get these warnings on every compilation:

cc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -O2 -pipe  -fstack-protector -fno-strict-aliasing -Wall -I. -I. -I/usr/local/include -std=gnu99 -fomit-frame-pointer -fno-tree-vectorize   -c -o output/mp4.o output/mp4.c
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'?
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'?

But they don't seem to be failing the build (it's the link error shown above).

I'm currently at revision 378554 (just updated minutes ago).

System info:

FreeBSD 10.1-STABLE FreeBSD 10.1-STABLE #0 r276511: Thu Jan  1 16:19:21 CST 2015     bob at  amd64


Bob Willcox    | You climb to reach the summit, but once
bob at | there, discover that all roads lead down.
Austin, TX     |       -- Stanislaw Lem, "The Cyberiad"

More information about the freebsd-ports mailing list