Subject: -current build in gnu/libexec/uucp/libunix fails
To: None <netbsd-current-users@netbsd.org>
From: Martin Weber <Ephaeton@gmx.net>
List: current-users
Date: 11/09/2001 10:58:18
if in /etc/mk.conf MKLINT is set to 'yes' lint will stumble
over walk.c in gnu/libexec/uucp/libunix with the following
complaint:

CC="/usr/tools/bin/i386--netbsdelf-gcc" /usr/tools/bin/i386--netbsdelf-lint -chapbxzF -d /usr/newroot/usr/include -I/usr/src/gnu/libexec/uucp/libunix/../common_sources -DOWNER=\"uucp\" -DSBINDIR=\"/usr/libexec/uucp\" -DPOSIX_HEADERS -i /usr/src/gnu/libexec/uucp/libunix/walk.c
/usr/src/gnu/libexec/uucp/libunix/walk.c(28): redeclaration of formal parameter pinfo [237]
/usr/src/gnu/libexec/uucp/libunix/walk.c(33): warning: cast discards 'const' from pointer target type [275]
*** Error code 1

... make stops.

This build was invoked via build.sh.

The code in question is :

    23  boolean
    24  usysdep_walk_tree (zdir, pufn, pinfo)
    25       const char *zdir;
    26       void (*pufn) P((const char *zfull, const char *zrelative,
    27                       pointer pinfo));
    28       pointer pinfo;
    29  {
    30    cSlen = strlen (zdir) + 1;
    31    puSfn = pufn;
    32    pSinfo = pinfo;
    33    return ftw ((char *) zdir, iswalk_dir, 5) == 0;
    34  }

Btw, in gnu/libexec/uucp/libunix/Makefile MKLINT gets explicitely set to
NO, shouldn't that override the global setting ? Same thing as with
Nigel Reeds MKMAN I suppose (uuchk.1 problem see on this list)

Uhm well, trying to build again with mklint set to no, just think you
should know what's going on here (==> CHAOS! ;)

Martin Weber