[This bug is 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-14/g++-14, but succeeds to build with gcc-13/g++-13. The
severity of this report will be raised before the trixie release.
The full build log can be found at:
http://qa-logs.debian.net/2024/07/01/phnxdeco_0.33-3.2_unstable_gccexp.log
The last lines of the build log are at the end of this report.
To build with GCC 14, either set CC=gcc-14 CXX=g++-14 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.
apt-get -t=experimental install g++
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-14/porting_to.html
[...]
cc phnxfunc.c -c -o phnxfunc.o -fpack-struct
phnxfunc.c: In function ‘FoundAt’:
phnxfunc.c:89:20: error: implicit declaration of function ‘memcmp’ [-Wimplicit-function-declaration]
89 | if(memcmp( Buf + i, Pattern, Len ) == 0 )
| ^~~~~~
phnxfunc.c:14:1: note: include ‘<string.h>’ or provide a declaration of ‘memcmp’
13 | #include <stdio.h>
+++ |+#include <string.h>
14 |
phnxfunc.c:89:46: warning: ‘memcmp’ argument 3 promotes to ‘int’ where ‘long unsigned int’ is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch]
89 | if(memcmp( Buf + i, Pattern, Len ) == 0 )
| ^~~
<built-in>: note: built-in ‘memcmp’ declared here
phnxfunc.c: In function ‘GetFullDate’:
phnxfunc.c:115:21: error: implicit declaration of function ‘atoi’ [-Wimplicit-function-declaration]
115 | if((atoi(year) >= 0) && (atoi(year) < 70)) sprintf(Buf,"%.2s %s %s%.2s",day,Months[atoi(mon)],"20",year);
| ^~~~
phnxfunc.c:118:31: warning: function returns address of local variable [-Wreturn-local-addr]
118 | return(Buf);
| ^
phnxfunc.c: In function ‘decodeM3’:
phnxfunc.c:188:33: error: implicit declaration of function ‘calloc’ [-Wimplicit-function-declaration]
188 | Buffer = (byte*)calloc(4096,1);
| ^~~~~~
phnxfunc.c:14:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘calloc’
13 | #include <stdio.h>
+++ |+#include <stdlib.h>
14 |
phnxfunc.c:188:33: warning: incompatible implicit declaration of built-in function ‘calloc’ [-Wbuiltin-declaration-mismatch]
188 | Buffer = (byte*)calloc(4096,1);
| ^~~~~~
phnxfunc.c:188:33: note: include ‘<stdlib.h>’ or provide a declaration of ‘calloc’
phnxfunc.c:198:46: error: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
198 | if(Now >= RealLen) { free(Buffer); return; }
| ^~~~
phnxfunc.c:198:46: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
phnxfunc.c:198:46: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
phnxfunc.c:198:46: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
phnxfunc.c:205:48: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
205 | if(Now++ >= RealLen) { free(Buffer); return; }
| ^~~~
phnxfunc.c:205:48: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
phnxfunc.c:214:46: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
214 | if(Now >= RealLen) { free(Buffer); return; }
| ^~~~
phnxfunc.c:214:46: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
phnxfunc.c:217:46: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
217 | if(Now >= RealLen) { free(Buffer); return; }
| ^~~~
phnxfunc.c:217:46: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
phnxfunc.c: In function ‘TotalSec’:
phnxfunc.c:311:41: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
311 | exit(1);
| ^~~~
phnxfunc.c:311:41: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
phnxfunc.c:311:41: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
phnxfunc.c:311:41: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
phnxfunc.c:327:33: error: implicit declaration of function ‘decode’; did you mean ‘decodeM3’? [-Wimplicit-function-declaration]
327 | decode(interface);
| ^~~~~~
| decodeM3
phnxfunc.c: In function ‘TotalSecM’:
phnxfunc.c:462:41: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
462 | exit(1);
| ^~~~
phnxfunc.c:462:41: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
make[1]: *** [Makefile:19: phnxfunc] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>/src'
make: *** [/usr/share/cdbs/1/class/makefile.mk:77: debian/stamp-makefile-build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2