Hello,

I build RDKB RPI image and flash the image to RPI device. I want to enable ldd on the RPI, to quick identify the libraries which the binary linked.

Can you help to share how to enable ldd? Thank you very much!

  • No labels

2 Comments

  1. Hi Tang Heming ,

    Please add ldd package to packaging file .

    For reference check the below code

    diff --git a/recipes-core/packagegroups/packagegroup-rdk-ccsp-broadband.bbappend b/recipes-core/packagegroups/packagegroup-rdk-ccsp-broadband.bbappend
    index 87a66a2..965494b 100644
    --- a/recipes-core/packagegroups/packagegroup-rdk-ccsp-broadband.bbappend
    +++ b/recipes-core/packagegroups/packagegroup-rdk-ccsp-broadband.bbappend
    @@ -6,6 +6,7 @@ RDEPENDS_packagegroup-rdk-ccsp-broadband_append = "\
         libseshat \
         notify-comp \
         start-parodus \
    +    ldd \
         \
     "

    Then Compile and flash the image . ldd should be available 

    root@RaspberryPi-Gateway:~# ldd -v /usr/bin/bzcat
            linux-vdso.so.1 (0x7eef6000)
            libm.so.6 => /lib/libm.so.6 (0x76f57000)
            libc.so.6 => /lib/libc.so.6 (0x76e7f000)
            /lib/ld-linux-armhf.so.3 (0x76fb7000)

            Version information:
            /usr/bin/bzcat:
                    libc.so.6 (GLIBC_2.4) => /lib/libc.so.6
                    libc.so.6 (GLIBC_2.14) => /lib/libc.so.6
                    libc.so.6 (GLIBC_2.7) => /lib/libc.so.6
                    libc.so.6 (GLIBC_2.17) => /lib/libc.so.6
                    libc.so.6 (GLIBC_2.28) => /lib/libc.so.6
                    libm.so.6 (GLIBC_2.4) => /lib/libm.so.6
                    libm.so.6 (GLIBC_2.29) => /lib/libm.so.6
            /lib/libm.so.6:
                    libc.so.6 (GLIBC_PRIVATE) => /lib/libc.so.6
                    libc.so.6 (GLIBC_2.4) => /lib/libc.so.6
            /lib/libc.so.6:
                    ld-linux-armhf.so.3 (GLIBC_2.4) => /lib/ld-linux-armhf.so.3
                    ld-linux-armhf.so.3 (GLIBC_PRIVATE) => /lib/ld-linux-armhf.so.3
    root@RaspberryPi-Gateway:~#


    Regards,
    Priyankaa KVB

  2. Hi Priyankaa K V B 

    That's great! Thank you!