Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 875530 - x11-plugins/wmcalendar-0.5.2-r2 - calendar.c: error: implicit declaration of function get_debug
Summary: x11-plugins/wmcalendar-0.5.2-r2 - calendar.c: error: implicit declaration of ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-10-05 21:13 UTC by Toralf Förster
Modified: 2024-04-28 06:55 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,19.65 KB, text/plain)
2022-10-05 21:13 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,69.45 KB, application/x-bzip)
2022-10-05 21:13 UTC, Toralf Förster
Details
environment (environment,63.18 KB, text/plain)
2022-10-05 21:13 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,23.33 KB, application/x-bzip)
2022-10-05 21:13 UTC, Toralf Förster
Details
x11-plugins:wmcalendar-0.5.2-r2:20221005-192055.log (x11-plugins:wmcalendar-0.5.2-r2:20221005-192055.log,12.88 KB, text/plain)
2022-10-05 21:13 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-10-05 21:13:16 UTC
calendar.c:19:9: warning: format not a string literal and no format arguments [-Wformat-security]
   19 |         printf(msg);
      |         ^~~~~~
calendar.c: In function calendar:
calendar.c:78:8: error: implicit declaration of function get_debug; did you mean g_debug? [-Werror=implicit-function-declaration]
   78 |     if(get_debug())printf("check for new calendar data\n");
      |        ^~~~~~~~~

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

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

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.2
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.2
Python 3.10.7
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.64.0 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.16.0 [icedtea-bin-8]
2)	OpenJDK 11.0.16.1_p1 [openjdk-11]
3)	OpenJDK 17.0.5_p5 [openjdk-17]
4)	Eclipse Temurin JDK 11.0.16.1_p1 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
6)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8 
  [2]   openjdk-11 
  [3]   openjdk-17 
  [4]   openjdk-bin-8 
  [5]   openjdk-bin-11 
  [6]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
GNU Make 4.3

  HEAD of ::gentoo
commit e90a89d8ceab27e57cc37f398c823eb8fa757a2a
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Oct 5 18:03:23 2022 +0000

    2022-10-05 18:03:23 UTC

emerge -qpvO x11-plugins/wmcalendar
[ebuild  N    ] x11-plugins/wmcalendar-0.5.2-r2
Comment 1 Toralf Förster gentoo-dev 2022-10-05 21:13:17 UTC
Created attachment 821650 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-05 21:13:19 UTC
Created attachment 821653 [details]
emerge-history.txt.bz2
Comment 3 Toralf Förster gentoo-dev 2022-10-05 21:13:20 UTC
Created attachment 821656 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-10-05 21:13:21 UTC
Created attachment 821659 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-10-05 21:13:22 UTC
Created attachment 821662 [details]
x11-plugins:wmcalendar-0.5.2-r2:20221005-192055.log
Comment 6 Larry the Git Cow gentoo-dev 2024-04-28 06:55:02 UTC
The bug has been closed via the following commit(s):

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

commit 054d5d2c0cfd27716cf924e7f5b335a43dcf1217
Author:     Eli Schwartz <eschwartz93@gmail.com>
AuthorDate: 2024-04-28 05:42:46 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-04-28 06:54:26 +0000

    x11-plugins/wmcalendar: add patches to fix horrible missing function decls
    
    We kill two birds with one stone. It fails the c99 porting tracker and
    will not compile with Modern C compilers such as gcc 14 or clang 16, and
    it ALSO fixes LTO errors since -Werror=lto-type-mismatch complained when
    the implicit function declaration's assumed type was incorrect and
    didn't match the type of the actual live instance of the function.
    
    While we are at it, fix some additional (memory access) errors
    discovered by LTO in the form of -Waggressive-loop-optimizations.
    
    Closes: https://bugs.gentoo.org/875530
    Closes: https://bugs.gentoo.org/881461
    Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 ...-typo-causing-out-of-bounds-memory-access.patch | 27 ++++++++++
 x11-plugins/wmcalendar/files/wmcalendar-c99.patch  | 63 ++++++++++++++++++++++
 x11-plugins/wmcalendar/wmcalendar-0.5.2-r3.ebuild  | 39 ++++++++++++++
 3 files changed, 129 insertions(+)