Gentoo Archives: gentoo-alt

From: Guilherme Amadio <amadio@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] Trouble building util-linux-2.26
Date: Wed, 04 Mar 2015 15:32:59
Message-Id: 20150304153308.GA8027@gentoo.org
In Reply to: [gentoo-alt] Trouble building util-linux-2.26 by Pablo Acosta-Serafini
1 Hi Pablo,
2
3 Someone mentioned this problem on #gentoo-prefix sometime ago. The
4 package is not broken; the old libc you have just doesn't provide a
5 function it needs. My suggestion is to put the code below into the
6 relevant header in util-linux, to make it compile:
7
8 /*
9 * mkostemp replacement
10 */
11 #ifndef HAVE_MKOSTEMP
12 #define mkostemp(template, flags) mkstemp(template)
13 #endif
14
15 This is the code that they removed that supported older systems.
16 You may have to revert the patch you mention below entirely, though,
17 if it still doesn't compile after that.
18
19 In any case, you could file a bug, so the prefix team can take a look
20 at how to address this problem since you are not the only one that
21 has experienced it.
22
23 Best,
24 —Guilherme
25
26 On Wed, Mar 04, 2015 at 02:04:55PM +0000, Pablo Acosta-Serafini wrote:
27 > I am having problems emerging util-linux-2.26 as part of the final stage of the bootstrapping process. The error I stems from this:
28 > ./.libs/libcommon.a(libcommon_la-fileutils.o): In function `xmkstemp':
29 > fileutils.c:(.text+0x61): undefined reference to `mkostemp'
30 > collect2: error: ld returned 1 exit status
31 > Makefile:5519: recipe for target 'blockdev' failed
32 >
33 > I am running Red Hat Enterprise Linux Client release 5.10 (Tikanga) which has glibc 2.5 (no option to update system, unfortunately)
34 > I googled a bit and it seems that there was support for old systems like mine that was removed as it was fixed upstream [http://patchwork.ozlabs.org/patch/336650/]. Is it possible that the package is still broken? Does anyone have any suggestions as to how to fix this? Thank you!
35 > P
36 >