Problem with config.h on AIX

Alejandro Martinez <[email protected]>
Newsgroups gmane.comp.gnu.fileutils.bugs
Message-ID <1033998412.10599.1.camel@euribia>
Hi,

I've found this address on the GNU site. If this is not the correct
address to submit this bug to, nor this is not a bug, please accept
my apologizes.

Alex

--

I've found the following error compiling fileutils-4.1 on a AIX 4.3
IBM,7044-270 (configure sets host as powerpc-ibm-aix4.3.3.0).
  ~ make
    ...
        source='mountlist.c' object='mountlist.o' libtool=no  
depfile='.deps/mountlist.Po' tmpdepfile='.deps/mountlist.TPo'  
depmode=gcc /bin/sh ../depcomp  gcc
-DLIBDIR=\"/mnt/ext1/alejan/opt//lib\" 
-DHAVE_CONFIG_H -I.. -I. -I../intl    -g -O2 -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.)
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 2.
Stop.
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 2.
Stop.

--
Problem:
config.h sets #define MOUNTED_GETMNTENT1 1 
instead it should set #define MOUNTED_VMOUNT
I've mntent.h (don't know why) but MOUNTED is not defined.
configure should use sys/vmount.h as os=aix

Fix:
Changing the defines in config.h (and removing config.h dependency
in Makefile) "works for me" (TM). I would like to send the correct
patch to generate config.h properly, but I don't know much about
configure internal issues and macros :-(
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.