Subject: Re: pkg/34422: security/sudo doesn't link
To: None <joerg@NetBSD.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: pkgsrc-bugs
Date: 08/30/2006 16:10:03
The following reply was made to PR pkg/34422; it has been noted by GNATS.

From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/34422: security/sudo doesn't link
Date: Wed, 30 Aug 2006 18:00:46 +0200

 On Wed, Aug 30, 2006 at 02:10:00PM +0000, jon@univits.com wrote:
 > checking for isblank... yes
 
 Strange...
 
 > Undefined                       first referenced
 >  symbol                             in file
 > isblank                             sudo_edit.o
 
 (a) Is isblank defined in ctype.h?
 If yes: is it perhaps not in libc, but some other library?
 If no: Can you compile the following program with warnings enabling and
 show me the result?
 
 #include <ctype.h>
 int
 main (void)
 {
 (void)isblank(1);
   ;
   return 0;
 }
 
 > --- sudo_edit.c.orig    2004-11-25 15:32:34.000000000 -0200
 > +++ sudo_edit.c
 > @@ -205,6 +205,9 @@ int sudo_edit(argc, argv)
 >       */
 >      nargc = argc;
 >      for (cp = editor + 1; *cp != '\0'; cp++) {
 > +#if defined(__SVR4) && defined(__sun)
 > +#define isblank(c) (c == ' ' ||c == '\t' ||c == '\r' ||c == '\n')
 > +#endif
 
 This is incorrect, since isblank(c) is true for c == ' ' || c == '\t'
 only.
 
 Joerg