Installing SAP on Linux snckrb5.so unable to compile.
Vusa Moyo
vusa.moyo at gmail.com
Tue Feb 21 08:24:21 EST 2006
Hello Guys,
I dont know if this is the right place to ask but I am rying to compile the
bc_snc_adapter101 on a Linux Server(running SAP Instance) to try and make
SNC work for SSO Single Sign On) with Windows Clients(SAPgui.exe's)/
I keep gettign a compile error when I try to run make, and the compile
exists.
can anyone of you please point me in the right direction on how I can get
the snckrb5.so to work
These are my particulars, including the error i am getting..
any help is greatly appreciated;;
devbwdb0:~/single_sign_on/sncadapt # uname -s
Linux
devbwdb0:~/single_sign_on/sncadapt # uname -a
Linux devbwdb0 2.6.5-7.244-pseries64 #1 SMP Mon Dec 12 18:32:25 UTC 2005
ppc64 ppc64 ppc64 GNU/Linux
devbwdb0:~/single_sign_on/sncadapt # more /etc/SuSE-release
SUSE LINUX Enterprise Server 9 (ppc)
VERSION = 9
PATCHLEVEL = 3
devbwdb0:~/single_sign_on/sncadapt #
devbwdb0:~/single_sign_on/sncadapt # make
./build."`uname -s`" make do-all
make[1]: Entering directory `/root/single_sign_on/sncadapt'
make[1]: Circular snckrb5 <- snckrb5 dependency dropped.
make[1]: Circular .o <- snckrb5 dependency dropped.
cc -g -DXDEBUG=1 -ldl -lnsl -lpthread -lc -ldl -o .c
/usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/../../../../lib/crt1.o(.rodata+0x4):../sysdeps/powerpc/powerpc32/elf/start.S:63:
undefined reference to `main'
collect2: ld returned 1 exit status
make[1]: *** [.c] Error 1
make[1]: Leaving directory `/root/single_sign_on/sncadapt'
make: *** [all] Error 2
devbwdb0:~/single_sign_on # cd sncadapt/
devbwdb0:~/single_sign_on/sncadapt # ls
. CVS Makefile~ build.AIX build.LINUX~ build.OSF1
gssapi_2.h gssntlm.lib platform.h sncgss.exp sncgss32.def sncntlm.c
sncsecud.c
.. Makefile README build.HP-UX build.Linux build.SunOS gssntlm.dll
make.bat sncadapt.c sncgss.h snckrb5.c sncntlm.o sncspkm1.c
devbwdb0:~/single_sign_on/sncadapt # more build.Linux
#!/bin/sh
OBJ=".o"
CC="cc"
CFLAGS="-g -DXDEBUG=1"
RM="rm -f"
EXE=""
LD="$CC"
LDFLAGS="-ldl -lnsl -lpthread -lc"
LDTARGET='-o $@'
XD=""
LDLIBS="-ldl"
SHEXT=".so"
SHFLAGS="-fPIC"
LINK_SHARED='$(CC) -shared -Wl,-export-dynamic -Wl,-soname,$@'
LINK_SHARED_END=""
# VENLIB="-lgssapi_krb5"
VENLIB="-L/usr/local/lib -lgssapi_krb5"
if [ "$VENLIB" = "" ] ; then
echo "***"
echo "*** Please edit $0 and define VENLIB to link your"
echo "*** GSS-API v2 shared library"
echo "***"
exit 1
fi
export OBJ CC CFLAGS RM EXE LDLIBS LD LDTARGET LDFLAGS XD
export SHEXT SHFLAGS LINK_SHARED LINK_SHARED_END VENLIB
"$@"
devbwdb0:~/single_sign_on/sncadapt # more Makefile
##
## $Id: Makefile,v 1.2 1999/08/24 14:37:57 d019080 Exp $
##
## (C) Copyright 1999 SAP AG Walldorf
##
## SAP AG DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
## INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
## EVENT SHALL SAP AG BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
## DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
## PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
## ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
## OF THIS SOFTWARE.
##
MDEFS= CC=cc CFLAGS=-g RM="rm -f" OBJ=.o EXE= LD=cc LDFLAGS=-g LIBS=-ldl XD=
LDTARGET='-o $@'
TAIL="`uname -s`"
BUILD=./build.$(TAIL)
#XNAME = sncntlm
# Working with Kerberos: : Added by Vusa Moyo
XNAME = snckrb5
SRCS = $(XNAME).c
ALL_HDRS= gssapi_2.h platform.h sncgss.h
OBJS= $(XD)$(XNAME)$(OBJ)
TARGET= $(XD)$(XNAME)$(SHEXT)
.c.o:
$(CC) $(SHFLAGS) $(CFLAGS) -c $<
### targets
all:
$(BUILD) $(MAKE) do-all
clean:
$(BUILD) $(MAKE) do-clean
do-all: $(TARGET)
z $(XOBJS): $(SRCS)
$(CC) $(SHFLAGS) $(CFLAGS) -c $(SRCS)
$(TARGET): $(OBJS)
$(LINK_SHARED) $(LDTARGET) $(LDFLAGS) $(OBJS) $(VENLIB)
$(LINK_SHARED_END)
do-clean: $(WIN_CLEAN)
$(RM) core
$(RM) $(XD)*$(OBJ)
$(RM) $(TARGET)
win-clean:
del 2>NUL *.pdb
del 2>NUL *.idb
del 2>NUL *.plg
del 2>NUL *.ncb
del 2>NUL *.opt
del 2>NUL $(XD)*.sbr
del 2>NUL $(XD)*.lib
del 2>NUL $(XD)*.exp
del 2>NUL $(XD)*.pdb
del 2>NUL $(XD)*.ilk
### dependencies
$(XD)$(XNAME)$(OBJ): $(XNAME).c $(ALL_HDRS)
Kindest Regards
Vusa Moyo
More information about the Kerberos
mailing list