Subject: pkg/33321: graphics/cairo ld error with gcc 3.4
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <b1ff@fr33.b33r.net>
List: pkgsrc-bugs
Date: 04/20/2006 21:15:00
>Number:         33321
>Category:       pkg
>Synopsis:       graphics/cairo ld error with gcc 3.4
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 20 21:15:00 +0000 2006
>Originator:     Mathieu
>Release:        3.0.0_STABLE
>Organization:
>Environment:
NetBSD sal.lan 3.0.0_STABLE NetBSD 3.0.0_STABLE (SPECIFIC) #0: Sat Apr  8 22:19:10 EDT 2006  mathieu@sal.lan:/usr/src/sys/arch/i386/compile/SPECIFIC i386

>Description:
cc -O2 -march=pentium4 -pipe -I/src/pkgsrc/graphics/cairo/work/.buildlink/include -I/src/pkgsrc/graph
ics/cairo/work/.buildlink/gcc34/include -DGLX_GLXEXT_LEGACY -I/src/pkgsrc/graphics/cairo/work/.x11-bu
ildlink/include -I/src/pkgsrc/graphics/cairo/work/.buildlink/include/freetype2 -Wl,-R/usr/pkg/xorg/li
b -Wl,-R/usr/pkg/gcc34/lib -Wl,-R/usr/pkg/lib -o .libs/imagediff imagediff.o -pthread  -L/src/pkgsrc/
graphics/cairo/work/.buildlink/gcc34/bin/../lib/gcc/i386--netbsdelf3.0.0/3.4.6 -L/src/pkgsrc/graphics
/cairo/work/.buildlink/gcc34/bin/../lib -L/src/pkgsrc/graphics/cairo/work/.x11-buildlink/lib -L/src/p
kgsrc/graphics/cairo/work/.buildlink/gcc34/lib -L/src/pkgsrc/graphics/cairo/work/.buildlink/lib ./.li
bs/libcairotest.a ../src/.libs/libcairo.so /src/pkgsrc/graphics/cairo/work/.buildlink/lib/libXrender.
so -lX11 /src/pkgsrc/graphics/cairo/work/.buildlink/lib/libpng12.so /src/pkgsrc/graphics/cairo/work/.
buildlink/lib/libglitz.so /src/pkgsrc/graphics/cairo/work/.buildlink/lib/libfontconfig.so /src/pkgsrc
/graphics/cairo/work/.buildlink/lib/libexpat.so /src/pkgsrc/graphics/cairo/work/.buildlink/lib/libfre
etype.so -lz -lm -Wl,--rpath -Wl,/usr/pkg/lib -Wl,--rpath -Wl,/src/pkgsrc/graphics/cairo/work/.buildl
ink/lib
/usr/bin/ld: .libs/imagediff: hidden symbol `__popcountsi2' in /src/pkgsrc/graphics/cairo/work/.build
link/gcc34/bin/../lib/gcc/i386--netbsdelf3.0.0/3.4.6/libgcc.a(_popcountsi2.oS) is referenced by DSO
collect2: ld returned 1 exit status
*** Error code 1

>How-To-Repeat:
I have GCC_REQD=3.4 in /etc/mk.conf.

It builds OK if I comment that out.

>Fix:
Really no idea.