[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Pkg-cups-devel] Bug#543973: cups_1.4.0~svn8773-1(hppa/experimental): FTBFS: trying to link PIC and non-PIC code

Martin Pitt wrote:
> tag 543973 help
> thanks
> | Linking texttopdf...
> | cc -L../cgi-bin -L../cups -L../filter -L../ppdc -L../scheduler -Wl,--as-needed  -pie -fPIE -Wall -Wno-format-y2k -fPIC -Os -g -fstack-protector -D_GNU_SOURCE -o texttopdf texttopdf.o textcommon.o common.o pdfutils.o -Lfontembed -lfontembed -lcups -lavahi-common -lavahi-client   -lgnutls   -lpthread -lm -lcrypt 
> | /usr/bin/ld.real: fontembed/libfontembed.a(sfnt.o): relocation R_PARISC_DPREL21L can not be used when making a shared object; recompile with -fPIC
> | fontembed/libfontembed.a: could not read symbols: Bad value
> Since both pear and sarti seem to be down, I don't have access to a
> HPPA porter box. I'd appreciate help with fixing this.

It seems that texttopdf is tried to be linked against
fontembed/libfontembed.a which is a static library (and as such is not
usually compiled with -fPIC). The solution will probably mean to either
link against a dynamic library libfontembed.so (compiled with -fPIC) or
to compile the static library linfontembed_pic.a with -fPIC before
linking against it.



Reply to: