Andreas Enge writes: > On Mon, Dec 16, 2019 at 11:41:57PM +0100, Marius Bakke wrote: >> Errh, the patch only works if you already have Poppler 0.83.0. For the >> current 'core-updates' branch, I believe you can use the same approach >> but fetch poppler-0.76.0.cc instead (or take Arch's patch[0]). > > Ah, this is rocket science! I guessed so much as to use the 0.76.0 file; > however, the build now fails with the following: > > /gnu/store/29jhbbg1hf557x8j53f9sxd9imlmf02a-bash-minimal-5.0.7/bin/bash ./libtool --tag=CXX --mode=link g++ -Wreturn-type -Wno-write-strings -g -O2 -o pdftex pdftexdir/pdftex-pdftexextra.o synctexdir/pdftex-synctex.o pdftex-pdftexini.o pdftex-pdftex0.o pdftex-pdftex-pool.o libpdftex.a -L/gnu/store/3snpwk7jl8i125bhiilvk9scqc4mnsx7-libpng-1.6.37/lib -L/gnu/store/qx7p7hiq90mi7r78hcr9cyskccy2j4bg-zlib-1.2.11/lib -lpng16 -lz -lz -L/gnu/store/18q4r8bpwmpm4w15zipf66l3bvdjzfbs-poppler-0.79.0/lib -lpoppler libmd5.a lib/lib.a /tmp/guix-build-texlive-bin-20190410.drv-0/build/texk/kpathsea/libkpathsea.la -lm > libtool: link: g++ -Wreturn-type -Wno-write-strings -g -O2 -o pdftex pdftexdir/pdftex-pdftexextra.o synctexdir/pdftex-synctex.o pdftex-pdftexini.o pdftex-pdftex0.o pdftex-pdftex-pool.o libpdftex.a -L/gnu/store/3snpwk7jl8i125bhiilvk9scqc4mnsx7-libpng-1.6.37/lib -L/gnu/store/qx7p7hiq90mi7r78hcr9cyskccy2j4bg-zlib-1.2.11/lib /gnu/store/3snpwk7jl8i125bhiilvk9scqc4mnsx7-libpng-1.6.37/lib/libpng16.so -lz -L/gnu/store/18q4r8bpwmpm4w15zipf66l3bvdjzfbs-poppler-0.79.0/lib -lpoppler libmd5.a lib/lib.a /tmp/guix-build-texlive-bin-20190410.drv-0/build/texk/kpathsea/.libs/libkpathsea.a -lm -Wl,-rpath -Wl,/gnu/store/3snpwk7jl8i125bhiilvk9scqc4mnsx7-libpng-1.6.37/lib -Wl,-rpath -Wl,/gnu/store/3snpwk7jl8i125bhiilvk9scqc4mnsx7-libpng-1.6.37/lib > ld: libpdftex.a(libpdftex_a-writeimg.o): in function `readimage': > /tmp/guix-build-texlive-bin-20190410.drv-0/build/texk/web2c/../../../texlive-20190410-source/texk/web2c/pdftexdir/writeimg.c:320: undefined reference to `read_pdf_info' > ld: libpdftex.a(libpdftex_a-writeimg.o): in function `undumpimagemeta': > /tmp/guix-build-texlive-bin-20190410.drv-0/build/texk/web2c/../../../texlive-20190410-source/texk/web2c/pdftexdir/writeimg.c:546: undefined reference to `read_pdf_info' > collect2: error: ld returned 1 exit status > > read_pdf_info is defined precisely in the pdftoepdf-poppler*.cc > > And using "strings" on libpdftex.a shows that the function name occurs. This turned out to be because poppler0.83.0.cc depends on another revision, which changed the read_pdf_info function signature: https://github.com/TeX-Live/texlive-source/commit/371f874f0945435b9b577a130bb97368311e981a I was able to build it with Poppler 0.84 by taking the Arch patches, and forking their poppler-0.83 patch: