Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: completions with users (-u) and NIS+



Vincent Lefevre wrote:

> 
> > Try to add -DHAVE_NIS_PLUS to DEFS in Src/Makefile, remove zle_tricky.o and
> > recompile.
> 
> I get the following errors:
> 
> Ok make
> gcc -c -I.. -I. -I.  -DHAVE_CONFIG_H -DHAVE_NIS_PLUS -Wall -Wno-implicit -Wmissing-prototypes -O2 -DDEBUG zle_tricky.c
> zle_tricky.c:1567: conflicting types for `match_username'
> zle_tricky.c:1552: previous declaration of `match_username'
> make: *** [zle_tricky.o] Error 1
> zsh: exit 2     make
> 
> If I replace line 1549 by:
> #if defined(HAVE_NIS) && !defined(HAVE_NIS_PLUS)
> there's no error any longer, but it does not change anything.
> 

There are some more checks for HAVE_NIS. I would try it with changing
the define HAVENIS in config.h (in the main directory) to define
HAVE_NIS_PLUS. Alternatively you can just add define HAVE_NIS_PLUS and
undef HAVE_NIS (!) in zle_tricky.c.


Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx




Messages sorted by: Reverse Date, Date, Thread, Author