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

View: New views
3 Messages — Rating Filter:   Alert me  

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

by Martin Pitt-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

Thanks in advance!

Martin
--
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)


signature.asc (204 bytes) Download Attachment

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

by Luk Claes :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

Cheers

Luk


--
To UNSUBSCRIBE, email to debian-hppa-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


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

by Martin Pitt-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Luk,

Luk Claes [2009-09-05 14:10 +0200]:
> 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.

Ah, thanks for the hint! Will do that.

Martin
--
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)


--
To UNSUBSCRIBE, email to debian-hppa-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...