Amanda-Users

Re: Amanda 2.4.4 does not compile on AIX 4.3.3 ML 11

2003-04-21 20:42:08
Subject: Re: Amanda 2.4.4 does not compile on AIX 4.3.3 ML 11
From: Bernhard Erdmann <be AT berdmann DOT de>
To: amanda-users list <amanda-users AT amanda DOT org>
Date: Tue, 22 Apr 2003 00:47:14 +0200
Hi,

I had no success in using Amanda 2.4.4, but 2.4.3 works for me.

To sum up my experiments:

- environment: AIX 4.3.3 ML 11, gcc 2.95.3 and autoconf 2.13, both installed with filesets from http://bullfreeware.com/

- backup server is Amanda 2.4.2p2 on Linux

- Jon LaBadie helped me (thanks Jon!) to discover autoconf giving wrong CFLAGS for large file support to configure (-q32 ... -qlonglong) suitable for IBM's C compiler xlC but not for gcc.

- checked ChangeLog of latest autoconf 2.57 for large file support, no indication of having fixed this bug

- used selfmade gcc 3.2.1, no difference

- after disabling a line in configure regarding large file support on AIX [1], I was able to compile Amanda 2.4.4

- but sendsize (Amanda 2.4.4) dumps core in /tmp/amanda while doing actual backups, gdb's backtrace in [2], I have no clue what's going wrong

- Amanda 2.4.3 with the same hack in configure compiles well and delivers backups (tested with my super fast backup drive /dev/null ;-) - a real backup will be done this night)


[1]

[root@rs6k-1 rs6k-1]# gdiff -u amanda-2.4.4/configure{~,}
--- amanda-2.4.4/configure~     Tue Feb 25 03:43:24 2003
+++ amanda-2.4.4/configure      Mon Apr 21 12:29:53 2003
@@ -4330,7 +4330,7 @@
                        esac
                        ;;
   *-ibm-aix*)
-                       GETCONF_LFS="XBS5_ILP32_OFFBIG"
+#                      GETCONF_LFS="XBS5_ILP32_OFFBIG"
                        DUMP_PROGRAMS="backup "$DUMP_PROGRAMS

 cat >>confdefs.h <<\_ACEOF


[2]

[root@rs6k-1 amanda]# gdb /usr/local/amanda/libexec/sendsize core
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc-ibm-aix4.3.2.0"...
Core was generated by `sendsize'.
Program terminated with signal 11, Segmentation fault.
b#0  0xd00915e8 in debug_alloc () at alloc.c:218
218     alloc.c: No such file or directory.
(gdb) bt
#0  0xd00915e8 in debug_alloc () at alloc.c:218
#1  0xd00955cc in parse_g_options (
    str=0x2000d930 "maxdumps=2;hostname=rs6000-1;", verbose=1)
    at client_util.c:607
#2  0x10000acc in main (argc=-804693200, argv=0x25f) at sendsize.c:165
#3  0x100001dc in __start ()


<Prev in Thread] Current Thread [Next in Thread>