bug-gnulib
[Top][All Lists]
Advanced

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

[bug-gnulib] HP-UX (PA-RISC and Itanium) getmntent problems


From: Nelson H. F. Beebe
Subject: [bug-gnulib] HP-UX (PA-RISC and Itanium) getmntent problems
Date: Sat, 18 Dec 2004 17:20:11 -0700 (MST)

Recent problem reports from a couple of testers of the latest GNU
findutils release turned up configure-time failures on HP-UX 11 on
both PA-RISC and Itanium hardware:

>> ...
>> checking for sys/fs_types.h... no
>> checking for struct fsstat.f_fstypename... no
>> checking for getmntent in -lsun... no
>> checking for getmntent in -lseq... no
>> checking for getmntent in -lgen... yes
>> checking for getmntent... yes
>> checking for listmntent of Cray/Unicos-9... no
>> checking for mntctl function and struct vmount... no
>> checking for one-argument getmntent function... no
>> checking for two-argument getmntent function... no
>> checking for getfsstat function... no
>> checking for FIXME existence of three headers... no
>> checking for getmntinfo function... no
>> checking for getmnt function... no
>> checking for next_dev... no
>> checking for fs_stat_dev... no
>> checking fs_info.h usability... no
>> checking fs_info.h presence... no
>> checking for fs_info.h... no
>> checking for BEOS mounted file system support functions... no
>> checking whether it is possible to resort to fread on /etc/mnttab... no
>> configure: error: could not determine how to read list of mounted file 
>> systems
>> ...

The findutils configure.in file has this fragment:

>> ...
>> dnl We don't just use AC_FUNC_GETMNTENT directly because it
>> dnl will try to use -lsun on platforms which have getmntent() in the
>> dnl C library, for example UNICOS.
>> AC_CHECK_FUNC(getmntent, [], [AC_FUNC_GETMNTENT])
>> AC_CHECK_FUNCS(getmntent)
>> AC_CHECK_FUNCS(setmntent endmntent)
>> ...

Here is the corresponding failure report from config.log:

>> ...
>> configure:12622: checking for BEOS mounted file system support functions
>> configure:12631: result: no
>> configure:12645: checking whether it is possible to resort to fread on 
>> /etc/mnttab
>> configure:12658: c89 -E  conftest.c
>> "conftest.c", line 93: error #2005: could not open source file "mnttab.h"
>>   #include <mnttab.h>
>>                      ^
>> 
>> 1 error detected in the compilation of "conftest.c".
>> configure:12664: $? = 2
>> configure:12622: checking for BEOS mounted file system support functions
>> configure:12631: result: no
>> configure:12645: checking whether it is possible to resort to fread on 
>> /etc/mnttab
>> configure:12658: c89 -E  conftest.c
>> "conftest.c", line 93: error #2005: could not open source file "mnttab.h"
>>   #include <mnttab.h>
>>                      ^
>> 
>> 1 error detected in the compilation of "conftest.c".
>> configure:12664: $? = 2
>> configure: failed program was:
>> | /* confdefs.h.  */
>> |
>> | #define PACKAGE_NAME ""
>> | #define PACKAGE_TARNAME ""
>> ...
>> configure: failed program was:
>> | /* confdefs.h.  */
>> |
>> | #define PACKAGE_NAME ""
>> | #define PACKAGE_TARNAME ""
>> ...

There is no mnttab.h file anywhere in the /usr/include tree.

The manual pages for getmnt on HP-UX refer to a different header file,
mntent.h:

>> ...
>>  NAME
>>       getmntent(), getmntent_r(), setmntent(), addmntent(), delmntent(),
>>       endmntent(), hasmntopt() - get file system descriptor file entry
>> 
>>  SYNOPSIS
>>       #include <mntent.h>
>> 
>>       FILE *setmntent(const char *path, char *type);
>> 
>>       struct mntent *getmntent(FILE *stream);
>> 
>>       int getmntent_r(
>>            FILE *stream,
>>            struct mntent *result,
>>            char *buffer,
>>            int buflen);
>> 
>>       int addmntent(FILE *stream, struct mntent *mnt);
>> 
>>       int delmntent(FILE *stream, struct mntent *mnt);
>> 
>>       char *hasmntopt(struct mntent *mnt, const char *opt);
>> 
>>       int endmntent(FILE *stream);
>> 
>> ...

As an experiment, I simply edited configure to replace mnttab.h by
mntent.h (except the sys/mnttab.h references), and reran configure.
It completed successfully, and the build of findutils got further
before getting a compilation error that is unrelated to the getmntent
problem.  I'll report that separately to the findutils developer.

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- University of Utah                    FAX: +1 801 581 4148                  -
- Department of Mathematics, 110 LCB    Internet e-mail: address@hidden  -
- 155 S 1400 E RM 233                       address@hidden  address@hidden -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe  -
-------------------------------------------------------------------------------




reply via email to

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