PDA

View Full Version : [Solved] cups-base broken on amd64?


tankist02
November 30th, 2009, 00:54
FreeBSD 8.0 Release amd64. Ports updated as of today. Compiling print/cups-base results in the following error:

Linking ipp...
cc -L../cgi-bin -L../cups -L../filter -L../ppdc -L../scheduler -L/usr/local/lib -Wl,-R/usr/local/lib -pie -fPIE -Wall -Wno-format-y2k -fPIC
-Os -g -fstack-protector -o ipp ipp.o libbackend.a -lcups -L/usr/local/lib -lgnutls -pthread -lm -lcrypt
/usr/bin/ld: /usr/lib/crt1.o: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
/usr/lib/crt1.o: could not read symbols: Bad value
gmake[1]: *** [ipp] Error 1
gmake[1]: Leaving directory `/data/ports/print/cups-base/work/cups-1.4.2/backend'
gmake: *** [all] Error 1
*** Error code 1

Stop in /data/ports/print/cups-base.


Any help would be much appreciated.

jemrpo
November 30th, 2009, 03:18
Same problem here.

snappy
November 30th, 2009, 03:44
Ditto.

mfaridi
November 30th, 2009, 06:56
I have this problem with FreeBSD 7.2 . when I want upgrade it to new version

anlai
November 30th, 2009, 07:07
Me too, when I upgrade packages. My system is FreeBSD 7.2/amd64.

jnr
November 30th, 2009, 07:40
print/cups-image has the same problem on 8.0 amd64.

dinoex@
November 30th, 2009, 12:18
FreeBSD 7.x and greater can not build PIE anymore.
please update the ports, I have a workaround commited.

MissileSilo
November 30th, 2009, 15:54
I have this problem on FreeBSD 8.0 / amd64.

MissileSilo
November 30th, 2009, 16:02
FreeBSD 7.x and greater can not build PIE anymore.
please update the ports, I have a workaround commited.

Thanks, this worked.

jemrpo
November 30th, 2009, 18:58
Originally Posted by dinoex@ View Post
FreeBSD 7.x and greater can not build PIE anymore.
please update the ports, I have a workaround commited.


How do I do that?.

DutchDaemon
November 30th, 2009, 19:08
By reading.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html

tankist02
November 30th, 2009, 19:13
Verified that the problem is fixed. Updated ports with

portsnap fetch update

and successfully built cups-base and cups-image.

Thanks, dinoex@!

MissileSilo
November 30th, 2009, 19:44
How do I do that?.

csup -L 2 -h cvsup10.FreeBSD.org /usr/share/examples/cvsup/ports-supfile

jemrpo
November 30th, 2009, 20:37
Got it, I was updating doing make update on /usr/ports/, thought it was enough.

jb_fvwm2
December 1st, 2009, 05:02
Cups-base would not build here (i386)
doing ALL of the below worked:

1... make rmconfig
2... make patch
3... edit Makedefs.in to remove one parameter (per
freebsd-questions list)
4... launch sh subshell
5... make build

Not sure if the "code" tags apply unless I complete
the instructions...