Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 871558 - app-forensics/zzuf-0.15_p20190208 - /.../zzat.c: error: call to undeclared function _fgets_chk; ISO C99 and later do not support i
Summary: app-forensics/zzuf-0.15_p20190208 - /.../zzat.c: error: call to undeclared fu...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords:
: 882301 882587 (view as bug list)
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-09-18 18:53 UTC by Toralf Förster
Modified: 2023-08-19 23:06 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.46 KB, text/plain)
2022-09-18 18:53 UTC, Toralf Förster
Details
app-forensics:zzuf-0.15_p20190208:20220918-184733.log (app-forensics:zzuf-0.15_p20190208:20220918-184733.log,30.41 KB, text/plain)
2022-09-18 18:53 UTC, Toralf Förster
Details
clang.tar.bz2 (clang.tar.bz2,3.94 KB, application/x-bzip)
2022-09-18 18:53 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,247.59 KB, text/plain)
2022-09-18 18:53 UTC, Toralf Förster
Details
environment (environment,91.09 KB, text/plain)
2022-09-18 18:53 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,15.57 KB, application/x-bzip)
2022-09-18 18:53 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,15.84 KB, application/x-bzip)
2022-09-18 18:53 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,33.01 KB, application/x-bzip)
2022-09-18 18:53 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 2022-09-18 18:53:17 UTC
too long lines were shrinked:

../config.h:421:10: note: previous definition is here
# define __EXTENSIONS__ 1
         ^
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I/var/tmp/portage/app-forensics/zzuf-0.15_p20190208/work/zzuf-e598eef77a98d77dc6aec6fd2c845e3cd07dc4fd/src -I.. -DLIBZZUF -I/var/tmp/portage/app-forensics/zzuf-0.15_p20190208/work/zzuf-e598eef77a98d77dc6aec6fd2c845e3cd07dc4fd/src/libzzuf -I/var/tmp/porta
/var/tmp/portage/app-forensics/zzuf-0.15_p20190208/work/zzuf-e598eef77a98d77dc6aec6fd2c845e3cd07dc4fd/src/zzat.c:477:26: error: call to undeclared function '__fgets_chk'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
            MY_FREAD(s = __fgets_chk(tmp, l1, l1, f), tmp, s ? strlen(tmp) : 0);
                         ^

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-j4-20220915-203738

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.0
Python 3.10.7
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.63.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.16.1_p1 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
  [1]   php8.1 *
GNU Make 4.3.90

  HEAD of ::gentoo
commit 7ae0f0c2af645cc04d30025016d9b097e7836ed3
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Sep 18 18:17:00 2022 +0000

    2022-09-18 18:16:59 UTC

emerge -qpvO app-forensics/zzuf
[ebuild  N    ] app-forensics/zzuf-0.15_p20190208  ABI_X86="(64) -32 (-x32)"
Comment 1 Toralf Förster gentoo-dev 2022-09-18 18:53:18 UTC
Created attachment 812341 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-18 18:53:19 UTC
Created attachment 812344 [details]
app-forensics:zzuf-0.15_p20190208:20220918-184733.log
Comment 3 Toralf Förster gentoo-dev 2022-09-18 18:53:20 UTC
Created attachment 812347 [details]
clang.tar.bz2
Comment 4 Toralf Förster gentoo-dev 2022-09-18 18:53:21 UTC
Created attachment 812350 [details]
emerge-history.txt
Comment 5 Toralf Förster gentoo-dev 2022-09-18 18:53:23 UTC
Created attachment 812353 [details]
environment
Comment 6 Toralf Förster gentoo-dev 2022-09-18 18:53:24 UTC
Created attachment 812356 [details]
etc.portage.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-09-18 18:53:25 UTC
Created attachment 812359 [details]
logs.tar.bz2
Comment 8 Toralf Förster gentoo-dev 2022-09-18 18:53:26 UTC
Created attachment 812362 [details]
temp.tar.bz2
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-20 20:55:33 UTC
*** Bug 882301 has been marked as a duplicate of this bug. ***
Comment 10 Marek Szuba archtester gentoo-dev 2023-08-19 22:34:38 UTC
*** Bug 882587 has been marked as a duplicate of this bug. ***
Comment 11 Marek Szuba archtester gentoo-dev 2023-08-19 22:48:03 UTC
It would appear that some of these errors were clang-15 false positives which do not appear with clang-16, or indeed gcc-12 with the necessary -Werror options added to CFLAGS. I've just tracked down the remaining two, will push a fix shortly.
Comment 12 Larry the Git Cow gentoo-dev 2023-08-19 23:06:51 UTC
The bug has been closed via the following commit(s):

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

commit 0bac9cd799d02dba8269e8699233d93d0b4b699a
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2023-08-19 23:02:08 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2023-08-19 23:06:41 +0000

    app-forensics/zzuf: add 0.15_p20220529
    
    As far as upstream is concerned this snapshot is identical to _p20190208
    apart from some typos in the documentation having been fixed. On the
    Gentoo side, however, this ebuild adds support for building with
    -Werror=implicit-function-declaration along with removing the previously
    hard-coded '-g -O2' from compiler flags.
    
    Closes: https://bugs.gentoo.org/871558
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 app-forensics/zzuf/Manifest                        |  1 +
 .../zzuf-0.15_autoconf-hardcoded-cflags.patch      | 11 ++++++
 .../zzuf/files/zzuf-0.15_implicit_functions.patch  | 32 +++++++++++++++
 .../zzuf/files/zzuf-0.15_use-after-free.patch      | 20 ++++++++++
 app-forensics/zzuf/zzuf-0.15_p20220529.ebuild      | 45 ++++++++++++++++++++++
 5 files changed, 109 insertions(+)