FTBFS on ppc64el: termios problems

Bug #1619100 reported by Tiago Stürmer Daitx
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
repsnapper (Debian)
Fix Released
Unknown
repsnapper (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Note: on yakkety-proposed the build FTBFS first due to bug 1619289, after that is fixed then we get this issue.

As reported in debian bug #810907 by Fernando Seiti:

The package repsnapper fails to build from source on ppc64el with the
following errors:

  src/printer/custom_baud.cpp: In function 'bool set_custom_baudrate(int, int)':
  src/printer/custom_baud.cpp:15:19: error: aggregate 'set_custom_baudrate(int, int)::termios2 options' has incomplete type and cannot be defined
     struct termios2 options;
                   ^
  src/printer/custom_baud.cpp:17:26: error: 'TCGETS2' was not declared in this scope
     if ( ioctl( device_fd, TCGETS2, &options ) < 0 ) {
                          ^
  src/printer/custom_baud.cpp:27:26: error: 'TCSETS2' was not declared in this scope
     if ( ioctl( device_fd, TCSETS2, &options ) < 0 ) {

That is probably because, although the type and macros in the errors are
defined within termios.h from asm-generic, that header is not included within
arch specific headers (eg asm/termbits.h) for ppc64el.

It is possible to force usage of those, but I am not sure that is the proper
approach to fix this (aka I don't know if it will work).
There is a patch attached that allows it to build.

I tested the patch on ppc64el and x86_64

Thanks and regards.

Fernando

Tags: ftbfs patch
Changed in repsnapper (Debian):
status: Unknown → New
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "ppc64el-asm-generic.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
description: updated
Mathew Hodson (mhodson)
Changed in repsnapper (Ubuntu):
importance: Undecided → High
tags: added: ftbfs
Revision history for this message
Tiago Stürmer Daitx (tdaitx) wrote :

Opened bug #1619446 due to mismatching headers on linux-libc-dev between powerpc/ppc64el and the other archs.

Revision history for this message
Tiago Stürmer Daitx (tdaitx) wrote :

Improved patch that fixes issues and allows the build on all arches. Should be removed as soon as the linux-libc-dev bug #1619446 gets fixed.

Changed in repsnapper (Ubuntu):
status: New → Confirmed
assignee: nobody → Tiago Stürmer Daitx (tdaitx)
assignee: Tiago Stürmer Daitx (tdaitx) → nobody
Revision history for this message
Tiago Stürmer Daitx (tdaitx) wrote :

Debdiff with the current patch. Also includes the fix for bug #1619289.

Revision history for this message
Tiago Stürmer Daitx (tdaitx) wrote :
Revision history for this message
Daniel Holbach (dholbach) wrote :

Looks like the bug was not closed automatically.

Changed in repsnapper (Ubuntu):
status: Confirmed → Fix Released
Changed in repsnapper (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.