[issue2021] print/cups compilation fails with gcc4.4 on w86_64

Francois Tigeot (via DragonFly issue tracker) sinknull at leaf.dragonflybsd.org
Sun Mar 6 16:51:24 PST 2011


New submission from Francois Tigeot <ftigeot at wolfpond.org>:

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/cups-1.4.4/cups/.libs
-L/usr/obj/pkgsrc/print/cups/work/cups-1.4.4/cgi-bin
-L/usr/obj/pkgsrc/print/cups/work/cups-1.4.4/cups
-L/usr/obj/pkgsrc/print/cups/work/cups-1.4.4/filter
-L/usr/obj/pkgsrc/print/cups/work/cups-1.4.4/ppdc
-L/usr/obj/pkgsrc/print/cups/work/cups-1.4.4/scheduler
-L/usr/obj/pkgsrc/print/cups/work/.buildlink/lib ../filter/.libs/libcupsimage.so
/usr/obj/pkgsrc/print/cups/work/.buildlink/lib/libtiff.so
/usr/obj/pkgsrc/print/cups/work/.buildlink/lib/libpng14.so
/usr/obj/pkgsrc/print/cups/work/.buildlink/lib/libjpeg.so
/usr/obj/pkgsrc/print/cups/work/cups-1.4.4/cups/.libs/libcups.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

----------
files: gcc-fpic.patch
keyword: x86-64
messages: 9700
nosy: ftigeot
priority: bug
status: unread
title: print/cups compilation fails with gcc4.4 on w86_64

_____________________________________________________
DragonFly issue tracker <bugs at lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue2021>
_____________________________________________________Attachment:
gcc-fpic.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00001.bin
Type: application/octet-stream
Size: 908 bytes
Desc: "Description: Binary data"
URL: <http://lists.dragonflybsd.org/pipermail/bugs/attachments/20110306/30764fe0/attachment-0021.bin>


More information about the Bugs mailing list