[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: issues in current heimdal
[Comments at the bottom]
On Thu, 31 Aug 2000, Derrick J Brashear wrote:
> 1) if you configure krb4 support and you have a previous heimdal or
> something else that installs roken at the same path (/usr/local/include)
> you lose. this is because:
>
> gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include
> -I/usr/local/include -I./../lib/krb5 -Wall -Wmissing-prototypes
> -Wpointer-arith -Wbad-function-cast -Wmissing-declarations
> -Wnested-externs -I../lib/roken -I../lib/roken -O -c kadmind.c
> happens because of:
> INCLUDES = -I$(top_builddir)/include $(INCLUDE_readline) $(INCLUDE_krb4)
> -I$(srcdir)/../lib/krb5
> in kadmin/Makefile
> (from Makefile.am's
> INCLUDES += $(INCLUDE_readline) $(INCLUDE_krb4) -I$(srcdir)/../lib/krb5
> )
>
> the generated COMPILE rule ends up e.g.
> COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS)
> $(AM_CFLAGS) $(CFLAGS)
>
> and the include of ../lib/roken comes from AM_CFLAGS
>
> I'm not sure how to get the COMPILE command generated to be written
> differently.
The "real" answer is either for $(CPPFLAGS_roken) to be added to INCLUDES
(this is in kadmin/Makefile.am) or for $(INCLUDE_readline) $(INCLUDE_krb4)
to be added to AM_CFLAGS after $(CPPFLAGS_roken) presumably by saying e.g.
AM_CFLAGS += $(INCLUDE_readline) $(INCLUDE_krb4)
in kadmin/Makefile.am
Either should work. Both are sleazy solutions but appaear to be all that
will fit in the framework of automake.
-D