mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Juergen Beisert <jbe@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCHv2] udev: standalone variant fails to build with newer toolchains
Date: Mon, 20 Jan 2014 14:50:01 +0100	[thread overview]
Message-ID: <201401201450.01476.jbe@pengutronix.de> (raw)
In-Reply-To: <201401201039.04114.jbe@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 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 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 <jbe@pengutronix.de>
---
diff --git a/patches/udev-182/0001-configure.ac-fix-FTBFS-with-new-glibc.patch 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 <mschmidt@redhat.com>
+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=glibc.git&h=6e6249d0b461b952d0f544792372663feb6d792a
+
+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" != 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 found])])
+ 
+ PKG_CHECK_MODULES(BLKID, blkid >= 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.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

      parent reply	other threads:[~2014-01-20 13:47 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
2014-01-20 13:50     ` Juergen Beisert [this message]

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=201401201450.01476.jbe@pengutronix.de \
    --to=jbe@pengutronix.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