[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1096319: aprx: ftbfs with GCC-15



Package: src:aprx
Version: 2.9.1-3
Severity: important
Tags: sid forky
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-15

[This bug is NOT targeted to the upcoming trixie release]

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-15/g++-15, but succeeds to build with gcc-14/g++-14. The
severity of this report will be raised before the forky release.

The full build log can be found at:
http://qa-logs.debian.net/2025/02/16/amd64exp/aprx_2.9.1-3_unstable_gccexp.log.gz
The last lines of the build log are at the end of this report.

To build with GCC 15, either set CC=gcc-15 CXX=g++-15 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS.
Other Common build failures are new warnings resulting in build failures
with -Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-15/porting_to.html

[...]
interface.c:1824:52: warning: format ‘%p’ expects argument of type ‘void *’, but argument 2 has type ‘const struct aprx_interface *’ [-Wformat=]
 1824 |           printf("interface_transmit_beacon() aif=%p, aif->txok=%d aif->callsign='%s'\n",
      |                                                   ~^
      |                                                    |
      |                                                    void *
 1825 |                  aif, aif && aif->tx_ok ? 1 : 0, aif ? aif->callsign : "<nil>");
      |                  ~~~                                
      |                  |
      |                  const struct aprx_interface *
pbuf.c: In function ‘pbuf_free’:
pbuf.c:57:43: warning: format ‘%p’ expects argument of type ‘void *’, but argument 2 has type ‘struct pbuf_t *’ [-Wformat=]
   57 |         if (debug > 1) printf("pbuf_free(%p)\n",pb);
      |                                          ~^     ~~
      |                                           |     |
      |                                           |     struct pbuf_t *
      |                                           void *
pbuf.c: In function ‘pbuf_alloc’:
pbuf.c:81:54: warning: format ‘%p’ expects argument of type ‘void *’, but argument 4 has type ‘struct pbuf_t *’ [-Wformat=]
   81 |         if (debug > 1) printf("pbuf_alloc(%d,%d) -> %p\n",axlen,tnc2len,pb);
      |                                                     ~^                  ~~
      |                                                      |                  |
      |                                                      void *             struct pbuf_t *
make[1]: *** [Makefile:142: interface.o] Error 1
make[1]: *** Waiting for unfinished jobs....
digipeater.c: In function ‘digipeater_config_source’:
digipeater.c:745:59: warning: format ‘%p’ expects argument of type ‘void *’, but argument 2 has type ‘struct aprx_interface *’ [-Wformat=]
  745 |                                 printf(" .. source_aif = %p\n", source_aif);
      |                                                          ~^     ~~~~~~~~~~
      |                                                           |     |
      |                                                           |     struct aprx_interface *
      |                                                           void *
digipeater.c:954:64: warning: format ‘%p’ expects argument of type ‘void *’, but argument 2 has type ‘struct digipeater_source *’ [-Wformat=]
  954 |         if (debug>1)printf(" .. <source> definition returning %p\n",source);
      |                                                               ~^    ~~~~~~
      |                                                                |    |
      |                                                                |    struct digipeater_source *
      |                                                                void *
digipeater.c: In function ‘digipeater_receive’:
digipeater.c:1668:82: warning: format ‘%p’ expects argument of type ‘void *’, but argument 4 has type ‘struct pbuf_t *’ [-Wformat=]
 1668 |                         if (debug) printf("%ld ENTER VISCOUS QUEUE: len=%d pbuf=%p\n",
      |                                                                                 ~^
      |                                                                                  |
      |                                                                                  void *
 1669 |                                         tick.tv_sec, src->viscous_queue_size, pb);
      |                                                                               ~~  
      |                                                                               |
      |                                                                               struct pbuf_t *
digipeater.c: In function ‘digipeater_postpoll’:
digipeater.c:1795:90: warning: format ‘%p’ expects argument of type ‘void *’, but argument 3 has type ‘struct dupe_record_t *’ [-Wformat=]
 1795 |                                         if (debug)printf("%ld LEAVE VISCOUS QUEUE: dupe=%p pbuf=%p\n",
      |                                                                                         ~^
      |                                                                                          |
      |                                                                                          void *
 1796 |                                                         tick.tv_sec, dupe, dupe->pbuf);
      |                                                                      ~~~~                 
      |                                                                      |
      |                                                                      struct dupe_record_t *
digipeater.c:1795:98: warning: format ‘%p’ expects argument of type ‘void *’, but argument 4 has type ‘struct pbuf_t *’ [-Wformat=]
 1795 |                                         if (debug)printf("%ld LEAVE VISCOUS QUEUE: dupe=%p pbuf=%p\n",
      |                                                                                                 ~^
      |                                                                                                  |
      |                                                                                                  void *
 1796 |                                                         tick.tv_sec, dupe, dupe->pbuf);
      |                                                                            ~~~~~~~~~~             
      |                                                                                |
      |                                                                                struct pbuf_t *
make[1]: Leaving directory '/build/reproducible-path/aprx-2.9.1'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:23: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


Reply to: