Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366441 - app-text/mupdf-0.8.15 cannot be linked against with -fPIC
Summary: app-text/mupdf-0.8.15 cannot be linked against with -fPIC
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Michael Weber (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-08 08:36 UTC by Cedric Sodhi
Modified: 2011-06-12 15:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cedric Sodhi 2011-05-08 08:36:01 UTC
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)
Comment 1 Michael Weber (RETIRED) gentoo-dev 2011-05-11 07:16:36 UTC
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