Rpmbuild unable to recognize used libs?

Panu Matilainen pmatilai at laiskiainen.org
Sat Feb 11 16:43:16 UTC 2012


On 02/11/2012 02:52 PM, Andrea Musuruane wrote:
> Hi all,
>      a reporter just submitted this bug against tecnoballz:
> https://bugzilla.redhat.com/show_bug.cgi?id=789544
>
> After closer inspection, I see that the RPM doesn't require the needed
> libraries:
>
> $ rpm -q --requires tecnoballz
> /bin/sh
> /bin/sh
> config(tecnoballz) = 0.92-11.fc16
> hicolor-icon-theme
> rpmlib(CompressedFileNames) <= 3.0.4-1
> rpmlib(FileDigests) <= 4.6.0-1
> rpmlib(PayloadFilesHavePrefix) <= 4.0-1
> rpmlib(PayloadIsXz) <= 5.2-1
>
> The spec file is available here:
> http://pkgs.fedoraproject.org/gitweb/?p=tecnoballz.git;a=tree
>
> But if I print the shared libraries needed by the binary I get:
>
> $ ldd /usr/bin/tecnoballz
>      linux-vdso.so.1 =>  (0x00007fff7213e000)
>      libSDL-1.2.so.0 => /usr/lib64/libSDL-1.2.so.0 (0x0000003b9be00000)
>      libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003b88e00000)
>      libSDL_image-1.2.so.0 => /usr/lib64/libSDL_image-1.2.so.0
> (0x00000033b1a00000)
>      libSDL_mixer-1.2.so.0 => /usr/lib64/libSDL_mixer-1.2.so.0
> (0x0000003b8b600000)
>      libmikmod.so.3 => /usr/lib64/libmikmod.so.3 (0x0000003b89a00000)
>      libtinyxml.so.0 => /usr/lib64/libtinyxml.so.0 (0x00007f8cda97a000)
>      libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x0000003b8de00000)
>      libm.so.6 => /lib64/libm.so.6 (0x0000003b89600000)
>      libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003b8a200000)
>      libc.so.6 => /lib64/libc.so.6 (0x0000003b88a00000)
>      libdl.so.2 => /lib64/libdl.so.2 (0x0000003b89200000)
>      /lib64/ld-linux-x86-64.so.2 (0x0000003b88600000)
>      libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x00000033b2a00000)
>      libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x0000003b94a00000)
>      libtiff.so.3 => /usr/lib64/libtiff.so.3 (0x00000033b4e00000)
>      libz.so.1 => /lib64/libz.so.1 (0x00000033b1200000)
>
> I really don't understand what's wrong here. Any help is appreciated.

It's a bug in rpmbuild's file classification rules, should be fixed in 
this update: https://admin.fedoraproject.org/updates/FEDORA-2012-1504

While this obviously isn't fault of tecnoballz, a rebuild is needed to 
correct the dependencies.

	- Panu -


More information about the devel mailing list