[Bug 2081717] Re: FTBFS with gcc-14

Launchpad Bug Tracker 2081717 at bugs.launchpad.net
Wed Sep 25 18:35:46 UTC 2024


This bug was fixed in the package discount - 2.2.7-2ubuntu1

---------------
discount (2.2.7-2ubuntu1) oracular; urgency=medium

  * Fix gcc-14 compatibility (Closes: #1074915, LP: #2081717)

 -- Paul Mars <paul.mars at canonical.com>  Mon, 23 Sep 2024 13:39:23 +0200

** Changed in: discount (Ubuntu)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to discount in Ubuntu.
https://bugs.launchpad.net/bugs/2081717

Title:
  FTBFS with gcc-14

Status in discount package in Ubuntu:
  Fix Released
Status in discount package in Debian:
  New

Bug description:
  discount FTBFS with gcc-14

  
  make[1]: Entering directory '/<<PKGBUILDDIR>>'
  cc -Wno-return-type -Wno-implicit-int -I. -Wdate-time -D_FORTIFY_SOURCE=3 -g -O2 -Werror=implicit-function-declaration -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/discount-2.2.7-2build1 -fPIC -c main.c
  main.c: In function ‘main’:
  main.c:311:36: error: passing argument 2 of ‘mkd_e_code_format’ from incompatible pointer type [-Wincompatible-pointer-types]
    311 |             mkd_e_code_format(doc, external_codefmt);
        |                                    ^~~~~~~~~~~~~~~~
        |                                    |
        |                                    char * (*)(char *, int,  char *)
  In file included from main.c:12:
  ./mkdio.h:71:31: note: expected ‘mkd_callback_t’ {aka ‘char * (*)(const char *, const int,  void *)’} but argument is of type ‘char * (*)(char *, int,  char *)’
     71 | void mkd_e_code_format(void*, mkd_callback_t);
        |                               ^~~~~~~~~~~~~~
  make[1]: *** [Makefile:128: main.o] Error 1
  make[1]: Leaving directory '/<<PKGBUILDDIR>>'
  dh_auto_build: error: make -j1 "INSTALL=install --strip-program=true" returned exit code 2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/discount/+bug/2081717/+subscriptions




More information about the foundations-bugs mailing list