* rpm dependency errors
@ 2011-11-15 4:16 Michael E Brown
2011-11-15 17:21 ` Mark Hatle
0 siblings, 1 reply; 4+ messages in thread
From: Michael E Brown @ 2011-11-15 4:16 UTC (permalink / raw)
To: yocto
I've now run across this same error in two different contexts, and am
having difficulty trying to figure out what is going on
First, while building meta-toolchain-sdk, I ran into
http://pastebin.com/BT02UYk1
... cut ...
Processing task-core-standalone-gmae-sdk-target-dbg...
| error: Failed dependencies:
| libgthread-2.0.so.0 is needed by libgupnp-1.0-3-0.16.1-r0.sh4
| libresolv.so.2 is needed by libgupnp-1.0-3-0.16.1-r0.sh4
I've confirmed that the libgupnp rpm has only SH4 binaries in it.
Next, while building a custom image, I ran across the same error with
portmap and tcp-wrappers:
http://pastebin.com/dRb5Dum8
Note in the pastebin I extracted tcp-wrappers and 'file' says that
everything is SH4.
--
Michael
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: rpm dependency errors
2011-11-15 4:16 Michael E Brown
@ 2011-11-15 17:21 ` Mark Hatle
0 siblings, 0 replies; 4+ messages in thread
From: Mark Hatle @ 2011-11-15 17:21 UTC (permalink / raw)
To: yocto
On 11/14/11 10:16 PM, Michael E Brown wrote:
> I've now run across this same error in two different contexts, and am
> having difficulty trying to figure out what is going on
>
> First, while building meta-toolchain-sdk, I ran into
> http://pastebin.com/BT02UYk1
> ... cut ...
> Processing task-core-standalone-gmae-sdk-target-dbg...
> | error: Failed dependencies:
> | libgthread-2.0.so.0 is needed by libgupnp-1.0-3-0.16.1-r0.sh4
> | libresolv.so.2 is needed by libgupnp-1.0-3-0.16.1-r0.sh4
>
> I've confirmed that the libgupnp rpm has only SH4 binaries in it.
>
> Next, while building a custom image, I ran across the same error with
> portmap and tcp-wrappers:
>
> http://pastebin.com/dRb5Dum8
>
> Note in the pastebin I extracted tcp-wrappers and 'file' says that
> everything is SH4.
This type of error usually means that those two items were required as libraries
(for the target packages) and no rpm packages available provide those items.
Usually it means they were not being packaged, but did end up in the sysroot
somehow.
The items in the pastebin are a different issue, I suspect... From the pastebin:
(Lets start with the requirements first)
> $ rpm -qp --requires tcp-wrappers-7.6-r0.sh4.rpm
> warning: tcp-wrappers-7.6-r0.sh4.rpm: Header V4 DSA signature: NOKEY, key ID
fe659c6d
> libc6 >= 2.13
This is a package requirement..
> libwrap0 >= 7.6
As is this one..
> rtld(GNU_HASH)
This is a virtual requirement -- I need a rtld that supports GNU_HASH.
> libc.so.6
> libc.so.6(GLIBC_2.3)
> libc.so.6(GLIBC_2.2)
Above three are library SONAME requirements. I first require something with the
SONAME of "libc.so.6", and then also require two versioned symbols GLIBC_2.3 and
GLIBC_2.2.
> libwrap.so.0
This is simply an SONAME requirement.
> $ rpm -qp --provides libc6-2.13-r15+svnr14157.sh4.rpm
> warning: libc6-2.13-r15+svnr14157.sh4.rpm: Header V4 DSA signature: NOKEY, key ID 47031d66
> rtld(GNU_HASH)
> glibc
> libc6 = 2.13-r15+svnr14157
When you look at the provides, we're not providing any of the soname/shared
library requirements. There are a few possibilities as to the cause:
*) You simply didn't package the libraries.. check with rpm -qp -l <package>.
Do you see /lib/libc.so.6 there?
*) The libraries inside of this package are invalid for some reason?
*) objdump isn't able to read the soname values from these libraries for some
reason.
*) elfutils version of objdump isn't able to read the soname values from these
libraries for some reason.
... look into each of those and see if you can figure out what might be wrong.
If you get to the point of investigating objdump or elfutils-objdump -- be sure
to run it against the versions from the package and not the work directory. (It
is possible something is getting mangled at package time.)
--Mark
> --
> Michael
>
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: rpm dependency errors
[not found] <DB6E482E89290547898851B8CC9D81108F6183B1@AUSX7MCPS302.AMER.DELL.COM>
@ 2011-11-16 3:06 ` Michael E Brown
2011-11-16 18:37 ` Mark Hatle
0 siblings, 1 reply; 4+ messages in thread
From: Michael E Brown @ 2011-11-16 3:06 UTC (permalink / raw)
To: yocto@yoctoproject.org
On Mon, 2011-11-14 at 22:16 -0600, Michael E Brown wrote:
> I've now run across this same error in two different contexts, and am
> having difficulty trying to figure out what is going on
>
> First, while building meta-toolchain-sdk, I ran into
> http://pastebin.com/BT02UYk1
> ... cut ...
> Processing task-core-standalone-gmae-sdk-target-dbg...
> | error: Failed dependencies:
> | libgthread-2.0.so.0 is needed by libgupnp-1.0-3-0.16.1-r0.sh4
> | libresolv.so.2 is needed by libgupnp-1.0-3-0.16.1-r0.sh4
>
> I've confirmed that the libgupnp rpm has only SH4 binaries in it.
>
> Next, while building a custom image, I ran across the same error with
> portmap and tcp-wrappers:
>
> http://pastebin.com/dRb5Dum8
>
> Note in the pastebin I extracted tcp-wrappers and 'file' says that
> everything is SH4.
As a bit more information, I found that when I changed to "package_ipk"
vs rpm in my local.conf, I was able to do image build and sdk builds
without incident. So this problem looks like something specific to rpm
package builds. Is there any solution to this other than just not using
rpm?
--
Michael
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: rpm dependency errors
2011-11-16 3:06 ` rpm dependency errors Michael E Brown
@ 2011-11-16 18:37 ` Mark Hatle
0 siblings, 0 replies; 4+ messages in thread
From: Mark Hatle @ 2011-11-16 18:37 UTC (permalink / raw)
To: yocto
On 11/15/11 9:06 PM, Michael E Brown wrote:
> On Mon, 2011-11-14 at 22:16 -0600, Michael E Brown wrote:
>> I've now run across this same error in two different contexts, and am
>> having difficulty trying to figure out what is going on
>>
>> First, while building meta-toolchain-sdk, I ran into
>> http://pastebin.com/BT02UYk1
>> ... cut ...
>> Processing task-core-standalone-gmae-sdk-target-dbg...
>> | error: Failed dependencies:
>> | libgthread-2.0.so.0 is needed by libgupnp-1.0-3-0.16.1-r0.sh4
>> | libresolv.so.2 is needed by libgupnp-1.0-3-0.16.1-r0.sh4
>>
>> I've confirmed that the libgupnp rpm has only SH4 binaries in it.
>>
>> Next, while building a custom image, I ran across the same error with
>> portmap and tcp-wrappers:
>>
>> http://pastebin.com/dRb5Dum8
>>
>> Note in the pastebin I extracted tcp-wrappers and 'file' says that
>> everything is SH4.
>
> As a bit more information, I found that when I changed to "package_ipk"
> vs rpm in my local.conf, I was able to do image build and sdk builds
> without incident. So this problem looks like something specific to rpm
> package builds. Is there any solution to this other than just not using
> rpm?
RPM packages contain more dependency information then ipk and deb packages.
This is not a bug, but a feature. When using RPM packages not only are
specified dependencies there, but also soname and file level dependencies.
There is an outstanding item to add these soname and file level dependencies to
the OE/Yocto deb and ipk implementations as well.
Trust me, if the dependency is failing, then there is something wrong with the
packages or the binaries within the packages (or they're not compatible with the
elfutils mechanisms used to dump that information.)
You really do need to understand the actual files present in the packages, and
if they have the corresponding sonames that the dependent packages are looking for.
If you post your layer somewhere, I can attempt to reproduce the problem.
--Mark
> --
> Michael
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-11-16 18:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <DB6E482E89290547898851B8CC9D81108F6183B1@AUSX7MCPS302.AMER.DELL.COM>
2011-11-16 3:06 ` rpm dependency errors Michael E Brown
2011-11-16 18:37 ` Mark Hatle
2011-11-15 4:16 Michael E Brown
2011-11-15 17:21 ` Mark Hatle
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.