Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 708236

Summary: net-print/c2esp-27 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Printing Team <printing>
Status: RESOLVED FIXED    
Severity: normal CC: sam
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://sources.debian.org/patches/c2esp/27-8/0002-Add-extern-stanzas-to-variable-definitions-in-header.patch/
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
net-print:c2esp-27:20200204-131920.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-02-04 17:10:36 UTC
 1236 |        if(header.HWResolution[0] == 300) cupsCMYKDoRGB(cmykTrans300, CupsLineBuffer, TransformedBuffer, RemainingPixels);
      |                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..    --pedantic -Wall -std=c99 -O2 -O2 -pipe -march=native -fno-common -c c2espcommon.c
x86_64-pc-linux-gnu-gcc --pedantic -Wall -std=c99 -O2 -O2 -pipe -march=native -fno-common  -Wl,-O1 -Wl,--as-needed -o c2esp c2esp.o c2espcommon.o  -ljbig85 -lz -lcupsfilters -lcups 
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: c2espcommon.o:(.bss+0x10): multiple definition of `DoBack'; c2esp.o:(.bss+0x14f4): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: c2espcommon.o:(.bss+0x0): multiple definition of `StartTime'; c2esp.o:(.bss+0x14b0): first defined here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-20200202-055736

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

  Please see the tracker bug for details.

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

clang:
clang version 9.0.1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/9/bin
llvm:
9.0.1
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.6
  [3]   python3.7 (fallback)
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *

java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.14.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm
ghc:
The Glorious Glasgow Haskell Compilation System, version 7.10.3

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Tue, 04 Feb 2020 12:28:48 +0000

emerge -qpvO net-print/c2esp
[ebuild  N    ] net-print/c2esp-27
Comment 1 Toralf Förster gentoo-dev 2020-02-04 17:10:39 UTC
Created attachment 611610 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-04 17:10:42 UTC
Created attachment 611612 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-02-04 17:10:44 UTC
Created attachment 611614 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-02-04 17:10:47 UTC
Created attachment 611616 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-02-04 17:10:50 UTC
Created attachment 611618 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-02-04 17:10:53 UTC
Created attachment 611620 [details]
net-print:c2esp-27:20200204-131920.log
Comment 7 Toralf Förster gentoo-dev 2020-02-04 17:10:56 UTC
Created attachment 611622 [details]
temp.tbz2
Comment 9 Larry the Git Cow gentoo-dev 2020-11-28 23:09:54 UTC
The bug has been closed via the following commit(s):

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

commit b2c34e86772c33a88fb514cd82d1f3c56969c91c
Author:     Jakov Smolic <jakov.smolic@sartura.hr>
AuthorDate: 2020-11-28 23:09:03 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2020-11-28 23:09:03 +0000

    net-print/c2esp: fix build with gcc-10
    
    * Thanks to Sam James for providing the patch link
    
    Closes: https://bugs.gentoo.org/708236
    Package-Manager: Portage-3.0.9, Repoman-3.0.1
    Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
    Signed-off-by: David Seifert <soap@gentoo.org>

 net-print/c2esp/c2esp-27.ebuild                    |  6 ++--
 net-print/c2esp/files/c2esp-27-fno-common.patch    | 32 ++++++++++++++++++++++
 ...ludes.patch => c2esp-27-missing-includes.patch} |  0
 3 files changed, 36 insertions(+), 2 deletions(-)