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

Bug 720726

Summary: net-misc/ncman-0.0.1_p20190327-r1 : ../.../json_regex.c: error: TRUE undeclared (first use in this function)
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: RESOLVED FIXED    
Severity: normal CC: bkohler
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
net-misc:ncman-0.0.1_p20190327-r1:20200502-202325.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-05-02 20:52:27 UTC
../ncman-21a55145ddbc5d085e91352586875abe92cff73b/src/json_regex.c: In function generate_trusted_json:
../ncman-21a55145ddbc5d085e91352586875abe92cff73b/src/json_regex.c:67:56: error: TRUE undeclared (first use in this function)
   67 |  jregex_agent_retry_response = json_object_new_boolean(TRUE);
      |                                                        ^~~~
../ncman-21a55145ddbc5d085e91352586875abe92cff73b/src/json_regex.c:67:56: note: each undeclared identifier is reported only once for each function it appears in

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl_hardened-20200425-233309

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.3.0 *
clang version 10.0.0 
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python3.8
  [3]   python3.7
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.43.0
  [2]   rust-1.43.0 *
The following VMs are available for generation-2:

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sat May  2 19:45:19 UTC 2020
/var/db/repos/musl	Thu Apr 30 21:54:55 UTC 2020

emerge -qpvO net-misc/ncman
[ebuild  N    ] net-misc/ncman-0.0.1_p20190327-r1
Comment 1 Toralf Förster gentoo-dev 2020-05-02 20:52:30 UTC
Created attachment 635740 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-05-02 20:52:32 UTC
Created attachment 635742 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-05-02 20:52:35 UTC
Created attachment 635744 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-05-02 20:52:38 UTC
Created attachment 635746 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-05-02 20:52:41 UTC
Created attachment 635748 [details]
net-misc:ncman-0.0.1_p20190327-r1:20200502-202325.log
Comment 6 Toralf Förster gentoo-dev 2020-05-02 20:52:43 UTC
Created attachment 635750 [details]
temp.tbz2
Comment 7 Ben Kohler gentoo-dev 2020-05-05 12:21:19 UTC
This is actually due to new json-c-0.14, not musl or format-security
Comment 8 Larry the Git Cow gentoo-dev 2020-05-05 12:32:16 UTC
The bug has been closed via the following commit(s):

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

commit a459b41dcc9e37d3178a7198a95fb610a38aa566
Author:     Ben Kohler <bkohler@gentoo.org>
AuthorDate: 2020-05-05 12:21:40 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2020-05-05 12:30:30 +0000

    net-misc/ncman: revbump for json-0.14 fixes
    
    Closes: https://bugs.gentoo.org/720726
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 .../ncman/files/ncman-fix-for-json-c-0.14.patch    | 33 ++++++++++++++++++++
 net-misc/ncman/ncman-0.0.1_p20190327-r2.ebuild     | 36 ++++++++++++++++++++++
 2 files changed, 69 insertions(+)