Subject: Re: CVS commit: pkgsrc/textproc/nbsed/files
To: Johnny C. Lam <>
From: Jan Schaumann <>
List: tech-pkg
Date: 09/12/2004 12:49:33
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

"Johnny C. Lam" <> wrote:
> On Sat, Sep 11, 2004 at 05:54:05PM +0000, Jan Schaumann wrote:
> >=20
> > Module Name:	pkgsrc
> > Committed By:	jschauma
> > Date:		Sat Sep 11 17:54:05 UTC 2004
> >=20
> > Modified Files:
> > 	pkgsrc/textproc/nbsed/files: configure
> >=20
> > Log Message:
> > Remove check for getprogname, setprogname and fgetln, consistent with
> > jlam's last change, since we use libnbcompat.  (If we left these checks=
> > configure would test for them, find them and set HAVE_GETPROGNAME, subs=
> > breaking 'getprogname', as nbcompat.h wouldn't work since HAVE_GETPROGN=
> > is then defined.)
> I wonder why this change was necessary at all.  Within pkgsrc and for
> the bootstrap process, nbsed is configured with -lnbcompat passed to
> the compiler/linker, so those function checks for fgetln() and
> {get,set}progname() should show that they exist (because they exist
> in libnbcompat.a).  Was this not working on your machine?

It wasn't working on my IRIX system.

During configure phase, we compile with -lnbcompat, so configure will
determine that we have getprogname, setprogname and fgetln and set
HAVE_GETPROGNAME etc. accordingly.

During the build phase, we include nbcompat.h, which in turn includes
nbcompat/stdio.h.  That file includes the lines:

char    *fgetln(FILE *, size_t *);

Since during configure phase HAVE_FGETLN was set to 1, the function
protoype is now not defined in our program, causing the build to fail.

Similarly for nbcompat/stdlib.h and HAVE_SETPROGNAME.


Time is an illusion, lunchtime doubly so.

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.2.3 (NetBSD)