On 3/20/06, Grzegorz Bizon <[EMAIL PROTECTED]> wrote: > Hi. > > I have problem with dependecies on shared libraries in my package > (tleenx2). > Linda complains that: > W: tleenx2; A binary links against a library that is not depended on. > (By the way - shoudn't it be error rather than warning ?) > I have checked binary with objdump and ldd and i got ... simillar but > not the same results. > ldd output shows four more entries than objdump. That is:
It's somewhat irritating that linda doesn't say *which* library, but that's beside the point. One way to determine what the issue is by repeating the final link line with -Wl,--as-needed to strip out unused libs. Then diff the objdump output to see which libraries were removed and thus extraneous. However, please *test* the resulting binary. There are libraries out there that don't declare all the libs they need and if you're using one of those the result might be that you fix your package only to reveal a bug in another. People building shared libraries can use -Wl,--no-allow-shlib-undefined to detect this situation. Hope this helps, -- Martijn van Oosterhout <[EMAIL PROTECTED]> http://svana.org/kleptog/