Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 751742 - sys-auth/pam_u2f-1.1.0 : util.c: error: UCHAR_MAX undeclared (first use in this function)
Summary: sys-auth/pam_u2f-1.1.0 : util.c: error: UCHAR_MAX undeclared (first use in th...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Göktürk Yüksek
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-29 16:03 UTC by Toralf Förster
Modified: 2021-03-06 06:04 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,17.31 KB, text/plain)
2020-10-29 16:03 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,206.17 KB, text/plain)
2020-10-29 16:03 UTC, Toralf Förster
Details
environment (environment,86.27 KB, text/plain)
2020-10-29 16:03 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,25.30 KB, application/x-bzip)
2020-10-29 16:03 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,10.09 KB, application/x-bzip)
2020-10-29 16:03 UTC, Toralf Förster
Details
sys-auth:pam_u2f-1.1.0:20201029-041047.log (sys-auth:pam_u2f-1.1.0:20201029-041047.log,18.07 KB, text/plain)
2020-10-29 16:03 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,26.99 KB, application/x-bzip)
2020-10-29 16:03 UTC, Toralf Förster
Details
Patch to include limits.h to the files that require it. (include_limits.patch,520 bytes, patch)
2020-11-05 19:36 UTC, amit
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 2020-10-29 16:03:32 UTC
util.c: In function ‘hex_decode’:
util.c:57:33: error: ‘UCHAR_MAX’ undeclared (first use in this function)
   57 |     if (r != 1 || n != 2 || c > UCHAR_MAX) {
      |                                 ^~~~~~~~~
util.c:25:1: note: ‘UCHAR_MAX’ is defined in header ‘<limits.h>’; did you forget to ‘#include <limits.h>’?

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd-libressl-20201024-104338

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

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.7
  [2]   python3.9 (fallback)
  [3]   python3.8 (fallback)
Available Ruby profiles:
  [1]   ruby25 (with Rubygems)
  [2]   ruby26 (with Rubygems)
  [3]   ruby27 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.47.0 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.16.0 [icedtea-8]
2)	IcedTea JDK 3.16.0 [icedtea-bin-8]
*)	AdoptOpenJDK 8.272_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-8 
  [2]   icedtea-bin-8 
  [3]   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 Oct 29 03:05:34 AM UTC 2020
/var/db/repos/libressl	Sun Oct 18 04:35:14 PM UTC 2020

emerge -qpvO sys-auth/pam_u2f
[ebuild  N    ] sys-auth/pam_u2f-1.1.0  USE="libressl -debug"
Comment 1 Toralf Förster gentoo-dev 2020-10-29 16:03:33 UTC
Created attachment 669074 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-10-29 16:03:35 UTC
Created attachment 669077 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-10-29 16:03:37 UTC
Created attachment 669080 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-10-29 16:03:38 UTC
Created attachment 669083 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-10-29 16:03:40 UTC
Created attachment 669086 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-10-29 16:03:41 UTC
Created attachment 669089 [details]
sys-auth:pam_u2f-1.1.0:20201029-041047.log
Comment 7 Toralf Förster gentoo-dev 2020-10-29 16:03:42 UTC
Created attachment 669092 [details]
temp.tbz2
Comment 8 amit 2020-11-05 19:36:24 UTC
Created attachment 670100 [details, diff]
Patch to include limits.h to the files that require it.
Comment 9 Göktürk Yüksek archtester gentoo-dev 2021-03-06 05:09:21 UTC
I can't reproduce but there's an upstream patch. So I'll just backport that.
Comment 10 Larry the Git Cow gentoo-dev 2021-03-06 06:04:22 UTC
The bug has been closed via the following commit(s):

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

commit 540d9e57de2084bce17d23ae67c0b27307a67b6b
Author:     Göktürk Yüksek <gokturk@gentoo.org>
AuthorDate: 2021-03-06 05:13:26 +0000
Commit:     Göktürk Yüksek <gokturk@gentoo.org>
CommitDate: 2021-03-06 06:03:59 +0000

    sys-auth/pam_u2f: backport a patch to fix a build failure
    
    There is a missing limits.h include but there are no new releases that
    includes the fix. Backport it.
    
    Closes: https://bugs.gentoo.org/751742
    Package-Manager: Portage-3.0.13, Repoman-3.0.2
    Signed-off-by: Göktürk Yüksek <gokturk@gentoo.org>

 .../files/pam_u2f-1.1.0-include-limits_h.patch     | 41 ++++++++++++++++++++++
 sys-auth/pam_u2f/pam_u2f-1.1.0.ebuild              |  7 ++--
 2 files changed, 46 insertions(+), 2 deletions(-)