weird problem compiling sac for libc6
i need sac for libc6 so i can convert my dialin server to hamm without
losing my monthly usage stats scripts , so i decided to recompile it
myself.
i've fixed up a few problems with it (complaints about redefinitions
of things in utmp.h, etc), but am running into a problem which i can't
solve (i'm not a real programmer, i just pretend to be one sometimes).
this code in sac.c
132 struct user {
133 char user[UT_NAMESIZE+1];
134 char line[UT_LINESIZE+1];
135 char host[UT_HOSTSIZE+1];
136 time_t in;
137 struct user *nxt;
138 } *usr = NULL;
139
140 struct tacacs3_utmp {
141 char ut_line[8];
142 char ut_user[8];
143 char ut_host[16];
* 144 time_t ut_time;
145 } ;
146
147 struct tacacs4_utmp {
148 char ut_line[8];
149 char ut_user[8];
150 char ut_host[16];
* 151 time_t ut_time;
152 char ut_comment[16];
153 };
(i have marked the error lines with a '*')
produces the following error when i run 'make sac'
root@siva [12:44:06] sac-1.6# make sac
gcc -Wall -O2 -fomit-frame-pointer -DRADIUS_DIR=\"/var/log/radacct\" -DDETAIL_NAME=\"detail\" -c sac.c
sac.c:144: warning: no semicolon at end of struct or union
sac.c:144: parse error before `.'
sac.c:151: warning: no semicolon at end of struct or union
sac.c:151: parse error before `.'
sac.c:153: parse error before `}'
sac.c: In function `doittacacs3':
sac.c:764: storage size of `t' isn't known
sac.c:770: sizeof applied to an incomplete type
sac.c:770: sizeof applied to an incomplete type
sac.c:770: sizeof applied to an incomplete type
sac.c:764: warning: unused variable `t'
sac.c: In function `doittacacs4':
sac.c:809: storage size of `t' isn't known
sac.c:815: sizeof applied to an incomplete type
sac.c:815: sizeof applied to an incomplete type
sac.c:815: sizeof applied to an incomplete type
sac.c:809: warning: unused variable `t'
make: *** [sac.o] Error 1
anyone got any idea why gcc is complaining about 'no semicolon at end of
struct or union'? Why are lines 144 and 151 a problem, but line 136 is
OK?
relevant versions of stuff:
||/ Name Version Description
+++-===============-==============-============================================
ii gcc 2.7.2.3-3 The GNU C compiler.
ii cpp 2.7.2.3-3 The GNU C preprocessor.
ii libc6 2.0.5c-0.1 The GNU C library version 2 (run-time files)
ii libc6-dev 2.0.5c-0.1 The GNU C library version 2 (development fil
craig
ps: if i can get this working i'll either make a non-maintainer release or
pass on my fixes to Vincent Renardias.
pps: i'm working on sac version 1.6. Vincent's package is 1.5, but it has
exactly the same error (not surprising, it has exactly the same structs)
--
craig sanders
networking consultant Available for casual or contract
temporary autonomous zone system administration tasks.
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[email protected] .
Trouble? e-mail to [email protected] .
Reply to: