Bug #2021

print/cups compilation fails with gcc4.4 on w86_64

Added by ftigeot over 5 years ago. Updated over 5 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:


Target version:-


Trying to build print/cups, I get the following error:

libtool: link: cc -Wl,-R/usr/pkg/lib -pie -fPIE -Wall -Wno-format-y2k -fPIC -Os
-g -fstack-protector -o .libs/bannertops bannertops.o pstext.o common.o
-L/usr/obj/pkgsrc/print/cups/work/.buildlink/lib ../filter/.libs/libcupsimage.so
../cups/.libs/libcups.so -lz -lssl -lcrypto -ldns_sd -lm -lcrypt -Wl,-rpath
-Wl,/usr/pkg/lib -Wl,-rpath -Wl,/usr/obj/pkgsrc/print/cups/work/.buildlink/lib
/usr/libexec/binutils217/elf/ld: /usr/lib/crt1.o: relocation R_X86_64_32 against
`_DYNAMIC' can not be used when making a shared object; recompile with -fPIC
/usr/lib/crt1.o: could not read symbols: Bad value

The attached patch from Sascha Wildner builds some internal gcc 4.4 components
with -fPIC and eliminate this error

gcc-fpic.patch Magnifier (908 Bytes) ftigeot, 03/07/2011 12:50 AM


#1 Updated by ftigeot over 5 years ago

A variation of the attached patch has been integrated to properly support PIE

Cups now build without any trouble.

Also available in: Atom PDF