Bug 946871 - cldapsdk samples can (still) not compile
Summary: cldapsdk samples can (still) not compile
Status: NEW
Alias: None
Product: NDS SDK
Classification: Novell Products
Component: LDAP C SDK (show other bugs)
Version: Nov NDK
Hardware: Other OES - Linux
: P5 - None : Normal
Target Milestone: ---
Assignee: pradeep rathi
QA Contact: Nesbeth Fernandez
URL:
Whiteboard:
Keywords:
Depends on: 599743
Blocks:
  Show dependency treegraph
 
Reported: 2015-09-22 07:46 UTC by Thomas Nielsen
Modified: 2018-08-17 18:01 UTC (History)
5 users (show)

See Also:
Found By: Customer
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Nielsen 2015-09-22 07:46:39 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