Discussion:
[yocto] Symbolic link to ld-linux-armhf.so.3
Alvaro Garcia
2017-04-15 18:47:05 UTC
Permalink
Hi, I made a recipe for hamachi. Hamachi looks for /lib/ld-linux.so.3 but
in my poky build this file is /lib/ld-linux-armhf.so.3.

If I do ln -s /lib/ld-linux-armhf.so.3 /lib/ld-linux.so.3 hamachi runs fine
so the solution its just a symbolic link. My problem is that I cant make
this link from my recipe.

Into my do_install I do: ln -s /lib/ld-linux-armhf.so.3
${D}/lib/ld-linux.so.3
But later it does not exist in the rootfs. But if I do:
ln -sf/lib/ld-linux-armhf.so.3 ${D}/lib/MYPRETTYLIB
then the link "MYPRETTYLIB" is there. Its like "ld-linux.so.3" is forbidden
for some reason.

I read that some guy had this problem and solved it by using a glibc
bbappend but it didnt work for me.

Do I need to do something special to get the "ld-linux.so.3" link?

Thank you
Fabien Lahoudere
2017-04-17 06:47:59 UTC
Permalink
Hi, I made a recipe for hamachi. Hamachi looks for /lib/ld-linux.so.3 but in my poky build this
file is /lib/ld-linux-armhf.so.3.
If I do ln -s /lib/ld-linux-armhf.so.3 /lib/ld-linux.so.3 hamachi runs fine so the solution its
just a symbolic link. My problem is that I cant make this link from my recipe.
Into my do_install I do: ln -s /lib/ld-linux-armhf.so.3 ${D}/lib/ld-linux.so.3
ln -sf/lib/ld-linux-armhf.so.3 ${D}/lib/MYPRETTYLIB
then the link "MYPRETTYLIB" is there. Its like "ld-linux.so.3" is forbidden for some reason.
I read that some guy had this problem and solved it by using a glibc bbappend but it didnt work
for me.
Do I need to do something special to get the "ld-linux.so.3" link?
As Khem Raj said in a previous discussion:
"
that may not be enough. .so are treated as symlinks and shoved into
-dev packages by default. if you need unversioned libraries then you
have to let the system know that its not a dev library symlink

FILES_${PN} += "${libdir}/*.so"
FILES_SOLIBSDEV = ""
INSANE_SKIP_${PN} += "dev-so"
"
Thank you
--

Loading...