[Debian-med-packaging] Bug#545697: nawk: cannot open "/dev/tty" for output (No such device or address)

Mathieu Malaterre mathieu.malaterre at gmail.com
Tue Sep 8 14:25:42 UTC 2009


Package: dicom3tools
Version: 1.0~20090716-1
Severity: important
Justification: fails to build from source


dicom3tools fails to build on buildd system (chroot). Error is:

nawk -f ../../.././libsrc/support/strval.awk \
    role=declare outname=strvalc <../../.././libsrc/standard/strval.tpl >strvalc.h
nawk: cannot open "/dev/tty" for output (No such device or address)
make[5]: *** [strvalc.h] Error 2


Indeed the problem is that every errors are not send directly to stderrr, but instead to tty, see for example:

http://www.gnu.org/manual/gawk/html_node/Special-FD.html

So for example, it looks ok from a running system to have:

$ nawk -f ../../.././libsrc/support/strval.awk role=declare outname=strvalc < ../../.././libsrc/standard/strval.tpl > strvalc.h
Line 879: error - no group name:
Line 887: error - no group name:
Line 1166: warning in value line - no code <  ,>
Line 1346: error - no group name:
Line 3219: warning in value line - no code <  ,>
Line 3658: warning in value line - no code <  ,>

but really the error are send to tty and not stderr.

-- System Information:
Debian Release: 5.0.2
  APT prefers stable
  APT policy: (500, 'stable'), (200, 'testing'), (100, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-bpo.1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

-- no debconf information





More information about the Debian-med-packaging mailing list