Greetings to fellow amanda users. I'd like to start off by saying amanda is
an incredible product which has saved our company much money and frustration
over the past 2 years. I've been in charge of the initial installation,
configuration and current maintenance of amanda, and I must say, the product
has exceeded all expectations.

I recently ran across an issue on a new AIX 4.3 server we installed a few
weeks back. I just tried to compile amanda and I received the following
error (running `make`):

make[1]: Entering directory `/tmp/amanda-install/amanda-2.4.2p2/client-src'
/usr/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I../config -I../common-src    -g -O2   -c amandates.c
gcc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -g -O2 -c
amandates.c -o amandates.o
echo timestamp > amandates.lo
/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-install/amanda-2.4.2p2/client-src'
make: *** [all-recursive] Error 1


I've tried the FAQ-O-Matic and Google, but have not found anything regarding
this error. Unfortunately, my company has blocked egroup.com so I cannot
search through the mailing list archives.

Prior to compilation I installed the following 'pre-compiled for AIX'
packages:
gnu.flex-2.5.4.0.exe
gnu.gdb-5.0.0.0.exe
termpkg-3.0.0.0.exe
gnu.gcc-2.95.3.0.exe
gnu.make-3.79.1.0.exe
gnu.gcc.g++-2.95.3.0.exe
gnu.readline-4.1.0.1.exe

Put /usr/local/bin at the head of my path.

And for the brave: Here's the configure command and output.

./configure --with-user=amanda --with-group=backup --without-server \
--with-tape-server=amandaserver --with-index-server=amandaserver

creating cache ./config.cache
checking host system type... rs6000-ibm-aix4.3.3.0
checking target system type... rs6000-ibm-aix4.3.3.0
checking build system type... rs6000-ibm-aix4.3.3.0
checking cached system tuple... ok
checking for a BSD compatible install... config/install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for non-rewinding tape device... /dev/null
checking for raw ftape device... /dev/null
checking for Kerberos and Amanda kerberos4 bits... no
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for object suffix... o
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for executable suffix... no
checking for ar... /usr/bin/ar
checking for mawk... no
checking for gawk... no
checking for nawk... nawk
checking for nawk command line variable assignment... yes with -v
checking for bison... bison -y
checking for cat... /usr/bin/cat
checking for compress... /usr/bin/compress
checking for dd... /usr/bin/dd
checking for egrep... /usr/bin/egrep
checking for getconf... /bin/getconf
checking for gnuplot... no
configure: warning: *** You do not have gnuplot.  Amplot will not be
installed.
checking for grep... /usr/bin/grep
checking for gtar... no
checking for gnutar... no
checking for tar... /usr/bin/tar
configure: warning: *** /usr/bin/tar is not GNU tar, so it will not be used.
checking for smbclient... no
checking for gzip... /usr/local/bin/gzip
checking for Mail... /usr/bin/Mail
checking for mt... /usr/bin/mt
checking for chio... no
checking for chs... no
checking for mtx... no
checking for lpr... /usr/bin/lpr
checking which flag to use to select a printer... -P
checking for pcat... /usr/bin/pcat
checking for perl5... no
checking for perl... /usr/local/bin/perl
checking for sh... /usr/bin/sh
checking for backup... /usr/sbin/backup
checking for ufsrestore... no
checking for restore... /usr/sbin/restore
checking whether /usr/sbin/backup supports -E or -S for estimates... no
checking for xfsdump... no
checking for xfsrestore... no
checking for vxdump... no
checking for vxrestore... no
checking for vdump... no
checking for vrestore... no
checking for large file compilation CFLAGS...
checking for large file compilation LDFLAGS...
checking for large file compilation LIBS...
checking for ranlib... ranlib
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
updating cache ./config.cache
loading cache ./config.cache within ltconfig
checking for object suffix... o
checking for executable suffix... (cached) no
checking for gcc option to produce PIC... none
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking if gcc static flag -static -Wl,-lC works... none
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... ok
checking how to hardcode library paths into programs... relink
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... aix4.3.3.0 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
loading cache ./config.cache
checking how to run the C preprocessor... gcc -E
checking whether gcc needs -traditional... no
checking for working const... yes
checking for working volatile... yes
checking for working unsigned long constants... yes
checking for ANSI C header files... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for uid_t in sys/types.h... yes
checking return type of signal handlers... void
checking whether struct tm is in sys/time.h or time.h... time.h
checking for flex... flex
checking for flex... (cached) flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for ANSI C header files... (cached) yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for sys/wait.h... yes
checking for wait.h... no
checking whether wait uses union wait... no
checking whether time.h and sys/time.h may both be included... yes
checking for arpa/inet.h... yes
checking for camlib.h... no
checking for chio.h... no
checking for db.h... no
checking for dbm.h... yes
checking for fcntl.h... yes
checking for fstab.h... yes
checking for grp.h... yes
checking for history.h... no
checking for libc.h... no
checking for limits.h... yes
checking for linux/ftape-header-segment.h... no
checking for linux/ftape-vendors.h... no
checking for linux/ftape.h... no
checking for linux/zftape.h... no
checking for mntent.h... yes
checking for mnttab.h... no
checking for ndbm.h... yes
checking for netdb.h... yes
checking for netinet/in_systm.h... yes
checking for netinet/ip.h... yes
checking for readline.h... no
checking for readline/history.h... yes
checking for readline/readline.h... yes
checking for scsi/sg.h... no
checking for scsi/scsi_ioctl.h... no
checking for stdlib.h... yes
checking for string.h... yes
checking for strings.h... yes
checking for sys/chio.h... no
checking for sys/dsreq.h... no
checking for sys/fcntl.h... no
checking for sys/file.h... yes
checking for sys/ioctl.h... yes
checking for sys/ipc.h... yes
checking for sys/mman.h... yes
checking for sys/mntent.h... no
checking for sys/mount.h... no
checking for sys/mtio.h... no
checking for sys/param.h... yes
checking for sys/scarray.h... yes
checking for sys/scsiio.h... no
checking for sys/scsi.h... yes
checking for sys/scsi/impl/uscsi.h... no
checking for sys/scsi/scsi/ioctl.h... no
checking for sys/select.h... yes
checking for sys/shm.h... yes
checking for sys/stat.h... yes
checking for sys/statfs.h... yes
checking for sys/statvfs.h... yes
checking for sys/tape.h... yes
checking for sys/time.h... yes
checking for sys/types.h... yes
checking for sys/vfs.h... yes
checking for sys/vfstab.h... no
checking for syslog.h... yes
checking for unistd.h... yes
checking for vtblc.h... no
checking whether byte ordering is bigendian... yes
checking for HP/UX-like scsi changer support... no
checking for AIX like scsi support... yes
checking for main in -lcur_colr... no
checking for main in -lintl... no
checking for main in -lnsl... yes
checking for main in -lsocket... no
checking for main in -lsun... no
checking for tgetent in -ltermcap... yes
checking for readline in -lreadline... yes
checking for modf in -lm... yes
checking for dbm_open in -lc... yes
checking whether _POSIX2_RE_DUP_MAX is defined... yes
checking whether CHAR_MIN is defined... yes
checking whether CHAR_MAX is defined... yes
checking whether CHAR_BIT is defined... yes
checking for accept... yes
checking for accept declaration in sys/types.h sys/socket.h... no
checking for working alloca.h... no
checking for alloca... yes
checking for atexit... yes
checking for atof... yes
checking for atof declaration in stdlib.h... yes
checking for basename... yes
checking for bind... yes
checking for bind declaration in sys/types.h sys/socket.h... yes
checking for bcopy... yes
checking for bcopy declaration in string.h strings.h stdlib.h... yes
checking for bzero... yes
checking for bzero declaration in string.h strings.h stdlib.h... yes
checking whether closedir returns void... no
checking for closelog... yes
checking for closelog declaration in syslog.h... yes
checking for connect... yes
checking for connect declaration in sys/types.h sys/socket.h... yes
checking for dbm_open... yes
checking for dbm_open declaration in ... no
checking for fclose... yes
checking for fclose declaration in stdio.h... yes
checking for fflush... yes
checking for fflush declaration in stdio.h... yes
checking for flock... no
checking for fprintf... yes
checking for fprintf declaration in stdio.h... yes
checking for fputc... yes
checking for fputc declaration in stdio.h... yes
checking for fputs... yes
checking for fputs declaration in stdio.h... yes
checking for fread... yes
checking for fread declaration in stdio.h stdlib.h... yes
checking for fseek... yes
checking for fseek declaration in stdio.h... yes
checking for fwrite... yes
checking for fwrite declaration in stdio.h stdlib.h... yes
checking for getcwd... yes
checking for getfsent... yes
checking for gethostname... yes
checking for gethostname declaration in unistd.h... yes
checking for getmntent in -lsun... no
checking for getmntent in -lseq... no
checking for getmntent in -lgen... no
checking for getmntent... yes
checking for getopt... yes
checking for getopt declaration in stdlib.h unistd.h libc.h... yes
checking for getpeername... yes
checking for getpeername declaration in sys/types.h sys/socket.h... no
checking for getpgrp... yes
checking whether getpgrp takes no argument... yes
checking for getsockname... yes
checking for getsockname declaration in sys/types.h sys/socket.h... no
checking for getsockopt... yes
checking for getsockopt declaration in sys/types.h sys/socket.h... yes
checking for gettimeofday... yes
checking for gettimeofday declaration in time.h sys/time.h... yes
checking for gettimeofday number of arguments... 2
checking for getvfsent... yes
checking for initgroups... yes
checking for isascii... yes
checking for initgroups... (cached) yes
checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h...
yes
checking for ioctl... yes
checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... yes
checking for listen... yes
checking for listen declaration in sys/types.h sys/socket.h... yes
checking for lstat... yes
checking for lstat declaration in sys/types.h sys/stat.h... yes
checking for malloc... yes
checking for malloc declaration in stdlib.h... yes
checking for memmove... yes
checking for memmove... (cached) yes
checking for memmove declaration in string.h strings.h... yes
checking for memset... yes
checking for memset declaration in string.h... yes
checking for mkdir... yes
checking for mktemp... yes
checking for mktemp declaration in stdlib.h... yes
checking for mktime... yes
checking for mktime... (cached) yes
checking for mktime declaration in time.h sys/time.h... yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... no
checking for on_exit... yes
checking for openlog... yes
checking for openlog declaration in syslog.h... yes
checking for pclose... yes
checking for pclose declaration in stdio.h... yes
checking for perror... yes
checking for perror declaration in stdio.h... yes
checking for printf... yes
checking for printf declaration in stdio.h... yes
checking for putenv... yes
checking for puts... yes
checking for puts declaration in stdio.h... yes
checking for realloc... yes
checking for realloc declaration in stdlib.h... yes
checking for recvfrom... yes
checking for recvfrom declaration in sys/types.h sys/socket.h... no
checking for remove... yes
checking for remove declaration in stdio.h... yes
checking for rename... yes
checking for rename declaration in stdio.h... yes
checking for rewind... yes
checking for rewind declaration in stdio.h... yes
checking for rmdir... yes
checking for ruserok... yes
checking for ruserok declaration in netdb.h sys/socket.h libc.h... no
checking for select... yes
checking for select declaration in sys/types.h sys/socket.h sys/select.h
time.h sys/time.h... yes
checking for select() argument type... fd_set
checking for sendto... yes
checking for sendto declaration in sys/types.h sys/socket.h... yes
checking for setegid... yes
checking for setegid declaration in unistd.h... no
checking for seteuid... yes
checking for seteuid declaration in unistd.h... no
checking for setmntent... yes
checking for setresgid... no
checking for setresuid... no
checking for setpgid... yes
checking for setpgid... (cached) yes
checking for setpgid declaration in sys/types.h unistd.h... yes
checking for setpgrp... yes
checking whether setpgrp takes no argument... yes
checking for setpgrp... (cached) yes
checking for setpgrp declaration in sys/types.h unistd.h libc.h... yes
checking for setsockopt... yes
checking for setsockopt declaration in sys/types.h sys/socket.h... yes
checking for shmget... yes
checking for shmdt() argument type... void
checking for shmat... yes
checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h... yes
checking for shmctl... yes
checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h... yes
checking for shmdt... yes
checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h... yes
checking for shmget... (cached) yes
checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h... yes
checking for snprintf... yes
checking for snprintf declaration in stdio.h... yes
checking for vsnprintf... yes
checking for vsnprintf declaration in stdio.h... yes
checking for sigaction... yes
checking for sigemptyset... yes
checking for sigvec... yes
checking for socket... yes
checking for socket declaration in sys/types.h sys/socket.h... yes
checking for socketpair... yes
checking for socketpair declaration in sys/types.h sys/socket.h... yes
checking for sscanf... yes
checking for sscanf declaration in stdio.h... yes
checking for statfs... yes
checking for statvfs... yes
checking for strerror... yes
checking for strerror... (cached) yes
checking for strerror declaration in string.h... yes
checking for strftime... yes
checking for strftime... (cached) yes
checking for strftime... (cached) yes
checking for strftime declaration in time.h sys/time.h... yes
checking for strncasecmp... yes
checking for strncasecmp... (cached) yes
checking for strncasecmp declaration in string.h... no
checking for strstr... yes
checking for syslog... yes
checking for syslog declaration in syslog.h... yes
checking for system... yes
checking for system declaration in stdlib.h... yes
checking for time... yes
checking for time declaration in time.h sys/time.h... yes
checking for tolower... yes
checking for tolower declaration in ctype.h... yes
checking for toupper... yes
checking for toupper declaration in ctype.h... yes
checking for ungetc... yes
checking for ungetc declaration in stdio.h... yes
checking for vprintf... yes
checking for vfprintf... yes
checking for vfprintf declaration in stdio.h stdlib.h... yes
checking for vprintf... (cached) yes
checking for vprintf declaration in stdio.h stdlib.h... yes
checking for vsprintf... yes
checking for vsprintf declaration in stdio.h stdlib.h... yes
checking for wait4... yes
checking for waitpid... yes
checking for strcasecmp... yes
checking for strcasecmp... (cached) yes
checking for strcasecmp declaration in string.h... no
checking disk device prefixes... /dev/ - /dev/r
checking whether posix fcntl locking works... yes
updating cache ./config.cache
creating ./config.status
creating amplot/amcat.awk
creating amplot/amplot.sh
creating amplot/Makefile
creating changer-src/chg-manual.sh
creating changer-src/chg-multi.sh
creating changer-src/chg-mtx.sh
creating changer-src/chg-chs.sh
creating changer-src/chg-rth.pl
creating changer-src/chg-chio.pl
creating changer-src/chg-zd-mtx.sh
creating changer-src/Makefile
creating client-src/patch-system.sh
creating client-src/Makefile
creating common-src/versuff.c
creating common-src/Makefile
creating example/amanda.conf
creating example/Makefile
creating example/amanda.conf.chg-scsi
creating example/chg-scsi-linux.conf
creating example/chg-scsi-solaris.conf
creating example/chg-scsi-hpux.conf
creating man/amadmin.8
creating man/amanda.8
creating man/amcheck.8
creating man/amcheckdb.8
creating man/amcleanup.8
creating man/amdump.8
creating man/amflush.8
creating man/amlabel.8
creating man/amoverview.8
creating man/amrecover.8
creating man/amrmtape.8
creating man/amtoc.8
creating man/amverify.8
creating man/Makefile
creating man/amstatus.8
creating man/amreport.8
creating man/amgetconf.8
creating docs/Makefile
creating recover-src/Makefile
creating restore-src/Makefile
creating server-src/amcheckdb.sh
creating server-src/amcleanup.sh
creating server-src/amdump.sh
creating server-src/amfreetapes.sh
creating server-src/amoverview.pl
creating server-src/amrmtape.sh
creating server-src/amtoc.pl
creating server-src/amverify.sh
creating server-src/Makefile
creating server-src/amstatus.pl
creating tape-src/Makefile
creating config/Makefile
creating Makefile
creating config/config.h

If anyone has any idea what I'm doing wrong, or what I need to do to correct
the error I'd greatly appreciate it: and if you've made it this far into the
email, thanks for reading!

Thanks,
Todd Dombrowski ([EMAIL PROTECTED])

Reply via email to