Re: compiling error

2008-08-12 Thread Ralf Wildenhues
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 

'echo' does not ignore other arguments with --help or --version

2008-08-12 Thread Benno Schulenberg

Hi,

Most of the coreutils tools will ignore all other arguments 
when --help or --version is given, but not 'echo':

$ /bin/echo --help ignore this
--help ignore this

$ /bin/echo --version ignore this
--version ignore this

But it says that it would:

$ /bin/echo --help | grep help
  --help display this help and exit

$ /bin/echo --version | head -n1
echo (GNU coreutils) 6.12

Benno


___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils


Re: test failures on AIX 5.3: misc/sort-merge, test-copy-acl.sh

2008-08-12 Thread Ralf Wildenhues
* Jim Meyering wrote on Sat, Aug 02, 2008 at 05:56:07PM CEST:
 Regarding the ACL failure,
 I don't have access to any AIX systems, so if you
 can give a little more info, that'd help.
 
 I.e., in gnulib-tests/test-sameacls.c, there are two blocks:
 
   #elif HAVE_ACLX_GET /* AIX */
   ...
   #elif HAVE_STATACL /* older AIX */
   ...
 
 Knowing which you're using and where/how (lineno/errno value)
 it's failing would help.

Both of these macros are defined to 1.  The error happens in line 454
(changed to:)

  if (aclx_get (file1, 0, type1, acl1, aclsize1, mode1)  0)
{
  fprintf (stderr, error accessing the ACLs of file %s: %d, %s\n, file1, 
errno, strerror(errno));
  fflush (stderr);
  abort ();
}

leads to:

$ ./test-sameacls tmpfile0 tmpfile1
error accessing the ACLs of file tmpfile0: 109, Function not implemented
zsh: abort (core dumped)  ./test-sameacls tmpfile0 tmpfile1

I haven't grokked yet why these are not implemented.

Cheers,
Ralf


___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils


BUG I Think !

2008-08-12 Thread Ahmad Hussein

Hi ,, Unknown man  ;) ,,

OK i have problem  in the terminal when i write this command sudo 
apt-get install * it's appear this message E: dpkg was interrupted, 
you must manually run 'dpkg --configure -a' to correct the problem. ,, 
so what should i do ?  please give me answer ,,


And in the end have a nice life ,, be happy ,,


Ahmad Hussein,


___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils


Re: BUG I Think !

2008-08-12 Thread Micah Cowan
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ahmad Hussein wrote:
 Hi ,, Unknown man  ;) ,,
 
 OK i have problem  in the terminal when i write this command sudo
 apt-get install * it's appear this message E: dpkg was interrupted,
 you must manually run 'dpkg --configure -a' to correct the problem. ,,
 so what should i do ?  please give me answer ,,

Well, I might recommend you follow the instructions given there.

Apart from that, neither dpkg nor apt-get have anything to do with GNU
coreutils, which is the focus of this mailing list. You'll do much
better to ask on a forum dedicated to your OS (Debian, Ubuntu, or what
have you).

- --
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer.
GNU Maintainer: wget, screen, teseq
http://micah.cowan.name/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIolue7M8hyUobTrERAqTxAJ9aa15MMMhBYq2b7Vpq68eozR7w7gCbBgIa
hZ0EaONCNhUpmn0IGBt2HqU=
=/6Zb
-END PGP SIGNATURE-


___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils