Error compiling AMANDA sources on AIX 4.3 (`MNTTAB' undeclared)

2002-09-30 Thread Dombrowski, Todd

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 

Re: Error compiling AMANDA sources on AIX 4.3 (`MNTTAB' undeclared)

2002-09-30 Thread Doug Meredith

Todd,

 From: Dombrowski, Todd [EMAIL PROTECTED]
[...]
 I recently ran across an issue on a new AIX 4.3 server we installed a few
[...]
 getfsent.c: In function `open_fstab':
 getfsent.c:154: `MNTTAB' undeclared (first use in this function)

I don't have a solution for you, but I do have a little bit of info.

I have encountered the same problem trying to build the Amanda client under
CygWin.  It occurs with 2.4.2p2 and 2.4.3b4.  MNTTAB is a symbolic constant
that on RedHat 7.3 equates to /etc/fstab.  On RedHat this is defined in
/usr/include/mntent.h.  I hacked getfsent.c and inserted the macro directly
and was then able to compile without errors.  I haven't tried running it
yet.  Good luck.

Doug

--
Doug Meredith
Skyridge Systems Inc.
(506) 854-7997
www.skyridge.com




SUMMARY: Error compiling AMANDA sources on AIX 4.3 (`MNTTAB' undeclared)

2002-09-30 Thread Dombrowski, Todd

I forgot to search Google groups! Here's the answer that I found there, and
which worked for me as well:

From: Bernhard R. Erdmann ([EMAIL PROTECTED])
Subject: Re: Error compiling on AIX 4.3.3.0.09 
Newsgroups: list.amanda.users
View this article only 
Date: 2001-10-02 16:30:14 PST 
 

 I am trying to compile Amanda (2.4.2.p2) on an AIX 4.3.3 box to be used as
a
 client only (I used the --without-server configure option).  It dies
during
 the compile with this message: [...]
 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: 1254-004 The error code from the last command is 1.
[...]

A temporary solution is to kick away or to rename mntent.h to
mntent.h.ibmsucks. Don't forget to make distclean or rm config.cache
before another shot of ./configure --with-user=... ---with-group=...
--with-blabla=...
Nobody has come up with a general solution for AIX 4.3.3, yet. Though is
has bitten many Amanda users/admins on AIX 4.3.3. :-(



-Original Message-
From: Dombrowski, Todd [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 12:17 PM
To: '[EMAIL PROTECTED]'
Subject: Error compiling AMANDA sources on AIX 4.3 (`MNTTAB' undeclared)

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