[ldapvi] error compiling ldapvi

Stefan Michael Guenther s.guenther at in-put.de
Fri Apr 27 12:11:02 CEST 2012


> > In file included from ldapvi.c:23:
> > common.h:276: Fehler: In Konflikt stehende Typen für »getline«
> > /usr/include/stdio.h:673: Anmerkung: Vorherige Deklaration von »getline« 
> war hier
> > make: *** [ldapvi.o] Fehler 1
> 
> Looks like a duplicate definition: try removing line 276 in common.h.
>
did that, but only the error changed:

gcc -c -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -Wno-parentheses -o ldapvi.o ldapvi.c
ldapvi.c: In Funktion »change_mechanism«:
ldapvi.c:473: Warnung: Ãbergabe des Arguments 1 von »getline« von inkompatiblem Zeigertyp
/usr/include/stdio.h:673: Anmerkung: expected »char ** __restrict__« but argument is of type »char *«
ldapvi.c:473: Warnung: Ãbergabe des Arguments 2 von »getline« von inkompatiblem Zeigertyp
/usr/include/stdio.h:673: Anmerkung: expected »size_t * __restrict__« but argument is of type »char *«
ldapvi.c:473: Fehler: Zu wenige Argumente für Funktion »getline«
make: *** [ldapvi.o] Fehler 1
 
> BTW, ldapvi RPMs exist in EPEL, if you need them.
> 
Thanks, downloaded and installed it!

Stefan




More information about the ldapvi mailing list