continuing the topic: misc/sort-merge failure
http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14202/focus=14203
(also for me, neither of the suggestions there help)
and http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14235
* Jim Meyering wrote on Tue, Aug 05, 2008 at 11:10:44PM CEST:
Jeph Cowan [EMAIL PROTECTED] wrote:
I tried both the patch and the subsequent commenting out of
nmerge-no's ERR_SUBST line. Neither produced positive results. See
attached file.
It looks like mkstemp may be misbehaving on your system.
It seems to be setting the first byte of the template
string to \0. Hence the bogus diagnostic.
Yep, exactly:
$ cat a.c
#include stdlib.h
int main()
{
char s[] = does/not/exist/XX;
int ret = mkstemp (s);
printf (s is '%s', s+1 is '%s', ret is %d\n, s, s+1, ret);
return 0;
}
$ cc -o a a.c ./a
s is '', s+1 is 'oes/not/exist/2YApMa', ret is -1
Now, it'd be good to find out which version of mkstemp
the code is using: the one in lib/mkstemp.c or the one
from your C library.
The one from the C library.
To that end, please see if lib/mkstemp.o
exists. If not, rebuild like this to ensure that sort is
linked to the coreutils-provided version:
env gl_cv_func_working_mkstemp=no ./configure make make check
FWIW, you can provide gl_cv_func_working_mkstemp=no also as argument to
configure.
Reconfiguring like this fixes the failure.
FWIW, after updating I also get these other failures that Jeph reported,
here's the output with GNU diff in PATH (sorry for not looking at them
any further yet).
Cheers,
Ralf
===
3 of 348 tests failed
(55 tests were not run)
See tests/test-suite.log
Please report it to bug-coreutils@gnu.org
===
===
GNU coreutils 6.12.135-b041: tests/test-suite.log
===
3 of 348 tests failed. (55 tests were not run).
.. contents:: :depth: 2
FAIL: misc/expr.log (exit: 1)
=
expr: arbitrary-precision support is not available
expr (GNU coreutils) 6.12.135-b041
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Mike Parker and James Youngman.
a...
b...
c...
d...
e...
f...
g...
paren1...
paren2...
paren3...
paren4...
paren5...
0bang...
00...
minus0...
andand...
oror...
orempty...
minus2...
fail-a...
bigcmp...
anchor...
bre1...
bre2...
bre3...
bre4...
bre5...
bre6...
bre7...
bre8...
bre9...
bre10...
bre11...
bre12...
bre13...
bre14...
bre15...
bre16...
bre17...
bre18...
bre19...
bre20...
bre21...
bre22...
bre23...
bre24...
bre25...
bre26...
bre27...
bre28...
bre29...
bre30...
bre31...
bre32...
bre33...
bre34...
bre35...
bre36...
bre37...
bre38...
bre39...
bre40...
bre41...
bre42...
bre43...
bre44...
bre45...
bre46...
bre47...
bre48...
bre49...
bre50...
bre51...
bre52...
bre53...
bre54...
bre55...
bre56...
bre57...
bre58...
bre59...
bre60...
bre61...
bre62...
fail-b...
fail-c...
bignum-add...
expr: test bignum-add failed: exit status mismatch: expected 0, got 3
bignum-add2...
expr: test bignum-add2 failed: exit status mismatch: expected 0, got 3
bignum-sub...
expr: test bignum-sub failed: exit status mismatch: expected 0, got 3
bignum-sub2...
expr: test bignum-sub2 failed: exit status mismatch: expected 0, got 3
bignum-mul...
expr: test bignum-mul failed: exit status mismatch: expected 0, got 3
bignum-div...
expr: test bignum-div failed: exit status mismatch: expected 0, got 3
Can't remove directory
/home/rwild/coreutils/build-powerpc-ibm-aix5.3.0.0/tests/expr.tmp-9eO4: Device
busy at /usr/opt/perl5/lib/5.8.2/File/Temp.pm line 858
FAIL: cp/thru-dangling.log (exit: 1)
+ cp --version
cp (GNU coreutils) 6.12.135-b041
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Torbjorn Granlund, David MacKenzie, and Jim Meyering.
+ . ../../coreutils/tests/test-lib.sh
+ unset function_test
+ eval function_test() { return 11; }; function_test
+ function_test
+ test 11 != 11
+ + pwd
test_dir_=/home/rwild/coreutils/build-powerpc-ibm-aix5.3.0.0/tests
+ + this_test_
this_test=thru-dangling
+ + /home/rwild/coreutils/build-powerpc-ibm-aix5.3.0.0/src/mktemp -d
--tmp=/home/rwild/coreutils/build-powerpc-ibm-aix5.3.0.0/tests
cu-thru-dangling.XX
t_=/home/rwild/coreutils/build-powerpc-ibm-aix5.3.0.0/tests/cu-thru-dangling.X13DeiKQM4
+ trap remove_tmp_ 0
+ trap (exit $?); exit $? 1 2 13 15
+ cd
/home/rwild/coreutils/build-powerpc-ibm-aix5.3.0.0/tests/cu-thru-dangling.X13DeiKQM4
+ 2