Subject: Re: Bootstrapping and libnbcompat
To: None <blsecres@ssdtgsm.com>
From: Jonathan Perkin <jonathan@perkin.org.uk>
List: tech-pkg
Date: 08/12/2004 16:00:55
--jE+K4o1MICf3EEet
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* On 2004-08-12 at 15:57 BST, blsecres@ssdtgsm.com wrote:

> I'm trying to bootstrap a new pkg tree on a Solaris 2.7 machine and
> have run into a problem.  archivers/pax is using long options
> (getopt_long) however this functionality is not being supplied by
> libnbcompat.  I'm not very good with autoconf but it appears that the
> configure.ac script for libnbcompat looks for getopt.h on the system
> and builds getopt_long if it is available.  This is the opposite of
> what I'd expect since the system would need getopt_long in the absence
> of a c library version.

Yes, I noticed this yesterday - `struct option' is missing from Solaris'
getopt.h.  I added ifdef(_sun_) or similar to nbcompat/getopt.h but
didn't get time to work out how this is hooked into the build (probably
an ifdef in config.h somewhere).

Grant will probably beat me to fixing it, but in case it gets lost in
the cracks could you submit a PR for solaris-pkg-people?

Cheers,

--=20
Jonathan Perkin                                       The NetBSD Project
http://www.perkin.org.uk/                         http://www.netbsd.org/

--jE+K4o1MICf3EEet
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iQEVAwUBQRuGJyFee6/VMqV4AQIPYQf/a+HiQV2YUdCmQ377tJ8/C61P4vo7XLc7
F0SFAu/Zm/ZmqjyjnSI/OQW+tZXE1CZoobQy5SiPw1NemN6E2Oaiu/4yVjh8XaJe
Kk0qhKWsCFjls2ATrGjoLnKxdSp8eBAIbcSDTShz+ed678L6MvOA/imyb1Jkj7mV
No8+o4TOpUDvqEwGWpNXYpYez+/07e/mllYne6+QDGm1dPhiyWjuE/GK7iYiY+J1
DqTL4BoEQUa4UOOvVFrPFUNhklZ+qCCKQEKsNvuSw2e6HLSabDoYEsahRLDprzKs
m1TGPVUBg+LYVGB3rwGc57ErZ4vVwYm2O+/Cr8Q0rZoSdwbNIF10tA==
=utSr
-----END PGP SIGNATURE-----

--jE+K4o1MICf3EEet--