From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from thebe.hi.pengutronix.de ([2001:6f8:1178:2:5e26:aff:fe2b:7cc4]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1W5FCH-0000xy-2d for ptxdist@pengutronix.de; Mon, 20 Jan 2014 14:47:25 +0100 From: Juergen Beisert Date: Mon, 20 Jan 2014 14:50:01 +0100 References: <201401201039.04114.jbe@pengutronix.de> In-Reply-To: <201401201039.04114.jbe@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201401201450.01476.jbe@pengutronix.de> Subject: [ptxdist] [PATCHv2] udev: standalone variant fails to build with newer toolchains Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de udev cannot be linked due to the use of the 'mq_getattr' call which requires librt to link successfully. = The configure script already checks for 'clock_gettime' in order to add lib= rt to the list of required libraries. This is valid only (according to the man= ual page) for glibc version before 2.17. With the new glibc-2.18 in the 2013.12 toolchain librt isn't required anymore for 'clock_gettime' and that is why librt is omitted and linking fails. = This change uses the upstream patch from the systemd repository. = Signed-off-by: Juergen Beisert --- diff --git a/patches/udev-182/0001-configure.ac-fix-FTBFS-with-new-glibc.pa= tch b/patches/udev-182/0001-configure.ac-fix-FTBFS-with-new-glibc.patch new file mode 100644 index 0000000..4e89308 --- /dev/null +++ b/patches/udev-182/0001-configure.ac-fix-FTBFS-with-new-glibc.patch @@ -0,0 +1,28 @@ +From: Michal Schmidt +Date: Wed, 14 Nov 2012 13:44:05 +0000 +Subject: [PATCH] configure.ac: fix FTBFS with new glibc + +glibc moved clock_* functions from librt to the core libc. As a result, +clock_gettime is no more a suitable symbol to use when finding librt. +Look for mq_open instead. +Reference: +http://www.sourceware.org/git/gitweb.cgi?p=3Dglibc.git&h=3D6e6249d0b461b95= 2d0f544792372663feb6d792a + +Fixes a FTBFS in Fedora Rawhide. +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index b31b62f..b9a36e6 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -21,7 +21,7 @@ AC_PREFIX_DEFAULT([/usr]) + AC_PATH_PROG([XSLTPROC], [xsltproc]) + AM_CONDITIONAL(HAVE_XSLTPROC, test x"$XSLTPROC" !=3D x) + = +-AC_SEARCH_LIBS([clock_gettime], [rt], [], [AC_MSG_ERROR([POSIX RT library= not found])]) ++AC_SEARCH_LIBS([mq_open], [rt], [], [AC_MSG_ERROR([POSIX RT library not f= ound])]) + = + PKG_CHECK_MODULES(BLKID, blkid >=3D 2.20) + = diff --git a/patches/udev-182/autogen.sh b/patches/udev-182/autogen.sh new file mode 120000 index 0000000..9f8a4cb --- /dev/null +++ b/patches/udev-182/autogen.sh @@ -0,0 +1 @@ +../autogen.sh \ No newline at end of file diff --git a/patches/udev-182/series b/patches/udev-182/series new file mode 100644 index 0000000..1c17f15 --- /dev/null +++ b/patches/udev-182/series @@ -0,0 +1,4 @@ +# generated by git-ptx-patches +#tag:base --start-number 1 +0001-configure.ac-fix-FTBFS-with-new-glibc.patch +# be5cd22057d8bd81ce6afd40df0f051d - git-ptx-patches magic -- = Pengutronix e.K. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0| Juergen Beisert =A0 =A0 =A0 =A0 =A0 =A0 | Linux Solutions for Science and Industry =A0 =A0 =A0| http://www.pengutroni= x.de/ | -- = ptxdist mailing list ptxdist@pengutronix.de