On Thu, 5 Sep 1996, R. Brian Brown wrote:
> I downloaded the source from transarc (afs-contrib/tools/xdm), but when
> I try to compile it, I get errors about this header file:
>
> hp71280:/afs/web.mci.com/arch/src/xlock # make
> gcc -O -I/MIT/X11R5/include -Dhpux -DSYSV -D_HPUX_SOURCE
> -DDEF_FILESEARCHPATH=\"/usr/local/lib/X11/%T/%N%S\" -DSTARSIZE=2
> -I/usr/afsws/include -DAFS_AUTH -c xlock.c
> In file included from /usr/afsws/include/afs/auth.h:19,
> from /usr/afsws/include/afs/kautils.h:30,
> from xlock.c:130:
> /usr/afsws/include/rx/rxkad.h:103: parse error before `u_int32'
> /usr/afsws/include/rx/rxkad.h:103: warning: no semicolon at end of
> struct or union
>
>
> rxkad.h looks fine to me! I get a similar error message if I use the
> paid-for HP C compiler,
> using -Ae (for extended ansi compatibility, or -Aa for just ansi).
>
> I don't know what the problem is - anyone have any ideas?
>
>
> Thanks,
>
> Brian
>
I compiled the CMU version for Solaris 2.4 from afs-contrib/tools/xlock a
long time ago. My notes on the compilation are as follows.
Comments: Modified source slightly, add following line to xlock.c
#include <afs/stds.h> before <afs/kautils.h>
Use /usr/ucb/cc. Transarc version included compiles
without errors, but always core dumps on keypress.
Including <afs/stds.h> defines u_int32 and your error will hopefully go
away.
- Mike
----------------------------------------------------------------------------
Mike Burns UNIX Systems Group
[EMAIL PROTECTED] Center for Academic Computing
(814) 863-5606 The Pennsylvania State University