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

Re: where to look first? tracing openldap issues on OSX 10.2

--On Friday, September 20, 2002 5:32 PM -0700 "Kurt D. Zeilenga" <Kurt@OpenLDAP.org> wrote:

I assume the poster wanted to develop OpenLDAP Software.
This is, after all, the developer's list.

Software use wise, I am sure there are some who might
prefer the latest OpenLDAP release over what Apple
chooses to package.  The platform hints serves these
folks as well.


Good assumption ... the 1st step to using the Mac as a dev platform, tho', is to get the silly thing to build ...

I agree that "it should build on 10.2 with a minimum of hassle" ... unfortunately for the moment, i'm not that lucky ....

i perused the offered references (thnx!), alas still with no luck  ....

fyi, while i'm still pluggin away, my latest (failed) build env is pretty straighforward:

% setenv CVSROOT :pserver:anonymous@cvs.OpenLDAP.org:/repo/OpenLDAP
% cvs login
Password: (enter OpenLDAP)
% cvs -z3 checkout -P ldap
% cvs logout

setenv CFLAGS "-fno-common -L/usr/local/BerkeleyDB.4.0/lib"
setenv LDFLAGS "-I/usr/local/BerkeleyDB.4.0/include"
setenv DYLD_LIBRARY_PATH "/System/Library/Frameworks: /usr/include: /usr/local/include: /usr/local/BerkeleyDB.4.0/include"

a make with:

make veryclean ; ./configure --prefix=/usr/local/ldap --mandir=/usr/local/man --enable-slapd --disable-debug --enable-dynamic --with-tls=yes --with-threads=yes --enable-ipv6 --with-cyrus-sasl --disable-bdb --enable-ldbm --with-ldbm-api=berkeley --disable-slurpd ; make


make veryclean ; ./configure --prefix=/usr/local/ldap --mandir=/usr/local/man --enable-slapd --disable-debug --enable-dynamic --with-tls=yes --with-threads=yes --enable-ipv6 --with-cyrus-sasl --enable-bdb --with-bdb-module=static --disable-slurpd ; make

fails at:

creating libldap.la
(cd .libs && rm -f libldap.la && ln -s ../libldap.la libldap.la)
cc -fno-common -L/usr/local/BerkeleyDB.4.0/lib -I../../include -I../../include -c -o apitest.o apitest.c
/bin/sh /usr/ports/ldap/libtool --mode=link cc -static -fno-common -L/usr/local/BerkeleyDB.4.0/lib -I/usr/local/BerkeleyDB.4.0/include -o apitest apitest.o libldap.la ../../libraries/liblber/liblber.la ../../libraries/liblutil/liblutil.a -lsasl2 -lssl -lcrypto
cc -fno-common -I/usr/local/BerkeleyDB.4.0/include -o apitest apitest.o -L/usr/local/BerkeleyDB.4.0/lib ./.libs/libldap.a /Volumes/workspace/ports/ldap/libraries/liblber/.libs/liblber.a ../../libraries/liblber/.libs/liblber.a ../../libraries/liblutil/liblutil.a -lsasl2 -lssl -lcrypto
ld: Undefined symbols:
make[2]: *** [apitest] Error 1
make[1]: *** [all-common] Error 1
make: *** [all-common] Error 1

any ideas which file is looking for but not finding libc? i haven't found it yet .... or determined whether its a problem with dynamic libs, etc .....