On 03/26/2014 09:20 AM, Khem Raj wrote:
whats native glibc version on build host


Thanks for the quick response, it is glibc-2.5-118.el5_10.2.

// Robert

-Khem
On Mar 25, 2014 6:19 PM, "Robert Yang" <[email protected]> wrote:


Hi Khem,

I got an error on CentOS 5.10, seems caused by this patch:

| /home/build/lyang1/testre/bitbake_build/tmp/work/x86_64-
linux/util-linux-native/2.24.1-r0/util-linux-2.24.1/sys-utils/unshare.c:
In function 'main':
| /home/build/lyang1/testre/bitbake_build/tmp/work/x86_64-
linux/util-linux-native/2.24.1-r0/util-linux-2.24.1/sys-utils/unshare.c:151:
error: 'MS_PRIVATE' undeclared (first use in this function)
| /home/build/lyang1/testre/bitbake_build/tmp/work/x86_64-
linux/util-linux-native/2.24.1-r0/util-linux-2.24.1/sys-utils/unshare.c:151:
error: (Each undeclared identifier is reported only once
| /home/build/lyang1/testre/bitbake_build/tmp/work/x86_64-
linux/util-linux-native/2.24.1-r0/util-linux-2.24.1/sys-utils/unshare.c:151:
error: for each function it appears in.)
| /home/build/lyang1/testre/bitbake_build/tmp/work/x86_64-
linux/util-linux-native/2.24.1-r0/util-linux-2.24.1/sys-utils/unshare.c:151:
error: 'MS_REC' undeclared (first use in this function)
| make[2]: *** [sys-utils/unshare.o] Error 1

We can add the following lines to util-linux/sys-utils/unshare.c as a
workaround:

#ifndef MS_PRIVATE
#define MS_PRIVATE      (1<<18) /* 262144 Private*/
#endif

#ifndef MS_REC
#define MS_REC          0x4000  /* 16384: Recursive loopback */
#endif

#ifndef MS_NOSUID
#define MS_NOSUID        2      /* Ignore suid and sgid bits */
#endif

#ifndef MS_NOEXEC
#define MS_NOEXEC        8      /* Disallow program execution */
#endif

#ifndef MS_NODEV
#define MS_NODEV         4      /* Disallow access to device special files
*/
#endif

Do you have any ideas, please ?

// Robert

On 03/16/2014 01:42 PM, Khem Raj wrote:

This patch actually makes sense for uclibc more than glibc
since if we did not cache scanf_cv_alloc_modifier configure
test will determine it correctly for glibc but the test does
not do proper job when uclibc is involved the reason is it
depends on define __GLIBC_ and uclibc unfortunately poses as
glibc and defines this variable.

%m is implemented in uclibc as well and we enable it so caching value of
'ms' specifier is going to work across all libcs

This fixes mounting errors we see with util-linux/mount on
uclibc/systemd

Mar 16 01:46:40 qemux86 systemd-remount-fs[124]: /bin/mount:
/proc/self/mountinfo: parse error: ignore entry at line 21.
Mar 16 01:46:40 qemux86 systemd-remount-fs[124]: /bin/mount:
/proc/self/mountinfo: parse error: ignore entry at line 22.
Mar 16 01:46:40 qemux86 systemd-remount-fs[124]: /bin/mount: can't find /
in /etc/fstab

Signed-off-by: Khem Raj <[email protected]>
---
   meta/recipes-core/util-linux/util-linux_2.24.1.bb | 3 ++-
   1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/meta/recipes-core/util-linux/util-linux_2.24.1.bbb/meta/recipes-core/util-
linux/util-linux_2.24.1.bb
index b08d68d..aa98b65 100644
--- a/meta/recipes-core/util-linux/util-linux_2.24.1.bb
+++ b/meta/recipes-core/util-linux/util-linux_2.24.1.bb
@@ -17,7 +17,8 @@ SRC_URI += "file://util-linux-ng-replace-siginterrupt.patch
\
   SRC_URI[md5sum] = "88d46ae23ca599ac5af9cf96b531590f"
   SRC_URI[sha256sum] = "835eb6232cfab0118ef2e4fd649de0
ba9f5bd1b8cbf9a7d4d84594541dec8410"

-CACHED_CONFIGUREVARS += "scanf_cv_alloc_modifier=as"
+CACHED_CONFIGUREVARS += "scanf_cv_alloc_modifier=ms"
+
   EXTRA_OECONF_class-native = "${SHARED_EXTRA_OECONF} \
                                --disable-fallocate
--disable-use-tty-group \
   "



--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to