Amanda-Users

Re: Help compile tapetype.c

2002-09-20 01:32:27
Subject: Re: Help compile tapetype.c
From: "Neil" <neil-on-amanda AT restricted.dyndns DOT org>
To: Gene Heskett <gene_heskett AT iolinc DOT net>
Date: Fri, 20 Sep 2002 00:22:50 -0500
I have downloaded from sourceforge. I tried make tapetype in tape-src direcoty. This is what I got.
# make tapetype
cc -O -pipe   tapetype.c  -o tapetype
In file included from /usr/local/src-backup/cvs/amanda/common-src/amanda.h:219,
               from tapetype.c:32:
/usr/include/netinet/in.h:233: syntax error before `in_addr_t'
/usr/include/netinet/in.h:285: syntax error before `u_char'
In file included from /usr/include/netinet/in.h:467,
from /usr/local/src-backup/cvs/amanda/common-src/amanda.h:219,
               from tapetype.c:32:
/usr/include/netinet6/in6.h:122: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:144: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:149: syntax error before `u_int32_t'
/usr/include/netinet6/in6.h:612: syntax error before `*'
/usr/include/netinet6/in6.h:614: syntax error before `*'
/usr/include/netinet6/in6.h:614: warning: data definition has no type or storage class
/usr/include/netinet6/in6.h:615: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:616: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:631: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:636: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:638: syntax error before `u_int8_t'
tapetype.c: In function `main':
tapetype.c:226: warning: assignment makes pointer from integer without a cast tapetype.c:233: warning: assignment makes pointer from integer without a cast
tapetype.c:283: `optind' undeclared (first use in this function)
tapetype.c:283: (Each undeclared identifier is reported only once
tapetype.c:283: for each function it appears in.)
tapetype.c:288: `O_RDWR' undeclared (first use in this function)
*** Error code 1 Stop in /usr/local/src-backup/cvs/amanda/tape-src.