Amanda-Users

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

2004-07-08 15:19:29
Subject: problems compiling amanda 2.4.4p3 or p2 on AIX 5.2...
From: Anthony Nguyen <amnguyen AT uci DOT edu>
To: amanda-users AT amanda DOT org
Date: Thu, 8 Jul 2004 12:13:44 -0700
<x-tad-bigger>Hello everyone. Is there anyone who can help me with this little problem I am having during compilation? I have the latest amanda source, 2.4.4p3 and trying to compile it on an AIX 5.2 system. I run into this same error with the 2.4.4p2 source as well... so what is it that I need to tweak or 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 box an 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 -MT alloc.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 binaries compiled with AIX 5.1, but I don't believe that to be a problem since I get the same error message compiling amanda on AIX 4.3 with a different version of gcc)

Feedback and answers much appreciated!

Thank you in advance,
Anthony Nguyen
wannabe AIX administrator</x-tad-bigger>
<Prev in Thread] Current Thread [Next in Thread>