mkvtoolnix fails to link

Rolf Nielsen rnmtw70 at
Sun Nov 27 03:21:03 UTC 2016

I've been unable to update mkvtoolnix since 9.3.1. I had the exact same
problem updating from 9.2.? to 9.3, but that "magically" sorted itself
when I upgraded the system from 10 to 11 and in the process wiped all
ports and installed fresh. This leads me to believe it's something with
the options I've set in one of the dependencies, rather than with
mkvtoolnix itself. Now boost-libs got updated, and as a result my
installation of mkvtoolnix fails to run because of missing dependencies.
I resolved this by installing the precompiled package, and it seems to
be working just fine, but that one also pulls in a bunch of qt5 stuff,
which I do not want. I only ever use mkvtoolnix from a shell. However, I
did try to build it with default port options, i.e. with the gui
enabled, and that failed with the exact same message. I've also tried to
rebuild all the dependencies (as listed by pkg info -d mkvtoolnix) with
their default options, to no avail.

The last few lines of the make output are as follows

c++ -L/usr/local/lib -fstack-protector -L/usr/local/lib
-Llib/avilib-0.6.10 -Llib/librmff -Lsrc/common -o src/mkvmerge
src/merge/mkvmerge.o -Lsrc/merge -lmtxmerge -Lsrc/input -lmtxinput
-Lsrc/output -lmtxoutput -Lsrc/merge -lmtxmerge -lmtxcommon -lmagic -lz
-L/usr/local/lib -lmatroska -L/usr/local/lib -lebml -lz -lpugixml -lintl
-lboost_regex -lboost_filesystem -lboost_system -lavi -lrmff
-Lsrc/mpegparser -lmpegparser -lFLAC -logg -lm -lvorbis -logg
src/common/libmtxcommon.a(ebml_chapters_converter.o): In function
src/common/xml/ebml_chapters_converter.cpp:(.text+0xc15): undefined
reference to `_ZN4pugi14xpath_node_setaSEOS0_'
src/common/xml/ebml_chapters_converter.cpp:(.text+0xc98): undefined
reference to `_ZN4pugi14xpath_node_setaSEOS0_'
c++: error: linker command failed with exit code 1 (use -v to see
*** Error code 1

make[1]: stopped in /usr/ports/multimedia/mkvtoolnix
*** Error code 1

make: stopped in /usr/ports/multimedia/mkvtoolnix
Vänligen / Sincerely,
Rolf Nielsen

More information about the freebsd-questions mailing list