You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by 贾晓建 <jx...@cn.fujitsu.com> on 2009/03/25 06:29:07 UTC

how to use apr-debug and apr-util-debug

Hello everyone!

  I want to use apr-debug and apr-util-debug to get the debug information of
apr and apr-util!

  But I do not know how to use it? Is there any reference?

 

  I have installed apr-debug-1.2.11-1mdv2008.0.i586.rpm and
apr-util-debug-1.2.10-1mdv2008.0.i586.rpm in my computer, and have wrote the
pc files by myself, the two pc files is as follows:

  

    Apr-debug.pc

prefix=/usr/lib/debug/usr/

libdir=${prefix}/lib

APR_MAJOR_VERSION=1

includedir=/opt/AptanaJaxer/Apache22/include

Name: APR

Description: The Apache Portable Runtime library

Version: 1.2.11

Libs: -L${libdir} -lapr-${APR_MAJOR_VERSION} -lrt -lcrypt  -lpthread �Cldl

Cflags: -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g
-pthread -I${includedir}

 

Apr-util-debug.pc

prefix=/usr/lib/debug/usr/

libdir=${prefix}/lib

APRUTIL_MAJOR_VERSION=1

includedir=/opt/AptanaJaxer/Apache22/include

 

Name: APR Utils

Description: Companion library for APR

Version: 1.2.10

# assume that apr-util requires libapr of same major version

Requires: apr-debug

Libs: -L${libdir} -laprutil-${APRUTIL_MAJOR_VERSION} -lexpat

Cflags: -I${includedir}

 

And the problem is:

/usr/lib/debug/usr//lib/libaprutil-1.so: undefined reference to
`ldap_get_option'

/usr/lib/debug/usr//lib/libaprutil-1.so: undefined reference to
`ldap_set_option'

/usr/lib/debug/usr//lib/libapr-1.so: undefined reference to `uuid_generate'

/usr/lib/debug/usr//lib/libaprutil-1.so: undefined reference to `ldap_init'

/usr/lib/debug/usr//lib/libaprutil-1.so: undefined reference to
`ldap_start_tls_s'

/usr/lib/debug/usr//lib/libaprutil-1.so: undefined reference to `db_create'

/usr/lib/debug/usr//lib/libaprutil-1.so: undefined reference to
`ldap_err2string'

/usr/lib/debug/usr//lib/libaprutil-1.so: undefined reference to
`db_strerror'

 

 

 

 

Thanks a lot!