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

More errors



Dear LDAP

I now ge strange things:

I do make and get as mailed before, I then do "make" and "make" again - then
I get a listed below.

Rgds from a bevildered admin

Henrik

(cd .libs && rm -f libldap.so && ln -s libldap.so.2.0.5 libldap.so)
(cd .libs && rm -f libldap.so && ln -s libldap.so.2.0.5 libldap.so)
ar cru .libs/libldap.a  bind.o open.o result.o error.o compare.o search.o
controls.o messages.o references.o extended.o cyrus.o modify.o add.o
modrdn.o delete.o abandon.o ufn.o cache.o getfilter.o sasl.o sbind.o kbind.o
unbind.o friendly.o free.o disptmpl.o srchpref.o dsparse.o tmplout.o sort.o
getdn.o getentry.o getattr.o getvalues.o addentry.o request.o os-ip.o url.o
sortctrl.o vlvctrl.o init.o options.o print.o string.o util-int.o schema.o
charray.o tls.o dn.o os-local.o dnssrv.o utf-8.o version.o 
ranlib .libs/libldap.a
creating libldap.la
(cd .libs && rm -f libldap.la && ln -s ../libldap.la libldap.la)
rm -f ../libldap.la
d=`pwd`; d=`basename $d`; cd ..; ln -s $d/libldap.la libldap.la;
t=`basename libldap.la .la`.a; rm -f $t; ln -s $d/.libs/$t $t
if test "no" = "yes"; then  d=`pwd`; d=`basename $d`; b=`basename libldap.la
.la`;  cd .libs; t=`echo $b*.so`; (cd ../.. ; rm -f $t;  ln -s $d/.libs/$t
$t);  if test "so" != dll; then  t=`echo $b.so.?`; cd ../.. ;  rm -f $t;  ln
-s $d/.libs/$t $t;  fi  fi
cc -pthread -I../../include        -I../../include     -c apitest.c
/bin/sh /mfs/openldap-2.0.7/libtool --mode=link cc  -pthread -I../../include
-I../../include     -L/mfs/openldap-2.0.7/libraries   -o apitest apitest.o
-lldap -llber -llutil       
cc -pthread -I../../include -I../../include -L/mfs/openldap-2.0.7/libraries
-o apitest apitest.o -lldap -llber -llutil
ld:
Unresolved:
ldap_get_option
ldap_memfree
*** Exit 1
Stop.
*** Exit 1
Stop.
*** Exit 1
Stop.






----------------------------------------------------------------------------
--------------------

 Dear LDAP

I still get the following errors (this time I put in the stuff from
"Platform Hints").

I use Berkly DB 2.7.7 as sugested in "Chosing Berkly DB" documentation. 

Rgds

Henrik


============================================================================
==
OpenLDAP
============================================================================
==

release=openldap-release
/usr/local/bin/wget -cN  --retr-symlinks
ftp://ftp.openldap.org/pub/OpenLDAP/$release.tgz
gunzip -c $release.tgz | tar xf -

release=`gunzip -c $release.tgz | tar tf - | sed '1q' | cut -d'/' -f1`
cd $release

CC=cc CFLAGS=-pthread ./configure
make depend
make


=================================================================
The following show the LDAP error:
=================================================================
  Entering subdirectory liblber
cc -pthread -I../../include        -I../../include     -c etest.c
/bin/sh /mfs/openldap-2.0.7/libtool --mode=link cc  -pthread -I../../include
-I../../include     -L/mfs/openldap-2.0.7/libraries   -o etest etest.o
-llber   
cc -pthread -I../../include -I../../include -L/mfs/openldap-2.0.7/libraries
-o etest etest.o -llber
ld:
Unresolved:
ber_set_option
ber_sockbuf_alloc
ber_sockbuf_free
ber_sockbuf_add_io
ber_sockbuf_io_fd
*** Exit 1
Stop.
*** Exit 1
Stop.
*** Exit 1
Stop.
# 

============================================================================
==
Berkly DB
============================================================================
==

PATH=$PATH:/usr/local/bin
export PATH

########################
# Berkly DB
########################

# Options: -c (continue), -N (download only if newer), --retr-symlinks
(follow links)
# OpenLDAP uses 2.7.x the series
dir=2.7.7
release=db-$dir
/usr/local/bin/wget -cN  --retr-symlinks
http://www.sleepycat.com/update/$dir/$release.tar.gz
gunzip -c $release.tar.gz | tar xfv -

cd $release/build_unix
../dist/configure
make
make install