[Top][All Lists]

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

testutils2.1 fails to configure on HPUX 10.20 using HP tools

From: Jost Martin
Subject: testutils2.1 fails to configure on HPUX 10.20 using HP tools
Date: Mon Nov 25 22:18:23 2002


I tried to configure textutils2.1 on HPUX 10.20 with HP tools.

export CC=cc
export CXX=aCC
export CPPFLAGS="-I/pd/libs/include/"
export LDFLAGS=" -L/pd/libs/lib/"
export CFLAGS="+DAportable -Aa +O2"
export CXXFLAGS="+DAportable -AA +O2"
./configure -prefix=/pd/text2.1 --without-gcc

This gives:
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 filesystems

So I tried to hunt down one of these methods:

delphi> man getmntinfo
No manual entry for getmntinfo.

delphi> man getmnt    
No manual entry for getmnt.

delphi> man next_dev
No manual entry for next_dev.

delphi> man fs_stat_dev
No manual entry for fs_stat_dev.

delphi> find /usr/include -name 'fs_info.h'

delphi> glimpse -H /usr/include/index getmnt    
/usr/include/mntent.h:    extern struct mntent *getmntent(FILE *);
/usr/include/mntent.h:    extern int getmntent_r(FILE *, struct mntent *, char 
*, int);
/usr/include/mntent.h:    extern struct mntent *();
/usr/include/mntent.h:    extern int getmntent_r();

fread on /etc/mnttab: Fails due to lack of 'mnttab.h'

So getmntent() seems to be there - but not tested.

 getmntent(3X)                                                 getmntent(3X)

      getmntent(), getmntent_r(), setmntent(), addmntent(), endmntent(),
      hasmntopt() - get file system descriptor file entry

      #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);

      char *hasmntopt(struct mntent *mnt, const char *opt);

      int endmntent(FILE *stream);

      These routines replace the obsolete getfsent() routines (see
      getfsent(3X)) for accessing the file system description file
      /etc/fstab.  They are also used to access the mounted file system
      description file /etc/mnttab.
(I can send the complete man-page if needed)

Is there a way to get textutils to compile on HPUX 10.20 ?
(Older versions compiled without problems)


Martin Jost

Attachment: Jost Martin.vcf
Description: Binary data

reply via email to

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