[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Compiling for the Win32 platform?

Hello again,

Anybody have an example/sample of a typical slapd.def file I can look at, please?
My MSYS build apparently did not create one automatically and it failed because slapd.def did not exist. I did a "touch slapd.def" and it seemed to build to the finish, but it's hard to believe this is correct.



Joe Flowers wrote:
Hello all-

Well, I've made it much further after running into several more walls, but now I've run into this one.

Any ideas on how to get past this? It occurred while running "make" inside of MSYS on MS Windows XP.

"make[2]: *** [slapd.def] Error 2"

It may be related to the earlier error:
"/bin/sh: -c: line 1: syntax error near unexpected token `;'"

Many thanks,



> mae@JLF /home/Joe/openldap-2.3.35
> $ make
> ...........
cd back-relay; make - --unix -w all
make[3]: Entering directory `/home/Joe/openldap-2.3.35/servers/slapd/back-relay'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/Joe/openldap-2.3.35/servers/slapd/back-relay'

cd overlays; make - --unix -w static
make[3]: Entering directory `/home/Joe/openldap-2.3.35/servers/slapd/overlays'
make[3]: Nothing to be done for `static'.
make[3]: Leaving directory `/home/Joe/openldap-2.3.35/servers/slapd/overlays'
/bin/sh: -c: line 1: syntax error near unexpected token `;'
/bin/sh: -c: line 1: `for i in ; do path=`expr "$i" : "-L\(.*\)"`; if test $? != 0; then continue; fi; paths="$paths $path"; done; objs=""; for i in main.o globals.o bconfig.o config.o daemon.o connection.o search.o filter.o add.o cr.o attr.o entry.o backend.o backends.o result.o operation.o dn.o compare.o modify.o delete.o modrdn.o ch_malloc.o value.o ava.o bind.o unbind.o abandon.o filterentry.o phonetic.o acl.o str2filter.o aclparse.o init.o user.o repl.o lock.o controls.o extended.o kerberos.o passwd.o schema.o schema_check.o schema_init.o schema_prep.o schemaparse.o ad.o at.o mr.o syntax.o oc.o saslauthz.o oidm.o starttls.o index.o sets.o referral.o root_dse.o sasl.o module.o mra.o mods.o sl_malloc.o zn_malloc.o limits.o operational.o matchedValues.o cancel.o syncrepl.o backglue.o backover.o ctxcsn.o ldapsync.o frontend.o slapadd.o slapcat.o slapcommon.o slapdn.o slapindex.o slappasswd.o slaptest.o slapauth.o slapacl.o component.o aci.o alock.o nt_svc.o ../../libraries/liblutil/slapdmsg.res version.o libbackends.a liboverlays.a ../../libraries/liblunicode/liblunicode.a ../../libraries/librewrite/librewrite.a ../../libraries/liblutil/liblutil.a ../../libraries/libldap_r/libldap_r.la ../../libraries/liblber/liblber.la -lrpcrt4 -ldb-4.5 -lregex -lws2_32 ; do obj="" ; case $i in -l*) done="" ; base=`expr "$i" : "-l\(.*\)"`; for p in $paths ; do for ext in la dll dll.a a ; do path=$p/lib$base.$ext; test ! -f $path && continue; if test $ext = la ; then for t in dlname old_library ; do line=`grep "^$t=" $path`; lib=`expr "$line" : "[^']*'\(.*\)'"`; test -n "$lib" && test -f $p/$lib && path=$p/$lib && break; done; test $t = dlname && ext=dll; test $t = old_library && ext=a; fi; if test $ext = a ; then obj=$path; fi; done=done; break; done; test -n "$done" && break; done; test -z "$obj" && continue; ;; *.la) if test -n "-static"; then base=`expr "$i" : ".*/\(.*\).la"`; path=`expr "$i" : "\(.*/\).*"`; obj=$path.libs/$base.a; fi; ;; *.dll.a) ;; *.o | *.a) obj=$i; esac; objs="$objs $obj"; done; echo dlltool --exclude-symbols main,ServiceMain@8 --export-all-symbols --output-def slapd.def.tmp $objs; dlltool --exclude-symbols main,ServiceMain@8 --export-all-symbols --output-def slapd.def.tmp $objs;'
make[2]: *** [slapd.def] Error 2
make[2]: Leaving directory `/home/Joe/openldap-2.3.35/servers/slapd'
make[1]: *** [all-common] Error 1
make[1]: Leaving directory `/home/Joe/openldap-2.3.35/servers'
make: *** [all-common] Error 1

mae@JLF /home/Joe/openldap-2.3.35