Bugzilla – Bug 946871
cldapsdk samples can (still) not compile
Last modified: 2018-08-17 18:01:03 UTC
1st thank you for releasing the new ldapsdk :-) Then - it is depressing to see that testing is not getting this problem. The sdk on linux simply cannot compile, so no-one tested this. More so, the error is depressingly simple. (And i am getting old and grumpy :-) Howto reproduce - and resolve download novell-cldap-devel-2015.07.14-1linux64.tar.gz from ftp://sdk.provo.novell.com/ndk/cldap/builds/2015/novell-cldap-devel-2015.07.14-1linux64.tar.gz unzip to your favorite location export LD_LIBRARY_PATH=<your path>/cldapsdk/lib64/ cd <your path>/cldapsdk/samples # /cldapsdk/samples # make Makefile:47: *** missing separator. Stop. now edit the file Makefile - add the needed space in line 47 : diff Makefile.org Makefile 47c47 < ifeq($(uname),x86_64) --- > ifeq ($(uname),x86_64) now the compilation starts fine # /cldapsdk/samples # make cc -g -I../include -DUNIX -c -o CheckBind.o CheckBind.c cc -o CheckBind CheckBind.o -L../lib64 -lldapsdk -lpthread -lresolv -ldl cc -g -I../include -DUNIX -c -o addUserToGroup.o addUserToGroup.c cc -o addUserToGroup addUserToGroup.o -L../lib64 -lldapsdk -lpthread -lresolv -ldl cc -g -I../include -DUNIX -c -o addentry.o addentry.c cc -o addentry addentry.o -L../lib64 -lldapsdk -lpthread -lresolv -ldl cc -g -I../include -DUNIX -c -o addentry1.o addentry1.c cc -o addentry1 addentry1.o -L../lib64 -lldapsdk -lpthread -lresolv -ldl cc -g -I../include -DUNIX -c -o bind.o bind.c cc -o bind bind.o -L../lib64 -lldapsdk -lpthread -lresolv -ldl cc -g -I../include -DUNIX -c -o cmpattrs.o cmpattrs.c cc -o cmpattrs cmpattrs.o -L../lib64 -lldapsdk -lpthread -lresolv -ldl cc -g -I../include -DUNIX -c -o debug.o debug.c cc -o debug debug.o -L../lib64 -lldapsdk -lpthread -lresolv -ldl cc -g -I../include -DUNIX -c -o delentry.o delentry.c cc -o delentry delentry.o -L../lib64 -lldapsdk -lpthread -lresolv -ldl cc -g -I../include -DUNIX -c -o dyngroup.o dyngroup.c