Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 693652 - net-print/dymo-cups-drivers-1.4.0-r1 : ../.../CupsPrintEnvironment.cpp:139:23: error: cupsBackChannelRead was not declared in this scope
Summary: net-print/dymo-cups-drivers-1.4.0-r1 : ../.../CupsPrintEnvironment.cpp:139:23...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-07 08:09 UTC by Toralf Förster
Modified: 2020-11-24 23:03 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.30 KB, text/plain)
2019-09-07 08:09 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,196.67 KB, text/plain)
2019-09-07 08:09 UTC, Toralf Förster
Details
environment (environment,67.23 KB, text/plain)
2019-09-07 08:09 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,13.25 KB, application/x-bzip)
2019-09-07 08:09 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,6.01 KB, application/x-bzip)
2019-09-07 08:09 UTC, Toralf Förster
Details
net-print:dymo-cups-drivers-1.4.0-r1:20190907-023205.log (net-print:dymo-cups-drivers-1.4.0-r1:20190907-023205.log,103.82 KB, text/plain)
2019-09-07 08:09 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,23.11 KB, application/x-bzip)
2019-09-07 08:09 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-09-07 08:09:10 UTC
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../src -I../common    -O2 -pipe -march=native -Wall -Wno-unknown-pragmas   -c -o CupsPrintEnvironment.o `test -f '../common/CupsPrintEnvironment.cpp' || echo './'`../common/CupsPrintEnvironment.cpp
../common/CupsPrintEnvironment.cpp: In member function ‘virtual void DymoPrinterDriver::CCupsPrintEnvironmentForLM::ReadData(DymoPrinterDriver::buffer_t&)’:
../common/CupsPrintEnvironment.cpp:139:23: error: ‘cupsBackChannelRead’ was not declared in this scope
  139 |   ssize_t bytesRead = cupsBackChannelRead((char*)buf, sizeof(buf), 2.5);
      |                       ^~~~~~~~~~~~~~~~~~~
make[4]: *** [Makefile:497: CupsPrintEnvironment.o] Error 1

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_developer-libressl-20190902-111655

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.37.0 *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.13.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

repository timestamp:

==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sat, 07 Sep 2019 02:07:03 +0000

emerge -qpvO net-print/dymo-cups-drivers
[ebuild  N    ] net-print/dymo-cups-drivers-1.4.0-r1  USE="-test -usb_modeswitch"
Comment 1 Toralf Förster gentoo-dev 2019-09-07 08:09:13 UTC
Created attachment 589286 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-09-07 08:09:16 UTC
Created attachment 589288 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-09-07 08:09:20 UTC
Created attachment 589290 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-09-07 08:09:23 UTC
Created attachment 589292 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-09-07 08:09:26 UTC
Created attachment 589294 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-09-07 08:09:29 UTC
Created attachment 589296 [details]
net-print:dymo-cups-drivers-1.4.0-r1:20190907-023205.log
Comment 7 Toralf Förster gentoo-dev 2019-09-07 08:09:31 UTC
Created attachment 589298 [details]
temp.tbz2
Comment 8 Paul Vint 2020-11-24 21:31:37 UTC
I confirm the same issue, and the fix from upstream at https://github.com/codeprofis/dymo-cups-drivers/pull/1 resolves the issue.

The change in src/common/CupsPrintEnvironment.h line 21, add:

#include <cups/backend.h>
#include <cups/sidechannel.h>
Comment 9 Larry the Git Cow gentoo-dev 2020-11-24 23:03:58 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=467014aadc7dd5e85c0aa4e25083d7a67b8c95c5

commit 467014aadc7dd5e85c0aa4e25083d7a67b8c95c5
Author:     Robin H. Johnson <robbat2@gentoo.org>
AuthorDate: 2020-11-24 23:01:14 +0000
Commit:     Robin H. Johnson <robbat2@gentoo.org>
CommitDate: 2020-11-24 23:03:44 +0000

    net-print/dymo-cups-drivers: compile-fix for cups-2.3
    
    Fixes: https://bugs.gentoo.org/show_bug.cgi?id=693652
    Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>

 .../dymo-cups-drivers-1.4.0-r2.ebuild              | 55 ++++++++++++++++++++++
 .../files/cups-2.3.0-headers.patch                 | 24 ++++++++++
 2 files changed, 79 insertions(+)