Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 941853 - games-strategy/dopewars-1.6.2 - [ncurses-6.5] [libtool] [gcc-15] gtk_client.c: error: implicit declaration of function bind_textdomain_codeset [-Wimplicit-function-declar
Summary: games-strategy/dopewars-1.6.2 - [ncurses-6.5] [libtool] [gcc-15] gtk_client.c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Games
URL:
Whiteboard: ~arch only
Keywords: PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2024-10-19 14:19 UTC by Toralf Förster
Modified: 2025-04-12 20:55 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.72 KB, text/plain)
2024-10-19 14:19 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,203.95 KB, text/plain)
2024-10-19 14:19 UTC, Toralf Förster
Details
environment (environment,88.83 KB, text/plain)
2024-10-19 14:19 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.20 KB, application/x-xz)
2024-10-19 14:19 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,17.23 KB, application/x-xz)
2024-10-19 14:20 UTC, Toralf Förster
Details
games-strategy:dopewars-1.6.2:20241019-121801.log (games-strategy:dopewars-1.6.2:20241019-121801.log,15.65 KB, text/plain)
2024-10-19 14:20 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,11.27 KB, application/x-xz)
2024-10-19 14:20 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,57.59 KB, application/x-xz)
2024-10-19 14:20 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,23.72 KB, application/x-xz)
2024-10-19 14:20 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 2024-10-19 14:19:55 UTC
   43 | # define _(String) (String)
      |                    ^
gtk_client.c:189:10: note: in expansion of macro '_'
  189 |   return _(path);
      |          ^
gtk_client.c: In function 'GtkLoop':
gtk_client.c:2202:3: error: implicit declaration of function 'bind_textdomain_codeset' [-Wimplicit-function-declaration]
 2202 |   bind_textdomain_codeset(PACKAGE, "UTF-8");
      |   ^~~~~~~~~~~~~~~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_systemd-20241015-011513

  UNMASKED:
  <sys-devel/gcc-15.0.9999:15
    Issues involving opaque types / incomplete typedefs should block bug 930805
  >=sys-libs/ncurses-6.5

  Block bug #351559 if this looks like a parallel build issue.
  Possible reproducer: MAKEOPTS='...  shuffle=2136272416'

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle"
gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang version 19.1.2
llvm-config: 19.1.2
Python 3.12.7
go version go1.23.1 linux/amd64
  [1]   php8.2
  [2]   php8.3 *
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.82.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.24_p8 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.12_p7 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.4_p7 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.422_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm


  HEAD of ::gentoo
commit 2a6e8a85dd346eb307ec803da7fbc7a0cc312dd2
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Oct 19 11:33:37 2024 +0000

    2024-10-19 11:33:36 UTC

emerge -qpvO =games-strategy/dopewars-1.6.2
[ebuild  N    ] games-strategy/dopewars-1.6.2  USE="gtk ncurses sdl -gnome -nls"
Comment 1 Toralf Förster gentoo-dev 2024-10-19 14:19:56 UTC
Created attachment 906357 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-10-19 14:19:57 UTC
Created attachment 906358 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-10-19 14:19:58 UTC
Created attachment 906359 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-10-19 14:19:59 UTC
Created attachment 906360 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-10-19 14:20:00 UTC
Created attachment 906361 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-10-19 14:20:01 UTC
Created attachment 906362 [details]
games-strategy:dopewars-1.6.2:20241019-121801.log
Comment 7 Toralf Förster gentoo-dev 2024-10-19 14:20:02 UTC
Created attachment 906363 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-10-19 14:20:03 UTC
Created attachment 906364 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2024-10-19 14:20:04 UTC
Created attachment 906365 [details]
temp.tar.xz
Comment 10 NHO 2025-03-29 10:48:01 UTC
This is caused by USE=-nls, one usage of libintl.h function isn't macroed off
Comment 11 NHO 2025-03-29 10:49:58 UTC
and NLS is obligatory, per comment in configure.ac
Comment 12 Larry the Git Cow gentoo-dev 2025-04-12 20:55:04 UTC
The bug has been closed via the following commit(s):

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

commit 9e25c7dcc4b02d32f3677db8bbfb5ae890ce7ffb
Author:     NHOrus <jy6x2b32pie9@yahoo.com>
AuthorDate: 2025-03-29 10:58:57 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-12 20:51:23 +0000

    games-strategy/dopewars: remove USE=nls, limit to C17
    
    Per comment in configure.ac, nls usage is mandatory. There's no
    code to macro nls usage off if it's disabled in configure.
    Ncurses and GTK clients have same API9, but one is void(*)(void)
    and another is void (*)(GtkWidget *, void *), setting -std=gnu17
    is for the best.
    
    Closes: https://bugs.gentoo.org/941853
    Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
    Closes: https://github.com/gentoo/gentoo/pull/41367
    Signed-off-by: Sam James <sam@gentoo.org>

 games-strategy/dopewars/dopewars-1.6.2-r1.ebuild | 74 ++++++++++++++++++++++++
 1 file changed, 74 insertions(+)