This is the same error as in
  http://groups.yahoo.com/group/amanda-hackers/message/5401
the same patch is attached here -- could you let us know if it fixes the
compile?

Dustin

On Mon, May 07, 2007 at 12:05:44PM -0400, Jean-Francois Malouin wrote:
> First go at amanda-2.5.2 on a system running irix-6.5.x
> and compile fails with the error:
> 
> 
> cc-1040 cc: ERROR File = amanda.h, Line = 623
>   An identifier is expected.
> 
>   #define vstrallocf(...)
> debug_vstrallocf(__FILE__,__LINE__,__VA_ARGS__)
>                      ^
> 
> cc-1204 cc: WARNING File = amanda.h, Line = 957
>   The indicated declaration is not visible outside of the function.
> 
>   extern int check_security(struct sockaddr_storage *, char *,
> unsigned long, char **);
>                                    ^
> 
> 1 error detected in the compilation of "alloc.c".
> make[1]: *** [alloc.lo] Error 1
> make[1]: Leaving directory
> `/stuff/amanda-source/amanda-2.5.2/common-src'
> make: *** [all-recursive] Error 1
> 
> 
> jf
> -- 
> <? ><

-- 
        Dustin J. Mitchell
        Storage Software Engineer, Zmanda, Inc.
        http://www.zmanda.com/
diff -u -r --show-c-function --new-file 
--exclude-from=/home/martinea/src.orig/amanda.diff 
--ignore-matching-lines='$Id:' amanda-2.5.2/common-src/amanda.h 
amanda-2.5.2.sockaddr_storage/common-src/amanda.h
--- amanda-2.5.2/common-src/amanda.h    2007-04-10 06:56:00.000000000 -0400
+++ amanda-2.5.2.sockaddr_storage/common-src/amanda.h   2007-05-04 
16:40:18.000000000 -0400
@@ -268,6 +268,9 @@ struct iovec {
 #include <arpa/inet.h>
 #endif
 
+#define sockaddr_storage sockaddr_in
+#define ss_family sin_family
+
 /* Calculate the length of the data in a struct sockaddr_storage.
  * THIS IS A HACK.
  *

Reply via email to