Subject: Re: devel/libgetopt on Solaris
To: Roland Illig <>
From: Todd Vierling <>
List: tech-pkg
Date: 03/10/2005 11:27:53
On Wed, 9 Mar 2005, Roland Illig wrote:

> > Does anyone have any suggestions for a fix or workaround for PR/22672
> > (devel/libgetopt pkg doesn't build on Solaris, for lack of a sys/cdefs.h
> > header)?

Odd.  There is OPSYS==SunOS support in devel/libgetopt/Makefile; I wonder
if/when it ever worked.

> > I need to update my www/curl pkg in response to an audit-packages warning,
> > but a dependency on libgetopt seems to have been introduced recently.
> I simply replaced the (unportable) devel/libgetopt with the (portable)
> pkgtools/libnbcompat, and it works fine on Solaris.

However, that's heavyweight and not a shared object, so it's not currently
the proper way to do that for libidn.  Were libnbcompat built with libtool
to produce a shared object, that would be OK.

(There's a more flexible function-replacement framework in work by, I
believe, jmmv.)

I'm going to do a stopgap fix today that will pull the libgetopt sources
fully into pkgsrc and remove dependencies on BSD-ish headers.

-- Todd Vierling <> <>