* Pieter Bowman <bowman AT math.utah DOT edu> [20070507 13:27]:
>
> >> ...
> >> First go at amanda-2.5.2 on a system running irix-6.5.x
> >> and compile fails with the error:
> >> ...
>
> This is the case on both IRIX and OSF/1. These compilers can't
> handle:
>
> #define vstrallocf(...)
> debug_vstrallocf(__FILE__,__LINE__,__VA_ARGS__)
>
> The patch for sockaddr_storage seems to work with the addition of
> these two definitions in amanda.h:
>
>
> /* Needed on SGI IRIX 6.5 */
> #ifdef WORKING_IPV6
> #define INET6
> #endif
>
> #ifndef INET_ADDRSTRLEN
> #define INET_ADDRSTRLEN 16
> #endif
>
> Pieter
Thanks Jean-Louis and Pieter but still no go:
Making all in gnulib
make[1]: Entering directory `/stuff/amanda-source/amanda-2.5.2/gnulib'
rm -f stdbool.h-t stdbool.h
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
sed -e 's/@''HAVE__BOOL''@/0/g' < ./stdbool_.h; \
} > stdbool.h-t
mv stdbool.h-t stdbool.h
rm -f string.h-t string.h
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
sed -e 's|@''ABSOLUTE_STRING_H''@|"///usr/include/string.h"|g' \
-e 's|@''HAVE_DECL_MEMMEM''@|1|g' \
-e 's|@''HAVE_MEMPCPY''@|1|g' \
-e 's|@''HAVE_DECL_MEMRCHR''@|1|g' \
-e 's|@''HAVE_STPCPY''@|1|g' \
-e 's|@''HAVE_STPNCPY''@|1|g' \
-e 's|@''HAVE_DECL_STRNCASECMP''@|1|g' \
-e 's|@''HAVE_STRCHRNUL''@|1|g' \
-e 's|@''HAVE_DECL_STRDUP''@|1|g' \
-e 's|@''HAVE_STRNDUP''@|1|g' \
-e 's|@''HAVE_DECL_STRNDUP''@|1|g' \
-e 's|@''HAVE_DECL_STRNLEN''@|1|g' \
-e 's|@''HAVE_STRPBRK''@|1|g' \
-e 's|@''HAVE_STRSEP''@|1|g' \
-e 's|@''HAVE_DECL_STRTOK_R''@|1|g' \
-e 's|@''REPLACE_STRCASECMP''@|0|g' \
-e 's|@''REPLACE_STRSTR''@|0|g' \
-e 's|@''REPLACE_STRCASESTR''@|0|g' \
< ./string_.h; \
} > string.h-t
mv string.h-t string.h
/usr/local/bin/make all-am
make[2]: Entering directory `/stuff/amanda-source/amanda-2.5.2/gnulib'
source='lock.c' object='lock.lo' libtool=yes \
DEPDIR=.deps depmode=sgi /bin/sh ../config/depcomp \
/bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I.
-I../config -I/usr/freeware/include -D_GNU_SOURCE -c -o lock.lo
lock.c
mkdir .libs
cc -DHAVE_CONFIG_H -I. -I. -I../config -I/usr/freeware/include -D_GNU_SOURCE
-c lock.c -Wp,-MDupdate,.deps/lock.TPlo -DPIC -o .libs/lock.o
cc -DHAVE_CONFIG_H -I. -I. -I../config -I/usr/freeware/include -D_GNU_SOURCE
-c lock.c -Wp,-MDupdate,.deps/lock.TPlo -o lock.o >/dev/null 2>&1
source='asnprintf.c' object='asnprintf.lo' libtool=yes \
DEPDIR=.deps depmode=sgi /bin/sh ../config/depcomp \
/bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I.
-I../config -I/usr/freeware/include -D_GNU_SOURCE -c -o asnprintf.lo
asnprintf.c
cc -DHAVE_CONFIG_H -I. -I. -I../config -I/usr/freeware/include -D_GNU_SOURCE
-c asnprintf.c -Wp,-MDupdate,.deps/asnprintf.TPlo -DPIC -o .libs/asnprintf.o
cc -DHAVE_CONFIG_H -I. -I. -I../config -I/usr/freeware/include -D_GNU_SOURCE
-c asnprintf.c -Wp,-MDupdate,.deps/asnprintf.TPlo -o asnprintf.o >/dev/null 2>&1
source='gai_strerror.c' object='gai_strerror.lo' libtool=yes \
DEPDIR=.deps depmode=sgi /bin/sh ../config/depcomp \
/bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I.
-I../config -I/usr/freeware/include -D_GNU_SOURCE -c -o
gai_strerror.lo gai_strerror.c
cc -DHAVE_CONFIG_H -I. -I. -I../config -I/usr/freeware/include -D_GNU_SOURCE
-c gai_strerror.c -Wp,-MDupdate,.deps/gai_strerror.TPlo -DPIC -o
.libs/gai_strerror.o
cc-1084 cc: ERROR File = /usr/include/sys/socket.h, Line = 66
The indicated declaration has an invalid combination of type specifiers.
typedef int socklen_t;
^
cc-1101 cc: ERROR File = getaddrinfo.h, Line = 37
"addrinfo" has already been declared in the current scope.
struct addrinfo
^
cc-1143 cc: ERROR File = getaddrinfo.h, Line = 116
Declaration is incompatible with "int getaddrinfo(const char *, const char *,
const struct addrinfo *, struct addrinfo **)" (declared at line 148
of "/usr/include/netdb.h").
extern int getaddrinfo (const char *restrict nodename,
^
cc-1143 cc: ERROR File = getaddrinfo.h, Line = 126
Declaration is incompatible with "void freeaddrinfo(struct addrinfo *)"
(declared at line 146 of "/usr/include/netdb.h").
extern void freeaddrinfo (struct addrinfo *ai);
^
cc-1143 cc: ERROR File = getaddrinfo.h, Line = 140
Declaration is incompatible with "int getnameinfo(const struct sockaddr *,
int, char *, int, char *, int, unsigned int)" (declared at line 144
of "/usr/include/netdb.h").
extern int getnameinfo(const struct sockaddr *restrict sa, socklen_t salen,
^
5 errors detected in the compilation of "gai_strerror.c".
make[2]: *** [gai_strerror.lo] Error 1
make[2]: Leaving directory `/stuff/amanda-source/amanda-2.5.2/gnulib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/stuff/amanda-source/amanda-2.5.2/gnulib'
make: *** [all-recursive] Error 1
jf
--
<° ><
|