Public bug reported:

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 full build log can be found at:
https://launchpadlibrarian.net/818367258/buildlog_ubuntu-questing-amd64.procmail_3.24-1ubuntu3_BUILDING.txt.gz
The last lines of the build log are at the end of this report.

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

[...]
/usr/bin/make CC="gcc" CFLAGS0="" \
        LDFLAGS0="`dpkg-buildflags --get LDFLAGS`" SEARCHLIBS="-lm" autoconf.h
make[2]: Entering directory '/<<PKGBUILDDIR>>'
/bin/sh ./initmake /bin/sh "/bin/sh" "/bin/rm -f" "mv -f" "ln" \
 "-lm" \
 "/lib /usr/lib" \
 /dev/null "/usr/bin/make" o \
 "gcc" " " "-Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -Wl,-z,relro  
" "procmail lockfile formail mailstat" \
 "procmail formail lockfile mailstat" \
 "procmailrc procmailsc procmailex" "src man" \
 "/usr/bin" \
 "strip"
gcc seems to work fine, using that as the C-compiler
        ...scanning for 1 libraries...
Added LDFLAGS= -lm -lc
cd src; /usr/bin/make ../autoconf.h
make[3]: Entering directory '/<<PKGBUILDDIR>>/src'
/bin/sh ./autoconf /bin/sh "/bin/rm -f" "mv -f" /dev/null \
 "grep -F" "/usr/bin/make" o "100       " \
 "/usr/bin" ../autoconf.h
Using the following directories for the LOCKINGTESTs:
 100
Initiating fcntl()/kernel-locking-support tests
Whoeaaa!  There's something fishy going on here.
You have a look and see if you detect anything uncanny:
*******************************************************
make[4]: Entering directory '/<<PKGBUILDDIR>>/src'
gcc -c   _autotst.c
_autotst.c: In function ‘main’:
_autotst.c:166:24: error: passing argument 2 of ‘signal’ from incompatible 
pointer type [-Wincompatible-pointer-types]
  166 |         signal(SIGTERM,Terminate);
      |                        ^~~~~~~~~
      |                        |
      |                        void (*)(void)
In file included from _autotst.c:10:
/usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void 
(*)(int)’} but argument is of type ‘void (*)(void)’
   88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
      |                                          ~~~~~~~~~~~~~~~^~~~~~~~~
_autotst.c:71:6: note: ‘Terminate’ declared here
   71 | void Terminate()
      |      ^~~~~~~~~
/usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here
   72 | typedef void (*__sighandler_t) (int);
      |                ^~~~~~~~~~~~~~
_autotst.c:179:63: error: passing argument 2 of ‘signal’ from incompatible 
pointer type [-Wincompatible-pointer-types]
  179 |            kill(ppid,SIGKILL);fdcollect=pip[0];signal(SIGALRM,stimeout);
      |                                                               ^~~~~~~~
      |                                                               |
      |                                                               void 
(*)(void)
/usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void 
(*)(int)’} but argument is of type ‘void (*)(void)’
   88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
      |                                          ~~~~~~~~~~~~~~~^~~~~~~~~
_autotst.c:67:6: note: ‘stimeout’ declared here
   67 | void stimeout()
      |      ^~~~~~~~
/usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here
   72 | typedef void (*__sighandler_t) (int);
      |                ^~~~~~~~~~~~~~
make[4]: *** [Makefile:239: _autotst.o] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src'
*******************************************************
I suggest you take a look at the definition of LDFLAGS*
in the Makefile before you try make again.
make[3]: *** [Makefile:124: ../autoconf.h] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:154: autoconf.h] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [debian/rules:12: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:3: build] Error 2
dpkg-buildpackage.pl: error: debian/rules build subprocess returned exit status 
2

** Affects: procmail (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: procmail (Debian)
     Importance: Unknown
         Status: Unknown


** Tags: ftbfs

** Bug watch added: Debian Bug tracker #1097653
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1097653

** Also affects: procmail (Debian) via
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1097653
   Importance: Unknown
       Status: Unknown

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

Title:
  FTBFS with GCC-15

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to