Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 759382 - dev-util/dwdiff-2.1.2 : src/definitions.h: error: expected identifier before numeric constant
Summary: dev-util/dwdiff-2.1.2 : src/definitions.h: error: expected identifier before ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrice Clement
URL:
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks: icu-68.1 759598
  Show dependency tree
 
Reported: 2020-12-10 17:51 UTC by Toralf Förster
Modified: 2020-12-21 10:51 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.65 KB, text/plain)
2020-12-10 17:51 UTC, Toralf Förster
Details
dev-util:dwdiff-2.1.2:20201210-082005.log (dev-util:dwdiff-2.1.2:20201210-082005.log,3.79 KB, text/plain)
2020-12-10 17:51 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,101.27 KB, text/plain)
2020-12-10 17:51 UTC, Toralf Förster
Details
environment (environment,79.10 KB, text/plain)
2020-12-10 17:51 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,13.16 KB, application/x-bzip)
2020-12-10 17:51 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,1.01 KB, application/x-bzip)
2020-12-10 17:51 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,19.60 KB, application/x-bzip)
2020-12-10 17:51 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 2020-12-10 17:51:42 UTC
                 from /usr/include/unicode/unorm2.h:33,
                 from src/unicode.c:18:
src/definitions.h:48:15: error: expected identifier before numeric constant
   48 | typedef enum {false, true} bool;
      |               ^~~~~
src/definitions.h:48:28: error: expected ‘;’, identifier or ‘(’ before ‘_Bool’

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

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

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.2.0 *
clang version 11.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/11/bin
/usr/lib/llvm/11
11.0.0
Available Python interpreters, in order of preference:
  [1]   python3.9
  [2]   python3.8 (fallback)
Available Ruby profiles:
  [1]   ruby25 (with Rubygems)
  [2]   ruby26 (with Rubygems)
  [3]   ruby27 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.48.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.272_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.8.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Thu Dec 10 08:05:18 AM UTC 2020

emerge -qpvO dev-util/dwdiff
[ebuild  N    ] dev-util/dwdiff-2.1.2  USE="nls"
Comment 1 Toralf Förster gentoo-dev 2020-12-10 17:51:43 UTC
Created attachment 677605 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-12-10 17:51:44 UTC
Created attachment 677608 [details]
dev-util:dwdiff-2.1.2:20201210-082005.log
Comment 3 Toralf Förster gentoo-dev 2020-12-10 17:51:46 UTC
Created attachment 677611 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-12-10 17:51:47 UTC
Created attachment 677614 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-12-10 17:51:48 UTC
Created attachment 677617 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-12-10 17:51:49 UTC
Created attachment 677620 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-12-10 17:51:50 UTC
Created attachment 677623 [details]
temp.tbz2
Comment 8 Ulrich Müller gentoo-dev 2020-12-11 13:54:32 UTC
src/definitions.h tests (twice) for __STDC_VERSION__ >= 19990601L which is believe is wrong. C99 had 199901L and C11 has 201112L.

If I update the constant to 199901L then it compiles fine.
Comment 9 Ulrich Müller gentoo-dev 2020-12-11 14:24:44 UTC
Reported upstream.
Comment 10 Larry the Git Cow gentoo-dev 2020-12-12 14:03:30 UTC
The bug has been closed via the following commit(s):

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

commit cc08bbd83727a0f702610a30e2e2c782b2fe3687
Author:     Patrice Clement <monsieurp@gentoo.org>
AuthorDate: 2020-12-12 14:00:29 +0000
Commit:     Patrice Clement <monsieurp@gentoo.org>
CommitDate: 2020-12-12 14:03:26 +0000

    dev-util/dwdiff: fix booleans redefinition.
    
    Courtesy of Soap.
    
    Closes: https://bugs.gentoo.org/759382
    Package-Manager: Portage-3.0.9, Repoman-3.0.2
    Signed-off-by: Patrice Clement <monsieurp@gentoo.org>

 dev-util/dwdiff/dwdiff-2.1.2.ebuild |  2 +-
 dev-util/dwdiff/files/C99-fix.patch | 15 +++++++++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)