[Frage] make fails due to genext2fs (touch: invalid option -- 'h')

RomMon

Neuer User
Mitglied seit
29 Aug 2011
Beiträge
105
Punkte für Reaktionen
0
Punkte
16
Probably due to my bit older freetz-linux setup (freetz-linux 1.2.1).
(found http://lists.gnu.org/archive/html/bug-coreutils/2009-10/msg00138.html )
And looking for advice/input if like "you should definitely update your setup" or if genext2fs-20131004 is a bit too demanding...
(and to make others aware)


Make of Freetz trunk revision 13268 fails with:
Code:
make[1]: Entering directory `/home/freetz/freetz-trunk-13268/source/host-tools/genext2fs-20131004'
make  all-am
make[2]: Entering directory `/home/freetz/freetz-trunk-13268/source/host-tools/genext2fs-20131004'
gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT genext2fs.o -MD -MP -MF .deps/genext2fs.Tpo -c -o genext2fs.o genext2fs.c
mv -f .deps/genext2fs.Tpo .deps/genext2fs.Po
gcc  -g -O2   -o genext2fs genext2fs.o
make[2]: Leaving directory `/home/freetz/freetz-trunk-13268/source/host-tools/genext2fs-20131004'
make[1]: Leaving directory `/home/freetz/freetz-trunk-13268/source/host-tools/genext2fs-20131004'
touch -c /home/freetz/freetz-trunk-13268/source/host-tools/genext2fs-20131004/genext2fs
(cd /home/freetz/freetz-trunk-13268/source/host-tools/genext2fs-20131004; ./test.sh)
Testing 4096 blocks of 1024 bytes with file of size 0
PASS
Testing 2048 blocks of 2048 bytes with file of size 0
PASS
Testing 1024 blocks of 4096 bytes with file of size 0
PASS
Testing 8193 blocks of 1024 bytes with file of size 0
PASS
Testing 8194 blocks of 1024 bytes with file of size 0
PASS
Testing 8193 blocks of 4096 bytes with file of size 0
PASS
Testing 8194 blocks of 2048 bytes with file of size 0
PASS
Testing 4096 blocks of 1024 bytes with file of size 1
PASS
Testing 1024 blocks of 4096 bytes with file of size 1
PASS
Testing 4096 blocks of 1024 bytes with file of size 12288
PASS
Testing 4096 blocks of 1024 bytes with file of size 274432
PASS
Testing 9000 blocks of 1024 bytes with file of size 8388608
PASS
Testing 4500 blocks of 2048 bytes with file of size 8388608
PASS
Testing 2250 blocks of 4096 bytes with file of size 8388608
PASS
Testing 20000 blocks of 1024 bytes with file of size 16777216
PASS
Testing 10000 blocks of 2048 bytes with file of size 16777216
PASS
Testing 4096 blocks with with devices file device_table.txt
PASS
Testing 200 blocks of 1024 bytes with symlink ...123456789
touch: invalid option -- 'h'
Try `touch --help' for more information.
make: *** [/home/freetz/freetz-trunk-13268/source/host-tools/genext2fs-20131004/.tests-passed] Error 1
Suspect introduced with Freetz trunk-revision 13227.

Code:
$ grep -irn touch .
<snip>
./test-gen.lib:67:      TZ=UTC-11 touch -h -t 201309241353.59 symlink .
<snip>

Code:
$ touch -h
touch: invalid option -- 'h'
Try `touch --help' for more information.

$ touch --help
Usage: touch [OPTION]... FILE...
Update the access and modification times of each FILE to the current time.

A FILE argument that does not exist is created empty.

A FILE argument string of - is handled specially and causes touch to
change the times of the file associated with standard output.

Mandatory arguments to long options are mandatory for short options too.
  -a                     change only the access time
  -c, --no-create        do not create any files
  -d, --date=STRING      parse STRING and use it instead of current time
  -f                     (ignored)
  -m                     change only the modification time
  -r, --reference=FILE   use this file's times instead of current time
  -t STAMP               use [[CC]YY]MMDDhhmm[.ss] instead of current time
  --time=WORD            change the specified time:
                           WORD is access, atime, or use: equivalent to -a
                           WORD is modify or mtime: equivalent to -m
      --help     display this help and exit
      --version  output version information and exit

Note that the -d and -t options accept different time-date formats.

Report touch bugs to [email protected]
GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
General help using GNU software: <http://www.gnu.org/gethelp/>
Report touch translation bugs to <http://translationproject.org/team/>

$ touch --version
touch (GNU coreutils) 7.4
Copyright (C) 2009 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 Paul Rubin, Arnold Robbins, Jim Kingdon,
David MacKenzie, and Randy Smith.
 
Decided to go for the latest freetz-linux (1.3.2 at the moment).


To remove the "WARNING: The header file readline/readline.h was not found in /usr/(local/)include."
sudo apt-get install libreadline-dev

Change to the English language:
vi /etc/default/locale
change LANG="de_DE.UTF-8" to LANG="en_US.UTF-8"


Still need to correct the keyboard mapping (/etc/default/keyboard)...
 
loadkeys or setxkbmap should do the trick.
 
Hi andiling,

Thanks for the pointer.

I had to use:
sudo dpkg-reconfigure keyboard-configuration
sudo update-initramfs -u


Which gave the following changes:
Code:
$ diff /etc/default/keyboard /etc/default/keyboard.orig
9,10c9,10
< XKBLAYOUT="us"
< XKBVARIANT="euro"
---
> XKBLAYOUT="de"
> XKBVARIANT="nodeadkeys"


and
sudo locale-gen en_US.UTF-8
(and maybe: sudo dpkg-reconfigure locales)
to solve below error.
Code:
Sorry, command-not-found has crashed! Please file a bug report at:
https://bugs.launchpad.net/command-not-found/+filebug
Please include the following information with the report:

command-not-found version: 0.2.44



Only issue I have left is 'make menuconfig' doesn't show the extended ASCII characters, so the layout is not as nice as it should be.
 
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.