bug-fileutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mountlist.c:329: `MOUNTED' undeclared


From: Jim Meyering
Subject: Re: mountlist.c:329: `MOUNTED' undeclared
Date: Sat, 04 Aug 2001 18:32:14 +0200
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.105

Thanks for the report.

What method should it be using?
If the one-arg getmntent is the right one, then I'll need to know
how to initialize this local variable in mountlist.c:

    char *table = MOUNTED;

If not, does its getmntent function take two arguments,
or does it have a mntctl function and a `struct vmount' definition, etc...
For more info, look in m4/ls-mntd-fs.m4 (which produces code that ends up
in configure) for the code that tries to detect which variant your system uses.

"Scott Thomason" <address@hidden> wrote:
> While compiling on AIX433, libc 4.3.3.50, I get this error:
>
> gcc -DLIBDIR=\"/gnut/lib\" -DHAVE_CONFIG_H -I.. -I. -I../intl    -O2 
> -I/gnu/include -L/gnu/lib -c -o mountlist.o `test -f mountlist.c || echo 
> './'`mountlist.c
> mountlist.c: In function `read_filesystem_list':
> mountlist.c:329: `MOUNTED' undeclared (first use in this function)
> mountlist.c:329: (Each undeclared identifier is reported only once
> mountlist.c:329: for each function it appears in.)
>
> Under older (now unknown) versions of AIX433 libc I did not have this 
> problem. My configure command was:
>
>     ./configure --prefix=/gnut --disable-nls --libexecdir=/gnut/bin
>
> The problem appears to be related to this chunk o' #defs:
>
> #ifdef MOUNTED_GETMNTENT1       /* 4.3BSD, SunOS, HP-UX, Dynix, Irix.  */
> # include <mntent.h>
> # if !defined(MOUNTED)
> #  if defined(MNT_MNTTAB)       /* HP-UX.  */
> #   define MOUNTED MNT_MNTTAB
> #  endif
> #  if defined(MNTTABNAME)       /* Dynix.  */
> #   define MOUNTED MNTTABNAME
> #  endif
> # endif
> #endif
>
> The config.h and config.log files are attached. If anyone can see the 
> problem, I'd appreciate a note, otherwise, I'll keep banging away at it.
> ---scott



reply via email to

[Prev in Thread] Current Thread [Next in Thread]