From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Date: Mon, 20 Jan 2014 10:55:14 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Message-ID: <20140120095514.GJ25911@pengutronix.de> References: <201401201039.04114.jbe@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <201401201039.04114.jbe@pengutronix.de> Subject: Re: [ptxdist] [PATCH] 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-1" Content-Transfer-Encoding: quoted-printable Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Matthias Klein Hello J=FCrgen, On Mon, Jan 20, 2014 at 10:39:04AM +0100, J=FCrgen Beisert wrote: > udev: standalone variant fails to build with newer toolchains > = > udev cannot be linked due to the use of the 'mq_getattr' call which requi= res > librt to link successfully. > = > The configure script already checks for "clock_gettime" in order to add l= ibrt > to the list of required libraries. This is valid only (according to the m= anual > page) for glibc version before 2.17. With the new glibc-2.18 in the 2013.= 12 > toolchain librt isn't required anymore. > = > This patch adds a second test for 'mq_getattr' to force the librt for new= er > glibc revisions as well. > = > Signed-off-by: Juergen Beisert For easy application here a --- is missing I think. > = > diff --git a/patches/udev-182/0001-fix_librt_detection.diff.patch b/patch= es/udev-182/0001-fix_librt_detection.diff.patch > new file mode 100644 > index 0000000..6c0adb3 > --- /dev/null > +++ b/patches/udev-182/0001-fix_librt_detection.diff.patch > @@ -0,0 +1,32 @@ > +From: Juergen Beisert > +Date: Mon, 20 Jan 2014 10:23:36 +0100 > +Subject: [PATCH] udev: standalone variant fails to link with glibc >=3D = 2.17 > + > +udev cannot be linked due to the use of the 'mq_getattr' call which requ= ires > +librt to link successfully. > + > +The configure script already checks for "clock_gettime" in order to add = librt > +to the list of required libraries. This is valid only (according to the = manual > +page) for glibc version before 2.17. > + > +This patch adds a second test for 'mq_getattr' to force the librt for ne= wer > +glibc revisions as well. > + > +Signed-off-by: Juergen Beisert There is http://cgit.freedesktop.org/systemd/systemd/commit/?id=3De17187091d463ad00= 8c0b74eb04de5078b2abb96 in upstream for v196. Best regards Uwe -- = Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | http://www.pengutronix.de/ | -- = ptxdist mailing list ptxdist@pengutronix.de