[yocto] about symbol link of library

Ni Qingliang niqingliang at insigma.com.cn
Fri Oct 14 02:02:08 PDT 2011


thanks! It looks like OK now.

the libx package contain symlink libx.so now.

On Thu, 2011-10-13 at 23:34 +0800, Mark Hatle wrote:
> 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?
> >
> >
> >
> >
> 
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

-- 
Yi Qingliang
niqingliang at insigma.com.cn
http://niqingliang2003.wordpress.com





More information about the yocto mailing list