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

Bug 796914

Summary: games-strategy/warmux-11.04.1-r1 - /.../libintl.h: error: expected unqualified-id before unsigned
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal Keywords: PullRequest
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/22489
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
games-strategy:warmux-11.04.1-r1:20210619-193121.log
logs.tar.bz2
temp.tar.bz2

Description Toralf Förster gentoo-dev 2021-06-20 15:07:59 UTC
                 from game/time.cpp:22:
/usr/include/libintl.h: At global scope:
/usr/include/libintl.h:61:14: error: expected unqualified-id before 'unsigned'
   61 | extern char *ngettext (const char *__msgid1, const char *__msgid2,
      |              ^~~~~~~~
/usr/include/libintl.h:61:14: error: expected ')' before 'unsigned'
../lib/warmux/include/WARMUX_i18n.h:41:40: note: to match this '('

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd-j3-20210612-125153

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.1.0 *
clang version 12.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.0
Python 3.9.5
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.53.0 *
The following VMs are available for generation-2:
1)	JamVM JDK 2.0.0 [jamvm]
*)	AdoptOpenJDK 8.292_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   jamvm 
  [2]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
  (none found)
  HEAD of ::gentoo
commit 9cfa92ee5bd67f97b3c917b1c954f5c352c4806c
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Jun 19 18:50:11 2021 +0000

    2021-06-19 18:50:10 UTC

emerge -qpvO games-strategy/warmux
[ebuild  N    ] games-strategy/warmux-11.04.1-r1  USE="unicode -debug -nls"
Comment 1 Toralf Förster gentoo-dev 2021-06-20 15:08:00 UTC
Created attachment 717030 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-06-20 15:08:02 UTC
Created attachment 717033 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-06-20 15:08:04 UTC
Created attachment 717036 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-06-20 15:08:05 UTC
Created attachment 717039 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-06-20 15:08:06 UTC
Created attachment 717042 [details]
games-strategy:warmux-11.04.1-r1:20210619-193121.log
Comment 6 Toralf Förster gentoo-dev 2021-06-20 15:08:07 UTC
Created attachment 717045 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-06-20 15:08:09 UTC
Created attachment 717048 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2021-10-04 23:58:46 UTC
The bug has been closed via the following commit(s):

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

commit 748756d8d10e901754d9d33a9a6104284ebd6c76
Author:     Alexey Sokolov <alexey+gentoo@asokolov.org>
AuthorDate: 2021-10-04 20:52:18 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2021-10-04 23:56:18 +0000

    games-strategy/warmux: fix build, deps, bump eapi
    
    Remove nls USE flag, because it caused build failure when disabled,
    because in that case it defines its own ngettext macro, which conflicts
    with that function defined in libintl.h which is transitively included
    anyway.
    
    Closes: https://bugs.gentoo.org/739400
    Closes: https://bugs.gentoo.org/796914
    Closes: https://bugs.gentoo.org/631434
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
    Closes: https://github.com/gentoo/gentoo/pull/22489
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 .../warmux/files/warmux-11.04.1-clang.patch        | 13 ++++++++
 ...-11.04.1-r1.ebuild => warmux-11.04.1-r2.ebuild} | 37 +++++++++++++---------
 2 files changed, 35 insertions(+), 15 deletions(-)