On AIX 4.3.3 without compability libs for older AIX versions:

> /usr/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../config 
>-I../common-src    -g -O2   -c getfsent.c
> gcc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -g -O2 -c getfsent.c -o 
>getfsent.o
> getfsent.c: In function `open_fstab':
> getfsent.c:154: `MNTTAB' undeclared (first use in this function)
> getfsent.c:154: (Each undeclared identifier is reported only once
> getfsent.c:154: for each function it appears in.)
> make[1]: *** [getfsent.lo] Error 1
> make[1]: Leaving directory `/tmp/amanda-2.4.2p2/client-src'
> make: *** [all-recursive] Error 1


The problem is probably a missing mnttab.h. configure tells me:

checking for mntent.h... yes
checking for mnttab.h... no


config/config.h:

/* Define if you have the getmntent function.  */
#define HAVE_GETMNTENT 1
/* Define if you have the <fstab.h> header file.  */
#define HAVE_FSTAB_H 1


client-src/getfsent.c:

    48  #if defined(HAVE_FSTAB_H) && !defined(HAVE_MNTENT_H) /* { */
    49  /*
    50  ** BSD (GETFSENT_BSD)
    51  */
    52  #define GETFSENT_TYPE "BSD (Ultrix, AIX)"
    53
    54  #include <fstab.h>
    55
    56  int open_fstab()
    57  {
    58      return setfsent();
    59  }
    60
    61  void close_fstab()
    62  {
    63      endfsent();
    64  }
    65
    66

This part is not entered because of !defined. Instead some
Linux/HP-UX/Irix part wants to be compiled:

   137  #  if defined(HAVE_MNTENT_H) /* } { */
   138
   139  /*
   140  ** System V.3 (GETFSENT_SVR3, GETFSENT_LINUX)
   141  */
   142  #define GETFSENT_TYPE "SVR3 (NeXTstep, Irix, Linux, HP-UX)"
   143
   144  #include <mntent.h>
   145
   146  static FILE *fstabf1 = NULL;            /* /proc/mounts */
   147  static FILE *fstabf2 = NULL;            /* MNTTAB */
   148
   149  int open_fstab()
   150  {
   151      close_fstab();
   152  #if defined(HAVE_SETMNTENT)
   153      fstabf1 = setmntent("/proc/mounts", "r");
   154      fstabf2 = setmntent(MNTTAB, "r");

Reply via email to