[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: weird problem compiling sac for libc6

Craig Sanders <cas@taz.net.au> writes:

>     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 } ;

> sac.c:144: warning: no semicolon at end of struct or union
> sac.c:144: parse error before `.'

> 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?

Namespace polution.  There is no "." in 144, so the reasoning is that
either time_t or ut_time is defined as a macro in a header file.
"time_t" is a pretty standard type, so it must be ut_time.

  grep ut_time /usr/include/*.h


/usr/include/utmpbits.h:# define ut_time        ut_tv.tv_sec

One solution would be to give "ut_time" a different name in those


TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .

Reply to: