GNU bug report logs -
#26044
coreutils-8.27 fails to build
Previous Next
Reported by: J Rogowsky <geometriker <at> gmail.com>
Date: Fri, 10 Mar 2017 06:45:01 UTC
Severity: normal
Done: Pádraig Brady <P <at> draigBrady.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
coreutils-8.27 fails to build.
function renameat, found in src/force-link.c, is not found on my
system, which is an iBook G4 running OSX 10.5.8.
Therefore the link step fails, citing the linker cannot find _renameat.
I see there is a similar function in lib/at-func2.c which could be
used, but I chose to solve this problem in the simplest way possible
by defining renameat in src/force-link.c like so:
diff src/force-link.c src/force-link.c.OEM
86,93d85
< /* see: https://www.freebsd.org/cgi/man.cgi?query=rename&sektion=2 */
< static int
< renameat(int fromfd,const char *from,int tofd,const char *to)
< {
< return rename(from,to);
< }
<
<
Perhaps there is a better solution?
Such as using at_func2 in src/force-link.c like so:
static int
renameat(int fromfd,const char *from,int tofd,const char *to)
{
return at_func2(fromfd,from,tofd,to,rename);
}
????????????????
BTW, I had only one test FAIL in "make check": tests/misc/sort-debug-
keys
Is this related to the above?
If you would like further assistance on this matter, just let me know
how I could help.
Thanks,
J Rogowsky
This bug report was last modified 8 years and 73 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.