[Debian-med-packaging] Bug#1066663: dazzdb: FTBFS: ONElib.c:1793:29: error: implicit declaration of function ‘vasprintf’; did you mean ‘vsprintf’? [-Werror=implicit-function-declaration]

Lucas Nussbaum lucas at debian.org
Wed Mar 13 11:49:11 GMT 2024


Source: dazzdb
Version: 1.0+git20230919.414ad05-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20240313 ftbfs-trixie ftbfs-impfuncdef

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

This is most likely caused by a change in dpkg 1.22.6, that enabled
-Werror=implicit-function-declaration. For more information, see
https://wiki.debian.org/qa.debian.org/FTBFS#A2024-03-13_-Werror.3Dimplicit-function-declaration

Relevant part (hopefully):
> cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O3 -Wall -Wextra -Wno-unused-result -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now  DB2ONE.c DB.c DB.h QV.c QV.h ONElib.c ONElib.h  -lm -lz -o DB2ONE
> ONElib.c: In function ‘oneAddProvenance’:
> ONElib.c:1793:29: error: implicit declaration of function ‘vasprintf’; did you mean ‘vsprintf’? [-Werror=implicit-function-declaration]
>  1793 |   va_start (args, format) ; vasprintf (&p.command, format, args) ; va_end (args) ;
>       |                             ^~~~~~~~~
>       |                             vsprintf
> ONElib.c: In function ‘intGet’:
> ONElib.c:3487:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
>  3487 |       switch (u[0] & 0x07)
>       |       ^~~~~~
> ONElib.c:3498:5: note: here
>  3498 |     case 4:
>       |     ^~~~
> In function ‘intGet’,
>     inlined from ‘ltfRead’ at ONElib.c:3547:7:
> ONElib.c:3502:25: warning: ‘u’ may be used uninitialized [-Wmaybe-uninitialized]
>  3502 |         case 1: *pval = *(I64*)(u+1) | 0xffffffffffff0000 ; return 3 ;
>       |                         ^~~~~~~~~~~~
> ONElib.c: In function ‘ltfRead’:
> ONElib.c:3542:17: note: ‘u’ declared here
>  3542 |   unsigned char u[16] ;
>       |                 ^
> In function ‘intGet’,
>     inlined from ‘ltfRead’ at ONElib.c:3547:7:
> ONElib.c:3503:25: warning: ‘u’ may be used uninitialized [-Wmaybe-uninitialized]
>  3503 |         case 2: *pval = *(I64*)(u+1) | 0xffffffffff000000 ; return 4 ;
>       |                         ^~~~~~~~~~~~
> ONElib.c: In function ‘ltfRead’:
> ONElib.c:3542:17: note: ‘u’ declared here
>  3542 |   unsigned char u[16] ;
>       |                 ^
> In function ‘intGet’,
>     inlined from ‘ltfRead’ at ONElib.c:3547:7:
> ONElib.c:3504:25: warning: ‘u’ may be used uninitialized [-Wmaybe-uninitialized]
>  3504 |         case 3: *pval = *(I64*)(u+1) | 0xffffffff00000000 ; return 5 ;
>       |                         ^~~~~~~~~~~~
> ONElib.c: In function ‘ltfRead’:
> ONElib.c:3542:17: note: ‘u’ declared here
>  3542 |   unsigned char u[16] ;
>       |                 ^
> In function ‘intGet’,
>     inlined from ‘ltfRead’ at ONElib.c:3547:7:
> ONElib.c:3505:25: warning: ‘u’ may be used uninitialized [-Wmaybe-uninitialized]
>  3505 |         case 4: *pval = *(I64*)(u+1) | 0xffffff0000000000 ; return 6 ;
>       |                         ^~~~~~~~~~~~
> ONElib.c: In function ‘ltfRead’:
> ONElib.c:3542:17: note: ‘u’ declared here
>  3542 |   unsigned char u[16] ;
>       |                 ^
> In function ‘intGet’,
>     inlined from ‘ltfRead’ at ONElib.c:3547:7:
> ONElib.c:3506:25: warning: ‘u’ may be used uninitialized [-Wmaybe-uninitialized]
>  3506 |         case 5: *pval = *(I64*)(u+1) | 0xffff000000000000 ; return 7 ;
>       |                         ^~~~~~~~~~~~
> ONElib.c: In function ‘ltfRead’:
> ONElib.c:3542:17: note: ‘u’ declared here
>  3542 |   unsigned char u[16] ;
>       |                 ^
> In function ‘intGet’,
>     inlined from ‘ltfRead’ at ONElib.c:3547:7:
> ONElib.c:3507:25: warning: ‘u’ may be used uninitialized [-Wmaybe-uninitialized]
>  3507 |         case 6: *pval = *(I64*)(u+1) | 0xff00000000000000 ; return 8 ;
>       |                         ^~~~~~~~~~~~
> ONElib.c: In function ‘ltfRead’:
> ONElib.c:3542:17: note: ‘u’ declared here
>  3542 |   unsigned char u[16] ;
>       |                 ^
> In function ‘intGet’,
>     inlined from ‘ltfRead’ at ONElib.c:3547:7:
> ONElib.c:3508:23: warning: ‘u’ may be used uninitialized [-Wmaybe-uninitialized]
>  3508 |         case 7: *pval = *(I64*)(u+1) ; return 9 ;
>       |                 ~~~~~~^~~~~~~~~~~~~~
> ONElib.c: In function ‘ltfRead’:
> ONElib.c:3542:17: note: ‘u’ declared here
>  3542 |   unsigned char u[16] ;
>       |                 ^
> In function ‘intGet’,
>     inlined from ‘ltfRead’ at ONElib.c:3547:7,
>     inlined from ‘readCompressedFields’ at ONElib.c:895:15,
>     inlined from ‘oneReadLine’ at ONElib.c:1038:2:
> ONElib.c:3502:25: warning: ‘u’ may be used uninitialized [-Wmaybe-uninitialized]
>  3502 |         case 1: *pval = *(I64*)(u+1) | 0xffffffffffff0000 ; return 3 ;
>       |                         ^~~~~~~~~~~~
> ONElib.c: In function ‘oneReadLine’:
> ONElib.c:3542:17: note: ‘u’ declared here
>  3542 |   unsigned char u[16] ;
>       |                 ^
> In function ‘intGet’,
>     inlined from ‘ltfRead’ at ONElib.c:3547:7,
>     inlined from ‘readCompressedFields’ at ONElib.c:895:15,
>     inlined from ‘oneReadLine’ at ONElib.c:1038:2:
> ONElib.c:3503:25: warning: ‘u’ may be used uninitialized [-Wmaybe-uninitialized]
>  3503 |         case 2: *pval = *(I64*)(u+1) | 0xffffffffff000000 ; return 4 ;
>       |                         ^~~~~~~~~~~~
> ONElib.c: In function ‘oneReadLine’:
> ONElib.c:3542:17: note: ‘u’ declared here
>  3542 |   unsigned char u[16] ;
>       |                 ^
> In function ‘intGet’,
>     inlined from ‘ltfRead’ at ONElib.c:3547:7,
>     inlined from ‘readCompressedFields’ at ONElib.c:895:15,
>     inlined from ‘oneReadLine’ at ONElib.c:1038:2:
> ONElib.c:3504:25: warning: ‘u’ may be used uninitialized [-Wmaybe-uninitialized]
>  3504 |         case 3: *pval = *(I64*)(u+1) | 0xffffffff00000000 ; return 5 ;
>       |                         ^~~~~~~~~~~~
> ONElib.c: In function ‘oneReadLine’:
> ONElib.c:3542:17: note: ‘u’ declared here
>  3542 |   unsigned char u[16] ;
>       |                 ^
> In function ‘intGet’,
>     inlined from ‘ltfRead’ at ONElib.c:3547:7,
>     inlined from ‘readCompressedFields’ at ONElib.c:895:15,
>     inlined from ‘oneReadLine’ at ONElib.c:1038:2:
> ONElib.c:3505:25: warning: ‘u’ may be used uninitialized [-Wmaybe-uninitialized]
>  3505 |         case 4: *pval = *(I64*)(u+1) | 0xffffff0000000000 ; return 6 ;
>       |                         ^~~~~~~~~~~~
> ONElib.c: In function ‘oneReadLine’:
> ONElib.c:3542:17: note: ‘u’ declared here
>  3542 |   unsigned char u[16] ;
>       |                 ^
> In function ‘intGet’,
>     inlined from ‘ltfRead’ at ONElib.c:3547:7,
>     inlined from ‘readCompressedFields’ at ONElib.c:895:15,
>     inlined from ‘oneReadLine’ at ONElib.c:1038:2:
> ONElib.c:3506:25: warning: ‘u’ may be used uninitialized [-Wmaybe-uninitialized]
>  3506 |         case 5: *pval = *(I64*)(u+1) | 0xffff000000000000 ; return 7 ;
>       |                         ^~~~~~~~~~~~
> ONElib.c: In function ‘oneReadLine’:
> ONElib.c:3542:17: note: ‘u’ declared here
>  3542 |   unsigned char u[16] ;
>       |                 ^
> In function ‘intGet’,
>     inlined from ‘ltfRead’ at ONElib.c:3547:7,
>     inlined from ‘readCompressedFields’ at ONElib.c:895:15,
>     inlined from ‘oneReadLine’ at ONElib.c:1038:2:
> ONElib.c:3507:25: warning: ‘u’ may be used uninitialized [-Wmaybe-uninitialized]
>  3507 |         case 6: *pval = *(I64*)(u+1) | 0xff00000000000000 ; return 8 ;
>       |                         ^~~~~~~~~~~~
> ONElib.c: In function ‘oneReadLine’:
> ONElib.c:3542:17: note: ‘u’ declared here
>  3542 |   unsigned char u[16] ;
>       |                 ^
> In function ‘intGet’,
>     inlined from ‘ltfRead’ at ONElib.c:3547:7,
>     inlined from ‘readCompressedFields’ at ONElib.c:895:15,
>     inlined from ‘oneReadLine’ at ONElib.c:1038:2:
> ONElib.c:3508:23: warning: ‘u’ may be used uninitialized [-Wmaybe-uninitialized]
>  3508 |         case 7: *pval = *(I64*)(u+1) ; return 9 ;
>       |                 ~~~~~~^~~~~~~~~~~~~~
> ONElib.c: In function ‘oneReadLine’:
> ONElib.c:3542:17: note: ‘u’ declared here
>  3542 |   unsigned char u[16] ;
>       |                 ^
> cc1: some warnings being treated as errors
> make[1]: *** [<builtin>: DB2ONE] Error 1


The full build log is available from:
http://qa-logs.debian.net/2024/03/13/dazzdb_1.0+git20230919.414ad05-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240313;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240313&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Debian-med-packaging mailing list