Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 794751 - games-puzzle/nudoku-2.1.0 - main.c: error: LC_ALL undeclared (first use in this function)
Summary: games-puzzle/nudoku-2.1.0 - main.c: error: LC_ALL undeclared (first use in th...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-07 13:35 UTC by Toralf Förster
Modified: 2021-06-27 12:13 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.74 KB, text/plain)
2021-06-07 13:35 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,52.52 KB, text/plain)
2021-06-07 13:35 UTC, Toralf Förster
Details
environment (environment,66.46 KB, text/plain)
2021-06-07 13:35 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,12.21 KB, application/x-bzip)
2021-06-07 13:35 UTC, Toralf Förster
Details
games-puzzle:nudoku-2.1.0:20210607-124356.log (games-puzzle:nudoku-2.1.0:20210607-124356.log,9.34 KB, text/plain)
2021-06-07 13:35 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,6.44 KB, application/x-bzip)
2021-06-07 13:35 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,19.48 KB, application/x-bzip)
2021-06-07 13:35 UTC, Toralf Förster
Details
games-puzzle/files/nudoku-2.1.0-LC_ALL-fix.patch fix compiling with CFLAGS=-O0 (nudoku-2.1.0-LC_ALL-fix.patch,460 bytes, patch)
2021-06-27 12:13 UTC, mehw
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-06-07 13:35:15 UTC
  453 |         setlocale(LC_ALL, "");
      |         ^~~~~~~~~
main.c:453:19: error: ‘LC_ALL’ undeclared (first use in this function)
  453 |         setlocale(LC_ALL, "");
      |                   ^~~~~~
main.c:453:19: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [Makefile:398: main.o] Error 1

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome-j3-20210606-181430

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.1.0 *
/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.52.1 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.292_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
  HEAD of ::gentoo
commit 057dcda7a45a1e903fc20f7f5bcc22980f3133ed
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Jun 7 12:20:16 2021 +0000

    2021-06-07 12:20:15 UTC

emerge -qpvO games-puzzle/nudoku
[ebuild  N    ] games-puzzle/nudoku-2.1.0  USE="cairo"
Comment 1 Toralf Förster gentoo-dev 2021-06-07 13:35:16 UTC
Created attachment 714180 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-06-07 13:35:17 UTC
Created attachment 714183 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-06-07 13:35:19 UTC
Created attachment 714186 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-06-07 13:35:20 UTC
Created attachment 714189 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-06-07 13:35:21 UTC
Created attachment 714192 [details]
games-puzzle:nudoku-2.1.0:20210607-124356.log
Comment 6 Toralf Förster gentoo-dev 2021-06-07 13:35:22 UTC
Created attachment 714195 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-06-07 13:35:23 UTC
Created attachment 714198 [details]
temp.tar.bz2
Comment 8 mehw 2021-06-27 12:13:04 UTC
Created attachment 719547 [details, diff]
games-puzzle/files/nudoku-2.1.0-LC_ALL-fix.patch fix compiling with CFLAGS=-O0

Hello,

I can reproduce the error "undeclared LC_ALL" in the subject.  Adding #include <locale.h> to main.c should fix compiling with CFLAGS=-O0.

Patch attached.