apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 贾晓建 <...@cn.fujitsu.com>
Subject how to use apr-debug and apr-util-debug
Date Wed, 25 Mar 2009 05:29:07 GMT
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!

 


Mime
View raw message