The following reply was made to PR pkg/46329; it has been noted by GNATS.
From: Hans Rosenfeld <rosenfeld%grumpf.hope-2000.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: pkg/46329 (graphics/ImageMagick: visibility on Solaris with GCC4
still broken if using native ld)
Date: Fri, 13 Apr 2012 11:44:08 +0200
graphics/ImageMagick built without problems in my SunOS 5.11 bulk build
using lang/gcc46. Could it be that your gcc 4.7 is not configured
correctly? I can't believe that a newer gcc4 suddenly lost support for
the visibility attribute.
Gcc 4.x needs some variant of objdump to be able to detect whether the
visibility attribute can be supported. This is why lang/gcc44 and
lang/gcc46 set this on SunOS:
CONFIGURE_ENV+= OBJDUMP=/usr/sfw/bin/gobjdump
(Admittedly, this may not work on SunOS variants that don't have sfw or
don't have objdump installed.)