Hi Pablo, Someone mentioned this problem on #gentoo-prefix sometime ago. The package is not broken; the old libc you have just doesn't provide a function it needs. My suggestion is to put the code below into the relevant header in util-linux, to make it compile:
/* * mkostemp replacement */ #ifndef HAVE_MKOSTEMP #define mkostemp(template, flags) mkstemp(template) #endif This is the code that they removed that supported older systems. You may have to revert the patch you mention below entirely, though, if it still doesn't compile after that. In any case, you could file a bug, so the prefix team can take a look at how to address this problem since you are not the only one that has experienced it. Best, —Guilherme On Wed, Mar 04, 2015 at 02:04:55PM +0000, Pablo Acosta-Serafini wrote: > 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: > ./.libs/libcommon.a(libcommon_la-fileutils.o): In function `xmkstemp': > fileutils.c:(.text+0x61): undefined reference to `mkostemp' > collect2: error: ld returned 1 exit status > Makefile:5519: recipe for target 'blockdev' failed > > I am running Red Hat Enterprise Linux Client release 5.10 (Tikanga) which has > glibc 2.5 (no option to update system, unfortunately) > 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! > P >
