From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Matthias Klein <matthias.klein@optimeas.de>
Subject: Re: [ptxdist] [PATCH] udev: standalone variant fails to build with newer toolchains
Date: Mon, 20 Jan 2014 10:55:14 +0100 [thread overview]
Message-ID: <20140120095514.GJ25911@pengutronix.de> (raw)
In-Reply-To: <201401201039.04114.jbe@pengutronix.de>
Hello Jürgen,
On Mon, Jan 20, 2014 at 10:39:04AM +0100, Jürgen 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 requires
> 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. 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 newer
> glibc revisions as well.
>
> Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
For easy application here a --- is missing I think.
>
> diff --git a/patches/udev-182/0001-fix_librt_detection.diff.patch b/patches/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 <jbe@pengutronix.de>
> +Date: Mon, 20 Jan 2014 10:23:36 +0100
> +Subject: [PATCH] udev: standalone variant fails to link with glibc >= 2.17
> +
> +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 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 newer
> +glibc revisions as well.
> +
> +Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
There is
http://cgit.freedesktop.org/systemd/systemd/commit/?id=e17187091d463ad008c0b74eb04de5078b2abb96
in upstream for v196.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
--
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2014-01-20 9:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-17 14:28 [ptxdist] [ANNOUNCE] PTXdist 2014.01.0 released Michael Olbrich
2014-01-18 12:47 ` Matthias Klein
2014-01-20 9:14 ` Jürgen Beisert
2014-01-20 9:39 ` [ptxdist] [PATCH] udev: standalone variant fails to build with newer toolchains Jürgen Beisert
2014-01-20 9:55 ` Uwe Kleine-König [this message]
2014-01-20 13:50 ` [ptxdist] [PATCHv2] " Juergen Beisert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140120095514.GJ25911@pengutronix.de \
--to=u.kleine-koenig@pengutronix.de \
--cc=matthias.klein@optimeas.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox