Amanda-Users

Re: problems compiling amanda 2.4.4p3 or p2 on AIX 5.2...

2004-07-20 12:24:02
Subject: Re: problems compiling amanda 2.4.4p3 or p2 on AIX 5.2...
From: Anthony Valentine <amv AT sbsalaska DOT com>
To: Anthony Nguyen <amnguyen AT uci DOT edu>
Date: Tue, 20 Jul 2004 08:11:16 -0800
Hello Anthony,

Looks like no one responded to your message, so I'll tell you what I
know.  Unfortunately, I don't have a solution, just some info and a
possible work-around, however you may find it helpful, so here goes.

The problem you are having is due to using GCC on AIX with Amanda.  When
you run the Amanda's configure, these two flags are added to the compile
options:

gcc: unrecognized option `-q32'
gcc: unrecognized option `-qlonglong'

GCC doesn't like these.

I have manually removed these from the make file, but this didn't allow
the compile to finish.

Another option which has been reported to work is to use IBM's C
compiler.  At $1000 per copy, it isn't cheap to test, but it may be an
option if you are desperate.  Do note that I tried this and it didn't
work for me.  The compile finished without errors, but the binaries
didn't work.  YMMV.

The final solution that I found was to use Amanda 2.4.2p2.  This is
latest version that I have gotten to work on AIX.

The following link should pull up the original thread about this.
http://groups.yahoo.com/group/amanda-users/messagesearch/39116?query=aix

I hope this helps you out some.  If you do manage to find a solution to
this problem, please let me know!


Thanks!

Anthony Valentine
Asst. IT Manager
Spenard Builders Supply
amv AT sbsalaska DOT com

On Thu, 2004-07-08 at 11:13, Anthony Nguyen wrote:
> Hello everyone.  Isthere anyone who can help me with this little
> problem I am havingduring compilation?  I have the latest amanda
> source, 2.4.4p3 andtrying to compile it on an AIX 5.2 system.  I run
> into this same errorwith the 2.4.4p2 source as well... so what is it
> that I need to tweakor add??
> 
> ./configure --without-server --with-user=amanda
> --with-group=disk--prefix=/usr/local/amanda
> 
> messages to note:
> 
> <<--PASTED-->>
> 
> configure: WARNING: *** Neither shmget() nor mmap() found!
> configure: WARNING: *** This system will not support the Amanda
> server.
> 
> <<--END PASTE-->>
> 
> * should not be a problem seeing that I only want to make this AIX
> boxan amanda client.
> 
> now, when running make, it craps out at the very start
> with this:
> 
> <<--PASTED-->>
> 
> Making all in config
> /home/amnguyen/amanda-2.4.4p3/config
> make[1]: Entering directory `/home/amnguyen/amanda-2.4.4p3/config'
> make  all-am
> make[2]: Entering directory `/home/amnguyen/amanda-2.4.4p3/config'
> make[2]: Nothing to be done for `all-am'.
> make[2]: Leaving directory `/home/amnguyen/amanda-2.4.4p3/config'
> make[1]: Leaving directory `/home/amnguyen/amanda-2.4.4p3/config'
> Making all in common-src
> /home/amnguyen/amanda-2.4.4p3/common-src
> make[1]: Entering directory `/home/amnguyen/amanda-2.4.4p3/common-src'
> if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I.
> -I.-I../config -I./../regex-src  -q32 -D_LARGE_FILES -qlonglong    
> -q32-D_LARGE_FILES -qlonglong -g -O2   -MT alloc.lo -MD -MP
> -MF".deps/alloc.Tpo" -c -o alloc.lo alloc.c; \
> then mv -f ".deps/alloc.Tpo" ".deps/alloc.Plo"; else rm
> -f".deps/alloc.Tpo"; exit 1; fi
> mkdir .libs
> gcc -DHAVE_CONFIG_H -I. -I. -I../config -I./../regex-src
> -q32-D_LARGE_FILES -qlonglong -q32 -D_LARGE_FILES -qlonglong -g -O2
> -MTalloc.lo -MD -MP -MF .deps/alloc.Tpo -c alloc.c  -DPIC
> gcc: unrecognized option `-q32'
> gcc: unrecognized option `-qlonglong'
> gcc: unrecognized option `-q32'
> gcc: unrecognized option `-qlonglong'
> In file included from alloc.c:33:
> amanda.h:793: error: conflicting types for `bind'
> /usr/include/sys/socket.h:433: error: previous declaration of `bind'
> amanda.h:809: error: conflicting types for `connect'
> /usr/include/sys/socket.h:434: error: previous declaration of
> `connect'
> amanda.h:873: error: conflicting types for `gethostname'
> /usr/include/unistd.h:817: error: previous declaration of
> `gethostname'
> amanda.h:892: error: conflicting types for `getsockopt'
> /usr/include/sys/socket.h:435: error: previous declaration
> of`getsockopt'
> amanda.h:898: error: conflicting types for `gettimeofday'
> /usr/include/sys/time.h:158: error: previous declaration
> of`gettimeofday'
> amanda.h:944: error: conflicting types for `memmove'
> /usr/local/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.3/include/string.h:118:error:
>  previous declaration of `memmove'
> amanda.h:1020: error: conflicting types for `sendto'
> /usr/include/sys/socket.h:439: error: previous declaration of `sendto'
> amanda.h:1056: error: conflicting types for `setpgrp'
> /usr/include/unistd.h:825: error: previous declaration of `setpgrp'
> amanda.h:1061: error: conflicting types for `setsockopt'
> /usr/include/sys/socket.h:440: error: previous declaration
> of`setsockopt'
> In file included from alloc.c:33:
> amanda.h:1123: error: conflicting types for `strncasecmp'
> /usr/local/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.3/include/string.h:238:error:
>  previous declaration of `strncasecmp'
> make[1]: *** [alloc.lo] Error 1
> make[1]: Leaving directory `/home/amnguyen/amanda-2.4.4p3/common-src'
> make: *** [all-recursive] Error 1
> 
> <<--END PASTE-->>
> 
> I'm using GNU tar, sed, bison, m4, texinfo... GCC 3.3.3 (the
> binariescompiled with AIX 5.1, but I don't believe that to be a
> problem sinceI get the same error message compiling amanda on AIX 4.3
> with adifferent version of gcc)
> 
> Feedback and answers much appreciated!
> 
> Thank you in advance,
> Anthony Nguyen
> wannabe AIX administrator
-- 
Anthony Valentine
Asst. IT Manager
Spenard Builders Supply
amv AT sbsalaska DOT com


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