On Fri, Jul 06, 2001 at 01:45:26PM -0500, John R. Jackson wrote:
> >I've been trying all day to compile the latest stable release of amanda on aix
> > 4.3.3. ...
>
> I do this pretty often with no problem.
Today, I'm running into the same problem using AIX 4.3.3:
/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
client-src/getfsent.c:
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");
155 #else
156 fstabf2 = fopen(MNTTAB, "r");
157 #endif
158 return (fstabf1 != NULL || fstabf2 != NULL);
159 }
Well, this system isn't IRIX or Linux...