[Pkg-lxqt-devel] Bug#798053: qtermwidget: FTBFS on kFreeBSD: 'TCGETS' not declared

Aaron M. Ucko ucko at debian.org
Fri Sep 4 20:13:43 UTC 2015


Source: qtermwidget
Version: 0.6.0-1
Severity: important
Justification: fails to build from source

Builds of qtermwidget on kFreeBSD failed:

  /«PKGBUILDDIR»/lib/kpty.cpp: In member function 'bool KPty::tcGetAttr(termios*) const':
  /«PKGBUILDDIR»/lib/kpty.cpp:126:44: error: 'TCGETS' was not declared in this scope
   #  define _tcgetattr(fd, ttmode) ioctl(fd, TCGETS, (char *)ttmode)
                                              ^
  /«PKGBUILDDIR»/lib/kpty.cpp:647:12: note: in expansion of macro '_tcgetattr'
       return _tcgetattr(d->masterFd, ttmode) == 0;
              ^
  /«PKGBUILDDIR»/lib/kpty.cpp: In member function 'bool KPty::tcSetAttr(termios*)':
  /«PKGBUILDDIR»/lib/kpty.cpp:136:44: error: 'TCSETS' was not declared in this scope
   #  define _tcsetattr(fd, ttmode) ioctl(fd, TCSETS, (char *)ttmode)
                                              ^
  /«PKGBUILDDIR»/lib/kpty.cpp:654:12: note: in expansion of macro '_tcsetattr'
       return _tcsetattr(d->masterFd, ttmode) == 0;
              ^

Perhaps the conditionals on lines 120 and 130 of kpty.cpp should add
__kFreeBSD__ to the list of relevant BSD system types?

Anyway, please take a look.

Thanks!



More information about the Pkg-lxqt-devel mailing list