All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Hatle <mark.hatle@windriver.com>
To: <yocto@yoctoproject.org>
Subject: Re: about symbol link of library
Date: Thu, 13 Oct 2011 10:34:47 -0500	[thread overview]
Message-ID: <4E970517.9080207@windriver.com> (raw)
In-Reply-To: <1318498649.1352.11.camel@localhost.localdomain>

On 10/13/11 4:37 AM, Ni Qingliang wrote:
> hello all.
> 
> I have added 2 packages, one is lib, and the other is bin.
> 
> the lib will generate 2 files:
> 	libx.so.1.0.1
> 	libx.so -> libx.so.1.0.1
> the latter linked to the other one.
> 
> the bin package will link to the libx.so.
> 
> compile/install are all OK, but when populate rootfs, I got error:
> error: Failed dependencies:
> | 	libx.so is needed by bin......

I suspect your libx.so.1.0.1 is missing an SONAME.  One should be added to it
that matches the filename of the "real" library.  (It's possible that it has an
soname already, it just doesn't match the filename.)

Once that is done, then the dynamic linker should be able to find it w/o the
libx.so link.

(The links should only ever be used for development.  This is a somewhat common
bug, and a good way to find these problems.)

I'd also suggest we add a sanity check for this condition, so it will be easier
for people to identify in the future.

--Mark

> after checked the rpm, the libx.so is located in libx-dev, but not in
> libx.
> 
> what is the right way to resolve this problem?
> 
> 
> 
> 



  reply	other threads:[~2011-10-13 15:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-13  9:37 about symbol link of library Ni Qingliang
2011-10-13 15:34 ` Mark Hatle [this message]
2011-10-14  9:02   ` Ni Qingliang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E970517.9080207@windriver.com \
    --to=mark.hatle@windriver.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.