Libraries and packaging problem

Claudio Matsuoka claudio at mandriva.com
Thu Mar 30 08:51:21 PST 2006


On Wednesday 29 March 2006 19:26, Jeremy C. Reed wrote:

> On Wed, 29 Mar 2006, Claudio Matsuoka wrote:
> > In the end, binaries linked against libXpm are also linked directly to 
libXau 
> > and libXdmcp. http://distro.conectiva.com.br/~claudio/xorg/xman.png shows 
an 
> > example, lots more at http://distro.conectiva.com.br/~claudio/xorg/.
> 
> What did you use to generate those?

Quick-and-dirty perl script and graphviz, 
http://distro.conectiva.com.br/~claudio/xorg/deps.pl


> Anyways, I don't see the same problem in my own package builds. (I am a 
> pkgsrc developer and maintainer.)
> 
> For example, my libXpm only has NEEDED of libX11.so.6. (ldd does show the 
> -lXau.6).

I noticed that the behavior in Ubuntu Dapper is different (and correct), 
although the pkgconfig .pc files are the same. This is worth an 
investigation.

For instance, in Ubuntu:

$ pkg-config --libs xpm
-lXpm -lX11
$ pkg-config --libs x11
-lX11
$ pkg-config --libs xdmcp
-lXdmcp

In Mandriva:

$ pkg-config --libs xpm
-lXpm -lX11 -lpthread -lXau -lXdmcp
$ pkg-config --libs x11
-lX11 -lpthread -lXau -lXdmcp
$ pkg-config --libs xdmcp
-lXdmcp


> What does "objdump -p /path/to/bin/xman | grep NEEDED" show for you?

In Ubuntu:

  NEEDED      libXaw7.so.7
  NEEDED      libXmu.so.6
  NEEDED      libXt.so.6
  NEEDED      libX11.so.6
  NEEDED      libSM.so.6
  NEEDED      libICE.so.6
  NEEDED      libc.so.6

In Mandriva:

  NEEDED      libXaw8.so.8
  NEEDED      libXpm.so.4
  NEEDED      libXp.so.6
  NEEDED      libXmu.so.6
  NEEDED      libXext.so.6
  NEEDED      libXt.so.6
  NEEDED      libX11.so.6
  NEEDED      libpthread.so.0
  NEEDED      libSM.so.6
  NEEDED      libXdmcp.so.6
  NEEDED      libICE.so.6
  NEEDED      libXau.so.6
  NEEDED      libXprintUtil.so.1
  NEEDED      libc.so.6

Which is consistent with the packaging problem since find-requires uses this 
information to add package dependencies.


More information about the xorg-modular mailing list