apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 51244] Incorrect aprlib will be used for aprutil
Date Mon, 23 May 2011 14:15:53 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=51244

--- Comment #4 from Krisztian Banhidy <krisztian.banhidy@it-services.hu> 2011-05-23
14:15:53 UTC ---
objdump for libapr:
[root@kbanhidy2 apache]# objdump -p
/pkg/products/apache.test/2.2.18/apr/lib/libapr-1.so.0

/pkg/products/apache.test/2.2.18/apr/lib/libapr-1.so.0:     file format
elf64-x86-64

Program Header:
    LOAD off    0x0000000000000000 vaddr 0x0000000000000000 paddr
0x0000000000000000 align 2**21
         filesz 0x000000000002a72c memsz 0x000000000002a72c flags r-x
    LOAD off    0x000000000002a730 vaddr 0x000000000022a730 paddr
0x000000000022a730 align 2**21
         filesz 0x0000000000001128 memsz 0x0000000000001228 flags rw-
 DYNAMIC off    0x000000000002a8b0 vaddr 0x000000000022a8b0 paddr
0x000000000022a8b0 align 2**3
         filesz 0x00000000000001e0 memsz 0x00000000000001e0 flags rw-
EH_FRAME off    0x000000000002504c vaddr 0x000000000002504c paddr
0x000000000002504c align 2**2
         filesz 0x000000000000126c memsz 0x000000000000126c flags r--
   STACK off    0x0000000000000000 vaddr 0x0000000000000000 paddr
0x0000000000000000 align 2**3
         filesz 0x0000000000000000 memsz 0x0000000000000000 flags rw-

Dynamic Section:
  NEEDED      libuuid.so.1
  NEEDED      librt.so.1
  NEEDED      libcrypt.so.1
  NEEDED      libpthread.so.0
  NEEDED      libdl.so.2
  NEEDED      libc.so.6
  SONAME      libapr-1.so.0
  INIT        0xa9b0
  FINI        0x23b88
  GNU_HASH    0x158
  STRTAB      0x4e80
  SYMTAB      0xf08
  STRSZ       0x2c37
  SYMENT      0x18
  PLTGOT      0x22ab30
  PLTRELSZ    0x20b8
  PLTREL      0x7
  JMPREL      0x88f8
  RELA        0x80b8
  RELASZ      0x840
  RELAENT     0x18
  VERNEED     0x8008
  VERNEEDNUM  0x3
  VERSYM      0x7ab8
  RELACOUNT   0x44

Version References:
  required from libdl.so.2:
    0x09691a75 0x00 08 GLIBC_2.2.5
  required from libpthread.so.0:
    0x09691972 0x00 05 GLIBC_2.3.2
    0x09691a75 0x00 04 GLIBC_2.2.5
    0x0d696914 0x00 03 GLIBC_2.4
  required from libc.so.6:
    0x09691973 0x00 09 GLIBC_2.3.3
    0x0d696913 0x00 07 GLIBC_2.3
    0x09691972 0x00 06 GLIBC_2.3.2
    0x09691a75 0x00 02 GLIBC_2.2.5


I did a recompile and moved everthing under apache.test, but same script and
parameters are used.

under apr source doing search:

[root@kbanhidy2 apr-1.4.5]# grep -R /usr/lib64/ .
[root@kbanhidy2 apr-1.4.5]# grep -R libapr* .
./libapr-1.la:# libapr-1.la - a libtool library file
./.libs/libapr-1.la:# libapr-1.la - a libtool library file
./.libs/libapr-1.lai:# libapr-1.la - a libtool library file
[root@kbanhidy2 apr-1.4.5]#


under apr-util doing search:

[root@kbanhidy2 apr-1.4.5]# grep -R /usr/lib64/ ../apr-util-1.3.11/
../apr-util-1.3.11/libaprutil-1.la:dependency_libs=' -L/usr/lib
/usr/lib64/libexpat.la /pkg/products/apache.test/2.2.18/apr/lib/libapr-1.la
-luuid -lrt -lcrypt -lpthread -ldl'
../apr-util-1.3.11/.libs/libaprutil-1.la:dependency_libs=' -L/usr/lib
/usr/lib64/libexpat.la /pkg/products/apache.test/2.2.18/apr/lib/libapr-1.la
-luuid -lrt -lcrypt -lpthread -ldl'
../apr-util-1.3.11/.libs/libaprutil-1.lai:dependency_libs=' -L/usr/lib
/usr/lib64/libexpat.la /pkg/products/apache.test/2.2.18/apr/lib/libapr-1.la
-luuid -lrt -lcrypt -lpthread -ldl'
[root@kbanhidy2 apr-1.4.5]# grep -R libapr* ../apr-util-1.3.11/
../apr-util-1.3.11/Makefile:APRUTIL_LIBS = -lexpat
/pkg/products/apache.test/2.2.18/apr/lib/libapr-1.la -luuid -lrt -lcrypt
-lpthread -ldl
../apr-util-1.3.11/config.status:S["APRUTIL_LIBS"]="-lexpat
/pkg/products/apache.test/2.2.18/apr/lib/libapr-1.la -luuid -lrt -lcrypt
-lpthread -ldl"
../apr-util-1.3.11/config.status:S["APR_LIBS"]="
/pkg/products/apache.test/2.2.18/apr/lib/libapr-1.la -luuid -lrt -lcrypt 
-lpthread -ldl"
../apr-util-1.3.11/libaprutil-1.la:dependency_libs=' -L/usr/lib
/usr/lib64/libexpat.la /pkg/products/apache.test/2.2.18/apr/lib/libapr-1.la
-luuid -lrt -lcrypt -lpthread -ldl'
../apr-util-1.3.11/.libs/libaprutil-1.la:dependency_libs=' -L/usr/lib
/usr/lib64/libexpat.la /pkg/products/apache.test/2.2.18/apr/lib/libapr-1.la
-luuid -lrt -lcrypt -lpthread -ldl'
../apr-util-1.3.11/.libs/libaprutil-1.lai:dependency_libs=' -L/usr/lib
/usr/lib64/libexpat.la /pkg/products/apache.test/2.2.18/apr/lib/libapr-1.la
-luuid -lrt -lcrypt -lpthread -ldl'
../apr-util-1.3.11/config.log:APRUTIL_LIBS='-lexpat
/pkg/products/apache.test/2.2.18/apr/lib/libapr-1.la -luuid -lrt -lcrypt
-lpthread -ldl'
../apr-util-1.3.11/config.log:APR_LIBS='
/pkg/products/apache.test/2.2.18/apr/lib/libapr-1.la -luuid -lrt -lcrypt 
-lpthread -ldl'
../apr-util-1.3.11/test/Makefile:APRUTIL_LIBS = -lexpat
/pkg/products/apache.test/2.2.18/apr/lib/libapr-1.la -luuid -lrt -lcrypt
-lpthread -ldl
[root@kbanhidy2 apr-1.4.5]#

looking at config.log for apr-util:
## ----------------- ##
## Output variables. ##
## ----------------- ##

APRUTIL_DOTTED_VERSION='1.3.11'
APRUTIL_EXPORT_LIBS='-lexpat'
APRUTIL_INCLUDES='-I/usr/include/'
APRUTIL_LDFLAGS='-L/usr/lib'
APRUTIL_LIBNAME='aprutil-${APRUTIL_MAJOR_VERSION}'
APRUTIL_LIBS='-lexpat /pkg/products/apache.test/2.2.18/apr/lib/libapr-1.la
-luuid -lrt -lcrypt -lpthread -ldl'
APRUTIL_MAJOR_VERSION='1'
APRUTIL_PRIV_INCLUDES='-I/tmp/tmp.ztkYfC3285/apr-util-1.3.11/include
-I/tmp/tmp.ztkYfC3285/apr-util-1.3.11/include/private'
APR_BUILD_DIR='/pkg/products/apache.test/2.2.18/apr/build-1'
APR_ICONV_DIR=''
APR_INCLUDES=' -I/pkg/products/apache.test/2.2.18/apr/include/apr-1 '
APR_LIBS=' /pkg/products/apache.test/2.2.18/apr/lib/libapr-1.la -luuid -lrt
-lcrypt  -lpthread -ldl'
APR_XML_DIR=''
APU_CONFIG_LOCATION='source'
APU_DSO_LIBDIR='${libdir}/apr-util-1'
APU_HAVE_MODULES='yes'
APU_LTVERSION='-version-info 3:11:3'
APU_MODULES='  ldap/apr_ldap.la'

see no errors exit is 0.

I only found one reference to lib64 in apr config.log

lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\) $/ 
{\"\1\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \([^ ]*\) \([^ ]*\)$/  {"\2",
(lt_ptr) \&\2},/p'\'''
lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^. .* \(.*\)$/extern int
\1;/p'\'''
lt_cv_sys_lib_dlsearch_path_spec='/lib /usr/lib /samba/arch/lib '
lt_cv_sys_lib_search_path_spec='/usr/lib/gcc/x86_64-redhat-linux/4.1.2
/usr/lib64 /lib64'
lt_cv_sys_max_cmd_len=98304
lt_lt_cv_prog_compiler_c_o='"yes"'
lt_lt_cv_prog_compiler_c_o_CXX='"yes"'


looking at installed folder:

[root@kbanhidy2 apr-1.4.5]# grep -R /usr/lib64
/pkg/products/apache.test/2.2.18/apr/
/pkg/products/apache.test/2.2.18/apr/build-1/libtool:sys_lib_search_path_spec="/usr/lib/gcc/x86_64-redhat-linux/4.1.2
/usr/lib64 /lib64"
/pkg/products/apache.test/2.2.18/apr/build-1/libtool:sys_lib_search_path_spec="/usr/lib/gcc/x86_64-redhat-linux/4.1.2
/usr/lib64 /lib64"
[root@kbanhidy2 apr-1.4.5]#

[root@kbanhidy2 apr-1.4.5]# ldd
/pkg/products/apache.test/2.2.18/apr/lib/libapr-1.so.0
        libuuid.so.1 => /lib64/libuuid.so.1 (0x00002aced1198000)
        librt.so.1 => /lib64/librt.so.1 (0x00002aced139c000)
        libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00002aced15a5000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00002aced17de000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00002aced19f9000)
        libc.so.6 => /lib64/libc.so.6 (0x00002aced1bfd000)
        /lib64/ld-linux-x86-64.so.2 (0x000000343be00000)


Regards
Krisztian

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message