[5455] in Kerberos

home help back first fref pref prev next nref lref last post

Re: installation problem

daemon@ATHENA.MIT.EDU (Christopher Hylands)
Mon Jul 3 12:40:16 1995

To: kerberos@MIT.EDU
Date: 03 Jul 1995 16:25:12 GMT
From: cxh@markov.berkeley.edu (Christopher Hylands)

In article <3t7sjn$a7i@cville-srv.wam.umd.edu> kuper@anywhere (William Kupersanin) writes:


   I am having trouble making krb5.4 under Linux. Particularly, I am
   getting a syntax error compiling std_rqs.c in the util/ss directory.

   This is the error that I get. 

   cc  -DNO_YYLINENO=1 -DHAS_STRDUP=1 -DUSE_DIRENT_H=1
   -DSTDARG_PROTOTYPES=1 -I. -I./ -I./.. -I./../et -I..   -c std_rqs.c -o
   std_rqs.o

   std_rqs.c:1: parse error before `ssu00001'


   Std_rqs.c consists of nothing more than this ....

   static ss_request_entry ssu00001[] = {
       { 0, 0, 0, 0 }
       };
   ss_request_table  = { 2, ssu00001 };

   Does anyone have any ideas about what is going on here?

-----
When the first line of a C file gets an error, this often points to
wierdness with the .h files.  Another problem could be that
ss_request_entry is a macro somewhere else that is getting substituted.

Use the -E flag to produce cpp output, and look for something odd in
the output.  The gcc manpage says:
     -E    Stop after the preprocessing stage;  do  not  run  the
          compiler  proper.   The  output  is preprocessed source
          code, which is sent to the standard output.
          GCC ignores input files which don't require preprocess-
          ing.

You could do

   cc -E -DNO_YYLINENO=1 -DHAS_STRDUP=1 -DUSE_DIRENT_H=1 \
   -DSTDARG_PROTOTYPES=1 -I. -I./ -I./.. -I./../et -I..   -c std_rqs.c \
	> std_rqs.e

Then look for the 'ssu00001' line in std_rqs.e

-Christopher
--
Christopher Hylands			University of California
cxh@eecs.berkeley.edu 			558 Cory Hall #1770
ph: (510)643-9841 fax:(510)642-2739	Berkeley, CA 94720-1770
home: (510)526-4010 (if busy -4068)	(Office: 493 Cory. US Mail: 558 Cory.)

home help back first fref pref prev next nref lref last post