OpenVZ Forum

Home » General » Support » vzctl-4.9.4 glibc problem
vzctl-4.9.4 glibc problem [message #53002] Sat, 07 October 2017 19:57
yettyn is currently offline  yettyn
Messages: 31
Registered: January 2008
Location: Jihlava, CZ
From: *
I hope some can assist with this and fast as I need to have this solved by Monday as I'm moving an openvz-042stab125.3 installation to new HW and need to recompile vzctl, which now isn't possible due to changes in later glibc..

The problem: starting with glibc-2.23 the declaration
include <sys/sysmacros.h>
was removed from from types.h, leading to compile errors in packages like vzctl assuming certain function declarations like makedev, major, minor etc. are included by the glibc library.

The solution: the line
#include <sys/sysmacros.h>

now needs to be included in the package own code, and assume this will happen once vzctl-4.9.5 is released, but until then, where is the proper place to add it in 4.9.4, in /include/types.h?
or maybe /src/lib/config.c as that's where the compile error seems to happens?

This is what was removed in glibc-2.23
Subject: [PATCH] sys/types.h: drop sys/sysmacros.h include

We want to break apart this include path due to namespace pollution.
posix/sys/types.h | 3 ---
1 file changed, 3 deletions(-)

diff --git a/posix/sys/types.h b/posix/sys/types.h
index a728567..b3007db 100644
--- a/posix/sys/types.h
+++ b/posix/sys/types.h
@@ -217,9 +217,6 @@ typedef int register_t __attribute__ ((__mode__ (__word__)));

/* It also defines `fd_set' and the FD_* macros for `select'. */
# include <sys/select.h>
-/* BSD defines these symbols, so we follow. */
-# include <sys/sysmacros.h>
#endif /* Use misc. */

Kernel 2.6.32-125.3
vzctl 4.9.4
Gentoo Linux x64

[Updated on: Sat, 07 October 2017 21:02]

Report message to a moderator

Previous Topic: Network / shared storage support on VZ7
Next Topic: ploop fail
Goto Forum:

Current Time: Sun Oct 22 11:47:18 GMT 2017