See transcript below. This is possibly due to the Object class in /usr/ports/devel/tex-web2c/work/texlive-20140525-source/libs/xpdf/xpdf/Object.h declaring a set of methods in the class declaration, but defining them inline following the declaration (rather than in the class) so that there isn't a concrete definition. mv -f pdftexdir/.deps/ttf2afm-ttf2afm.Tpo pdftexdir/.deps/ttf2afm-ttf2afm.Po /bin/sh ./libtool --tag=CC --mode=link gcc5 -Wimplicit -Wreturn-type -O2 -pipe -I/usr/local/include -fstack-protector -fno-strict-aliasing -fstack-protector -o ttf2afm pdftexdir/ttf2afm-ttf2afm.o lib/lib.a -L/usr/local/lib -lkpathsea -lm libtool: link: gcc5 -Wimplicit -Wreturn-type -O2 -pipe -I/usr/local/include -fstack-protector -fno-strict-aliasing -fstack-protector -o ttf2afm pdftexdir/ttf2afm-ttf2afm.o lib/lib.a -L/usr/local/lib -lkpathsea -lm g++5 -DHAVE_CONFIG_H -I. -I./w2c -I/usr/local/include -I/usr/local/include/libpng16 -DPDF_PARSER_ONLY -I/usr/ports/devel/tex-web2c/work/texlive-20140525-source/libs/xpdf -I/usr/ports/devel/tex-web2c/work/texlive-20140525-source/libs/xpdf/goo -I/usr/ports/devel/tex-web2c/work/texlive-20140525-source/libs/xpdf/xpdf -I./libmd5 -I./pdftexdir -O2 -pipe -I/usr/local/include -fstack-protector -fno-strict-aliasing -MT pdftexdir/pdftosrc-pdftosrc.o -MD -MP -MF pdftexdir/.deps/pdftosrc-pdftosrc.Tpo -c -o pdftexdir/pdftosrc-pdftosrc.o `test -f 'pdftexdir/pdftosrc.cc' || echo './'`pdftexdir/pdftosrc.cc mv -f pdftexdir/.deps/pdftosrc-pdftosrc.Tpo pdftexdir/.deps/pdftosrc-pdftosrc.Po /bin/sh ./libtool --tag=CXX --mode=link g++5 -O2 -pipe -I/usr/local/include -fstack-protector -fno-strict-aliasing -fstack-protector -o pdftosrc pdftexdir/pdftosrc-pdftosrc.o -L/usr/local/lib -lpng16 -lz /usr/ports/devel/tex-web2c/work/texlive-20140525-source/libs/xpdf/libxpdf.a libmd5.a lib/lib.a -L/usr/local/lib -lkpathsea -lm libtool: link: g++5 -O2 -pipe -I/usr/local/include -fstack-protector -fno-strict-aliasing -fstack-protector -o pdftosrc pdftexdir/pdftosrc-pdftosrc.o -L/usr/local/lib -lpng16 -lz /usr/ports/devel/tex-web2c/work/texlive-20140525-source/libs/xpdf/libxpdf.a libmd5.a lib/lib.a -lkpathsea -lm pdftexdir/pdftosrc-pdftosrc.o: In function `main': pdftosrc.cc:(.text.startup+0x240): undefined reference to `Object::isStream(char*)' collect2: error: ld returned 1 exit status Makefile:4713: recipe for target 'pdftosrc' failed gmake[4]: *** [pdftosrc] Error 1 gmake[4]: Leaving directory '/usr/ports/devel/tex-web2c/work/texlive-20140525-source/texk/web2c' Makefile:13099: recipe for target 'all-recursive' failed gmake[3]: *** [all-recursive] Error 1 gmake[3]: Leaving directory '/usr/ports/devel/tex-web2c/work/texlive-20140525-source/texk/web2c' Makefile:3453: recipe for target 'all' failed gmake[2]: *** [all] Error 2 gmake[2]: Leaving directory '/usr/ports/devel/tex-web2c/work/texlive-20140525-source/texk/web2c' *** Error code 1 Stop. make[1]: stopped in /usr/ports/devel/tex-web2c *** Error code 1 Stop. make: stopped in /usr/ports/devel/tex-web2c
devel/tex-web2c builds on 10.4 without problems with gcc5 (cannot test with 11.X, but I think it is now not relevant, nobody will try to build it with gcc5).