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

FunctionCheck to monitor memory management of openLDAP ???



Hi !

I'm trying to get FunctionCheck to monitor memory
management of openLDAP and Cyrus-SASL (I'm using
Digest-MD5 mechanism) during a rigorous ldapsearch
from clients.

I tried 2 versions of FunctionCheck:
- FunctionCheck-3.0
- fnccheck1.5.3 (from Howard Chu)
but I couldn't get either of them to be linked with
openldap or cyrus-sasl 

When trying to link FunctionCheck-3.0 and Cyrus-SASL
(I want to mainly focus on cyrus-sasl memory
allocation and deallocation). 'Configure' was
successful but 'make' failed

[root@localhost cyrus-sasl]# CFLAGS="-g
-finstrument-functions -I/usr/local/include 
-Ddlopen=fc_redirect_dlopen 
-Ddlclose=fc_redirect_dlclose 
-Ddlsym=fc_redirect_dlsym  -D fork=fc_redirect_fork 
-Dpthread_create=fc_redirect_pthread_create"
./configure --enable-sample
--with-openssl=/usr/lib/ssl --without-bdb
--enable-digest --enable-plain --disable-otp
--disable-krb4 --disable-gssapi --without-dbpath
--without-dblib

[root@localhost cyrus-sasl]#make
....
make[2]: Leaving directory
`/usr/local/cyrus-sasl-2.1.15/lib'
Making all in utils
make[2]: Entering directory
`/usr/local/cyrus-sasl-2.1.15/utils'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include  
-I/usr/lib/ssl/include  -Wall -W -Wall -g
-finstrument-functions -I/usr/local/include 
-Ddlopen=fc_redirect_dlopen 
-Ddlclose=fc_redirect_dlclose 
-Ddlsym=fc_redirect_dlsym  -D fork=fc_redirect_fork 
-Dpthread_create=fc_redirect_pthread_create -c
dbconverter-2.c
/bin/sh ../libtool --mode=link gcc  -Wall -W -Wall -g
-finstrument-functions -I/usr/local/include 
-Ddlopen=fc_redirect_dlopen 
-Ddlclose=fc_redirect_dlclose 
-Ddlsym=fc_redirect_dlsym  -D fork=fc_redirect_fork 
-Dpthread_create=fc_redirect_pthread_create
-L/usr/local/lib -Wl,-rpath,/usr/local/lib 
-L/usr/lib/ssl/lib -o dbconverter-2  dbconverter-2.o
../sasldb/libsasldb.la ../lib/libsasl2.la  -lresolv 
-lresolv
mkdir .libs
gcc -Wall -W -Wall -g -finstrument-functions
-I/usr/local/include -Ddlopen=fc_redirect_dlopen
-Ddlclose=fc_redirect_dlclose
-Ddlsym=fc_redirect_dlsym -D fork=fc_redirect_fork
-Dpthread_create=fc_redirect_pthread_create
-L/usr/local/lib -Wl,-rpath,/usr/local/lib
-L/usr/lib/ssl/lib -o .libs/dbconverter-2
dbconverter-2.o ../sasldb/.libs/libsasldb.al -lresolv
../lib/.libs/libsasl2.so -ldl -lresolv -lresolv
-lresolv -lresolv -Wl,--rpath -Wl,/usr/local/lib
../lib/.libs/libsasl2.so: undefined reference to
`fc_redirect_dlopen'
../lib/.libs/libsasl2.so: undefined reference to
`fc_redirect_dlclose'
../lib/.libs/libsasl2.so: undefined reference to
`fc_redirect_dlsym'
collect2: ld returned 1 exit status
make[2]: *** [dbconverter-2] Error 1
make[2]: Leaving directory
`/usr/local/cyrus-sasl-2.1.15/utils'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/usr/local/cyrus-sasl-2.1.15'
make: *** [all-recursive-am] Error 2

When trying to link FunctionCheck3.0 with
openldap-2.1.25, 'configure' failed and ask me to
enable-x-compiling if I want cross compilation. but
that's not my intention !!

Lastly, I tried using FunctionCheck1.5.3 from Howard
Chu, but I couldn't even get it installed properly: 
# CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
# make
....
libtool: ltconfig version `' does not match ltmain.sh
version `1.3.3'
Fatal configuration error.  See the libtool docs for
more information.
make[2]: *** [fncmalloc.lo] Error 1
make[2]: Leaving directory
`/usr/local/fnccheck/src/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/fnccheck/src'
make: *** [all-recursive] Error 1

Would anybody who has successfully used FunctionCheck
with either OpenLDAP or Cyrus-SASL share the tips how
to get it work ?

Maybe there are some other recommended profilers that
are pretty easy to be used with openldap or Cyrus ?

Any comments, suggestions will be very appreciated...

Thank you,
lara

=====
------------------------------------------------------------------------------------ 
La vie, voyez-vous, ca n'est jamais si bon ni si mauvais qu'on croit
                                                                        - Guy de Maupassant -
------------------------------------------------------------------------------------

__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/