[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
dynamic module problem
Hi,
I am using latest repository as of 5/31/2001 on solaris 2.7.
I am testing the openldap's dynamic module and I am stuck during
gmake install. I lifted the configuration flags from
http://www.openldap.org/lists/openldap-devel/200004/msg00055.html
but it still does not work for me.
During configuration, the Makefile in servers/slapd/shell-backends
ends up with
BUILD_OPT = "--enable-shell"
BUILD_SRV = mod
During gmake, the directory did not get processed but during
the gmake install it will try to process this line in Makefile
all-common: all-$(BUILD_SRV)
and it will get substituted into 'all-mod'. But, there is no
all-mod rule in the Makefile.
I don't know enough about the server code to know what it
should be.
Question 1,
should shell-backends be processed during gmake ?
Question 2,
or maybe that gmake install should not have attempted to
install the shell-backends ??
Question 3,
or maybe BUILD_SRV=mod is incorrect for shell-backend
because it is not really a back-XXX ??
thanks
mei
The options I am using are,
--enable-dynamic --enable-modules --disable-slurpd
--enable-shell --with-shell-module=dynamic
--enable-ldbm
and the Makefile under shell-backends is
# Generated automatically from srv.mk by configure.
# $OpenLDAP: pkg/ldap/build/top.mk,v 1.55 2001/05/29 01:29:57 kurt Exp $
## Copyright 1998-2000 The OpenLDAP Foundation, Redwood City, California, USA
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
## modification, are permitted only as authorized by the OpenLDAP
## Public License. A copy of this license is available at
## http://www.OpenLDAP.org/license.html or in file LICENSE in the
## top-level directory of the distribution.
##
PACKAGE= OpenLDAP
VERSION= 2.X
SHELL = /bin/sh
top_builddir = /nfs/globus2/MEI/nPROJ_CC/OpenLDAP/OpenLDAP-dev/ldap/built/ldbm_shell
srcdir = /nfs/globus2/MEI/nPROJ_CC/OpenLDAP/OpenLDAP-dev/tmp/ldap/servers/slapd/shell-backends
top_srcdir = /nfs/globus2/MEI/nPROJ_CC/OpenLDAP/OpenLDAP-dev/tmp/ldap
VPATH = /nfs/globus2/MEI/nPROJ_CC/OpenLDAP/OpenLDAP-dev/tmp/ldap/servers/slapd/shell-backends
prefix = /nfs/globus2/MEI/nPROJ_CC/OpenLDAP/OpenLDAP-dev/ldap/solaris2.7_ldbm_shell
exec_prefix = ${prefix}
ldap_subdir = /openldap
bindir = ${exec_prefix}/bin
datadir = ${prefix}/share$(ldap_subdir)
includedir = ${prefix}/include
infodir = ${prefix}/info
libdir = ${exec_prefix}/lib
libexecdir = ${exec_prefix}/libexec
localstatedir = ${prefix}/var
mandir = ${prefix}/man
moduledir = ${exec_prefix}/libexec$(ldap_subdir)
sbindir = ${exec_prefix}/sbin
sharedstatedir = ${prefix}/com
sysconfdir = ${prefix}/etc$(ldap_subdir)
schemadir = $(sysconfdir)/schema
EXEEXT =
OBJEXT = o
INSTALL = /nfs/globus2/MEI/nPROJ_CC/OpenLDAP/OpenLDAP-dev/tmp/ldap/build/install-sh -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_SCRIPT = ${INSTALL}
LINT = lint
5LINT = 5lint
MKDEP = $(top_srcdir)/build/mkdep $(MKDEPFLAG) \
-d "$(srcdir)" -c "$(MKDEP_CC)" -m "$(MKDEP_CFLAGS)"
MKDEP_CC = cc
MKDEP_CFLAGS = -xM
MKVERSION = $(top_srcdir)/build/mkversion -v "$(VERSION)"
LIBTOOL = $(SHELL) $(top_builddir)/libtool
LIBVERSION = 0:0:0
LTVERSION = -version-info $(LIBVERSION)
#We don't use our own shared libraries (yet)
#LTLINK = $(LIBTOOL) --mode=link $(CC) -rpath $(libdir) \
# $(CFLAGS) $(LDFLAGS)
LTLINK = $(LIBTOOL) --mode=link $(CC) \
$(CFLAGS) $(LDFLAGS)
LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL)
# Misc UNIX commands used in build environment
AR = ar
AWK = gawk
BASENAME = basename
CAT = cat
CHMOD = chmod
DATE = date
HOSTNAME = uname -n
LN = ln
LN_H = ln
LN_S = ln -s
MAKEINFO = makeinfo
MKDIR = mkdir -p
MV = mv
PWD = pwd
RANLIB = ranlib
RM = rm -f
SED = sed
# Misc UNIX commands used in programs
EDITOR = /usr/bin/vi
FINGER = /usr/bin/finger
SENDMAIL = /usr/lib/sendmail
# For manual pages
# MANCOMPRESS=@MANCOMPRESS@
# MANCOMPRESSSUFFIX=@MANCOMPRESSSUFFIX@
MANCOMPRESS=$(CAT)
MANCOMPRESSSUFFIX=
INCLUDEDIR= $(top_srcdir)/include
LDAP_INCPATH= -I$(LDAP_INCDIR) -I$(INCLUDEDIR)
LDAP_LIBADIR= $(top_builddir)/libraries
LDAP_LIBPATH= -L$(LDAP_LIBADIR)
LUTIL_LIBS =
LDIF_LIBS =
LDBM_LIBS = -ldb
LTHREAD_LIBS = -lrt
LDAP_LIBLBER_DEPEND = $(LDAP_LIBDIR)/liblber/liblber.la
LDAP_LIBLDAP_DEPEND = $(LDAP_LIBDIR)/libldap/libldap.la
LDAP_LIBLDIF_DEPEND = $(LDAP_LIBDIR)/libldif/libldif.a
LDAP_LIBLUTIL_DEPEND = $(LDAP_LIBDIR)/liblutil/liblutil.a
LDAP_LIBAVL_DEPEND = $(LDAP_LIBDIR)/libavl/libavl.a
LDAP_LIBLDBM_DEPEND = $(LDAP_LIBDIR)/libldbm/libldbm.a
LDAP_LIBLTHREAD_DEPEND = $(LDAP_LIBDIR)/libldap_r/libldap_r.la
LDAP_LIBDEPEND = $(LDAP_LIBLDAP_DEPEND) $(LDAP_LIBLBER_DEPEND) \
$(LDAP_LIBLDIF_DEPEND) $(LDAP_LIBLUTIL_DEPEND)
SLAPD_LIBDEPEND = $(LDAP_LIBDEPEND) $(LDAP_LIBAVL_DEPEND) \
$(LDAP_LIBLDBM_DEPEND) $(LDAP_LIBLTHREAD_DEPEND)
WRAP_LIBS =
# AutoConfig generated
AC_CC = cc
AC_CFLAGS = -g
AC_DEFS = -I/opt/globus-mds/install/libtool/include -I/opt/globus-mds/install/BerkeleyDB/include -I/opt/globus-mds/install/gsi/development/sparc-sun-solaris2.7_nothreads_standard_debug/include -I/opt/globus-mds/install/SASL/include -I/opt/globus-mds/install/openssl/include -I/opt/globus-mds/install/SASL/include # -DHAVE_CONFIG_H
AC_LDFLAGS = -L/opt/globus-mds/install/libtool/lib -L/opt/globus-mds/install/BerkeleyDB/lib -L/opt/globus-mds/install/gsi/development/sparc-sun-solaris2.7_nothreads_standard_debug/lib -lglobus_gss_assist -lglobus_gss -lglobus_gaa -L/opt/globus-mds/install/SASL/lib -lsasl -ldl -L/opt/globus-mds/install/openssl/lib -lssl -lcrypto
AC_LIBS = -lresolv -lgen -lnsl -lsocket
KRB4_LIBS =
KRB5_LIBS =
KRB_LIBS =
SASL_LIBS = -lsasl
TLS_LIBS = -lssl -lcrypto
AUTH_LIBS =
SECURITY_LIBS = $(SASL_LIBS) $(KRB_LIBS) $(TLS_LIBS) $(AUTH_LIBS)
MODULES_CPPFLAGS =
MODULES_LDFLAGS = -dlopen self
MODULES_LIBS = -lltdl
TERMCAP_LIBS = -ltermcap
SLAPD_PERL_LDFLAGS =
LINK_BINS_DYNAMIC = yes
SLAPD_SQL_LDFLAGS =
SLAPD_SQL_INCLUDES =
SLAPD_SQL_LIBS =
SLAPD_LIBS =
SLURPD_LIBS =
# Our Defaults
CC = $(AC_CC)
DEFS = $(LDAP_INCPATH) $(XINCPATH) $(XDEFS) $(AC_DEFS) $(DEFINES)
CFLAGS = $(AC_CFLAGS) $(DEFS)
LDFLAGS = $(LDAP_LIBPATH) $(AC_LDFLAGS) $(XLDFLAGS)
LIBS = $(XLIBS) $(XXLIBS) $(AC_LIBS) $(XXXLIBS)
all: all-common all-local FORCE
install: install-common install-local FORCE
clean: clean-common clean-local FORCE
veryclean: veryclean-common veryclean-local FORCE
depend: depend-common depend-local FORCE
# empty common rules
all-common:
install-common:
clean-common:
veryclean-common: clean-common FORCE
depend-common:
lint-common:
lint5-common:
# empty local rules
all-local:
install-local:
clean-local:
veryclean-local: clean-local FORCE
depend-local:
lint-local:
lint5-local:
veryclean: FORCE
$(RM) Makefile
$(RM) -r .libs
Makefile: Makefile.in $(top_srcdir)/build/top.mk
# empty rule for forcing rules
FORCE:
##---------------------------------------------------------------------------
# $OpenLDAP: pkg/ldap/servers/slapd/shell-backends/Makefile.in,v 1.6 2000/05/13 00:48:01 kurt Exp $
## Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
## COPYING RESTRICTIONS APPLY, see COPYRIGHT file
PROGRAMS = passwd-shell
SRCS = passwd-shell.c shellutil.c
XSRCS = pwd-version.c
OBJS = passwd-shell.o shellutil.o
LDAP_INCDIR= ../../../include
LDAP_LIBDIR= ../../../libraries
BUILD_OPT = "--enable-shell"
BUILD_SRV = mod
all-local-srv: $(PROGRAMS)
passwd-shell: pwd-version.o
$(CC) $(LDFLAGS) -o $@ $(OBJS) pwd-version.o $(LIBS)
pwd-version.c: $(OBJS) $(LDAP_LIBDEPEND)
@-$(RM) $@
$(MKVERSION) passwd-shell > $@
# $OpenLDAP: pkg/ldap/build/srv.mk,v 1.11 2000/05/13 00:40:17 kurt Exp $
## Copyright 1998-2000 The OpenLDAP Foundation
## COPYING RESTRICTIONS APPLY. See COPYRIGHT File in top level directory
## of this package for details.
##---------------------------------------------------------------------------
##
## Makefile Template for Servers
##
all-common: all-$(BUILD_SRV)
all-no lint-no 5lint-no depend-no install-no:
@echo "run configure with $(BUILD_OPT) to make $(PROGRAMS)"
clean-common: clean-srv FORCE
veryclean-common: veryclean-srv FORCE
lint-common: lint-$(BUILD_SRV)
5lint-common: 5lint-$(BUILD_SRV)
depend-common: depend-$(BUILD_SRV)
install-common: install-$(BUILD_SRV)
all-local-srv:
all-yes: all-local-srv FORCE
install-local-srv:
install-yes: install-local-srv FORCE
lint-local-srv:
lint-yes: lint-local-srv FORCE
$(LINT) $(DEFS) $(DEFINES) $(SRCS)
5lint-local-srv:
5lint-yes: 5lint-local-srv FORCE
$(5LINT) $(DEFS) $(DEFINES) $(SRCS)
clean-local-srv:
clean-srv: clean-local-srv FORCE
$(RM) $(PROGRAMS) $(XPROGRAMS) $(XSRCS) *.o a.out core .libs/* *.exe
depend-local-srv:
depend-yes: depend-local-srv FORCE
$(MKDEP) $(DEFS) $(DEFINES) $(SRCS)
veryclean-local-srv:
veryclean-srv: clean-srv veryclean-local-srv
Makefile: $(top_srcdir)/build/srv.mk