I've got a problem compiling against libmupdf.a on a amd64. Linking fails with /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/../../../../lib64/libmupdf.a(dev_draw.o): relocation R_X86_64_32S against `.text' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/../../../../lib64/libmupdf.a: could not read symbols: Bad value This seems to be related to http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=617253 , which according to the debian tracker is fixed in 0.8.1. Reproducible: Always Steps to Reproduce: 1. Emerge mupdf 2 Try to make git://pwmt.org/zathura-pdf-mupdf.git (plugin for next version of app-text/zathura)
I try to reproduce the problem, make options (in the zathura-pdf-mupdf tree) lists pdf build options: CFLAGS = -std=c99 -fPIC -pedantic -Wall -Wno-format-zero-length -I. -I/usr/include -pthread -DQT_SHARED -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/libdrm -I/usr/include/qt4/QtCore LDFLAGS = DFLAGS = -g CC = cc which is partly contributed by following line from config.mk CFLAGS += -std=c99 -fPIC -pedantic -Wall -Wno-format-zero-length $(INCS) sed -e "/^CFLAGS/{s: -fPIC : : ; s: -Wall : :}" \ -i config.mk Well, the current master branch (commit 209cb543463d9ca6bb62a27256a7ab35a0f975de) fails due to a mising zathura/document.h Can you give me a hint which versions you tried? Michael