[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

strange dynamic linking behavior



Help!...

I'm having a weird problem with a package that I'm making... for some
reason that I can't figure a binary is losing dynamic linking
information. Here's a script that should show the problem (I have
tested it in a clean, chrooted 2.2r3 system):

  cd ~/tmp/
  wget http://angg.twu.net/tmp/lua_4.0-0.2.dsc
  wget http://angg.twu.net/tmp/lua_4.0-0.2.diff.gz
  wget http://angg.twu.net/tmp/lua_4.0.orig.tar.gz

  rm -Rv /usr/src/lua*
  cd /usr/src/
  dpkg-source -sn -x ~/tmp/lua_4.0-0.2.dsc

  apt-get install texinfo yada

  cd /usr/src/lua-4.0/
  debian/rules binary		2>&1 | tee odrb

  cd /usr/src/lua-4.0/
  ldd bin/dllua
  ldd debian/tmp-lua/usr/bin/dllua

The output of this last block is something like:

  cd /usr/src/lua-4.0/
  ldd bin/dllua
          liblua.so => /usr/lib/liblua.so (0x40021000)
          liblualib.so => /usr/lib/liblualib.so (0x40032000)
          libdllua.so => /usr/lib/libdllua.so (0x40040000)
          libdl.so.2 => /lib/libdl.so.2 (0x40042000)
          libm.so.6 => /lib/libm.so.6 (0x40045000)
          libc.so.6 => /lib/libc.so.6 (0x40062000)
          /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
  ldd debian/tmp-lua/usr/bin/dllua
          libdl.so.2 => /lib/libdl.so.2 (0x40021000)
          libm.so.6 => /lib/libm.so.6 (0x40024000)
          libc.so.6 => /lib/libc.so.6 (0x40042000)
          /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

also search for "ldd" in the "odrb" log file; the first time that
"dllua" is created it gets the wrong DL info, but when I recreate it
it gets ok.

Cheers, thanks in advance, and sorry for my weird English,

  Eduardo Ochs
  http://angg.twu.net/
  edrx@inx.com.br



Reply to: