On Thursday 28 April 2011 23:49, Steve Iribarne wrote: > I'm working with 1.15.3 (we have a release out there, so this is what > I'm stuck with). > > I've verified that my issue is still in the latest 1.18.4 version. Here > is my issue: > > I have both CONFIG_FEATURE_SHARED_BUSYBOX=y and CONFIG_BUILD_LIBBUSYBOX=y. > > > Everything was working great until I added selinux and pam. > I started getting linker errors. > > ====== > ld-linux.so.3 needed by > /opt/tools/cs/bin/../arm-none-linux-gnueabi/libc/lib/libc.so.6 > found ld-linux.so.3 at > /opt/tools/cs/bin/../arm-none-linux-gnueabi/libc/lib/ld-linux.so.3/opt/tools/cs/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: > > warning: libpam.so.0, needed by 0_lib/libbusybox.so, not found (try > using -rpath or -rpath-link) > /opt/tools/cs/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: > > warning: libpam_misc.so.0, needed by 0_lib/libbusybox.so, not found (try > using -rpath or -rpath-link) > /opt/tools/cs/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: > > warning: libselinux.so.1, needed by 0_lib/libbusybox.so, not found (try > using -rpath or -rpath-link) > /opt/tools/cs/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: > > warning: libsepol.so.1, needed by 0_lib/libbusybox.so, not found (try > using -rpath or -rpath-link) > 0_lib/libbusybox.so: undefined reference to `context_role_set' > 0_lib/libbusybox.so: undefined reference to `lsetfilecon' > 0_lib/libbusybox.so: undefined reference to `getcon' > 0_lib/libbusybox.so: undefined reference to `freecon' > 0_lib/libbusybox.so: undefined reference to `pam_strerror@LIBPAM_1.0' > 0_lib/libbusybox.so: undefined reference to `pam_set_item@LIBPAM_1.0' > 0_lib/libbusybox.so: undefined reference to `setexeccon' > 0_lib/libbusybox.so: undefined reference to `pam_open_session@LIBPAM_1.0' > 0_lib/libbusybox.so: undefined reference to `context_str' > 0_lib/libbusybox.so: undefined reference to `get_default_context' > ....... > ======== > > > I think I have it tracked down to scripts/trylink around line 257. > > I think it needs to include the $l_list at that point. Otherwise those > libs aren't included. I can give a patch if you'd like.
Yes, please send a tested patch. -- vda _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
