[OpenAFS] pam_openafs_session source
Richard Wallace
rwallace@a--i--m.com
12 Jun 2003 12:13:56 -0700
> > the /usr/include directory but then get this error when compiling:
> > gcc -c -I/usr/include -DHAVE_CONFIG_H -DLIBDIR='"/usr/local/lib"' -I.
> > -I. -g -O2 lifetime.c
> > lifetime.c:120: conflicting types for `krb_life_to_time'
> > krbafs_locl.h:143: previous declaration of `krb_life_to_time'
> > lifetime.c:146: conflicting types for `krb_time_to_life'
> > krbafs_locl.h:135: previous declaration of `krb_time_to_life'
> > make: *** [lifetime.o] Error 1
Alright, I managed to take care of the configure problem (I think) and
think I have found the source of the compile problem above.
When doing configure I needed to specify
CPPFLAGS=-I/usr/include/kerberosIV on the command line instead of
CFLAGS.
So, the configure went alright, but the same compile problem popped up.
The problem seems to be on lines 134-136 and 142-144 of krbafs_locl.h.
They are as follows:
134 #ifndef HAVE_KRB_TIME_TO_LIFE
135 int krb_time_to_life(unsigned long start, unsigned long end);
136 #endif
137
...
141
142 #ifndef HAVE_KRB_LIFE_TO_TIME
143 unsigned long krb_life_to_time(unsigned long start, int life);
144 #endif
This is causing my compilation problems. I see these lines when doing
the configure:
checking for krb_time_to_life... no
checking for krb_life_to_time... no
But what is missing that these are not being found?
Thanks for the help.
--
Richard Wallace
AIM, Inc. (www.a--i--m.com)
Information Systems Consultants
"Providing New Technology,
the Old-Fashioned Way"