Bug#1066433: uim: FTBFS: bsd-snprintf.c:104:38: error: assignment to expression with array type

2024-03-24 Thread Andreas Metzler
Control: tags -1 patch

On 2024-03-13 Lucas Nussbaum  wrote:
> Source: uim
> Version: 1:1.8.8-9.2
> Severity: serious
> Justification: FTBFS
> Tags: trixie sid ftbfs
> User: lu...@debian.org
> Usertags: ftbfs-20240313 ftbfs-trixie

> Hi,

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


> Relevant part (hopefully):
[...]
> > bsd-snprintf.c: In function ‘dopr’:
> > bsd-snprintf.c:104:38: error: assignment to expression with array type
> >   104 | #   define VA_COPY(dest, src) (dest) = (src)
> >   |  ^
> > bsd-snprintf.c:186:9: note: in expansion of macro ‘VA_COPY’
> >   186 | VA_COPY(args, args_in);
> >   | ^~~
[...]

I intend to fix this by NMU.

cu Andreas
Avoid an undeclared exit function call in the snprintf configure check.
This improves compatibility with strict(er) C99 compilers, which may
not support implicit function declarations because they were removed
from the C language in 1999.

Submitted upstream: 

diff --git a/configure.ac b/configure.ac
index 042d68927b76435c..84fcd38c9d3245db 100644
--- a/configure.ac
+++ b/configure.ac
@@ -595,7 +595,7 @@ if test "x$ac_cv_func_snprintf" = xyes; then
 	AC_RUN_IFELSE(
 		[AC_LANG_SOURCE([[
 #include 
-int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
+int main(void){char b[5];snprintf(b,5,"123456789");return b[4]!='\0';}
 		]])],
 		[AC_MSG_RESULT(yes)],
 		[


Processed: Re: Bug#1066433: uim: FTBFS: bsd-snprintf.c:104:38: error: assignment to expression with array type

2024-03-24 Thread Debian Bug Tracking System
Processing control commands:

> tags -1 patch
Bug #1066433 [src:uim] uim: FTBFS: bsd-snprintf.c:104:38: error: assignment to 
expression with array type
Added tag(s) patch.

-- 
1066433: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066433
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#1066433: uim: FTBFS: bsd-snprintf.c:104:38: error: assignment to expression with array type

2024-03-13 Thread Lucas Nussbaum
Source: uim
Version: 1:1.8.8-9.2
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20240313 ftbfs-trixie

Hi,

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


Relevant part (hopefully):
> /bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. 
> -I../uim -I../replace -I../uim  -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 
> -Werror=implicit-function-declaration -ffile-prefix-map=/<>=. 
> -fstack-protector-strong -fstack-clash-protection -Wformat 
> -Werror=format-security -fcf-protection -O1 -pedantic -pipe -Wall 
> -Wchar-subscripts -Wmissing-declarations -Wredundant-decls 
> -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align 
> -Wsign-compare -Wno-long-long -Wno-overlength-strings -DNDEBUG -c -o 
> getpeereid.lo getpeereid.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../uim -I../replace -I../uim 
> -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O1 
> -pedantic -pipe -Wall -Wchar-subscripts -Wmissing-declarations 
> -Wredundant-decls -Wmissing-prototypes -Wnested-externs -Wpointer-arith 
> -Wcast-align -Wsign-compare -Wno-long-long -Wno-overlength-strings -DNDEBUG 
> -c daemon.c  -fPIC -DPIC -o .libs/daemon.o
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../uim -I../replace -I../uim 
> -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O1 
> -pedantic -pipe -Wall -Wchar-subscripts -Wmissing-declarations 
> -Wredundant-decls -Wmissing-prototypes -Wnested-externs -Wpointer-arith 
> -Wcast-align -Wsign-compare -Wno-long-long -Wno-overlength-strings -DNDEBUG 
> -c bsd-poll.c  -fPIC -DPIC -o .libs/bsd-poll.o
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../uim -I../replace -I../uim 
> -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O1 
> -pedantic -pipe -Wall -Wchar-subscripts -Wmissing-declarations 
> -Wredundant-decls -Wmissing-prototypes -Wnested-externs -Wpointer-arith 
> -Wcast-align -Wsign-compare -Wno-long-long -Wno-overlength-strings -DNDEBUG 
> -c bsd-misc.c  -fPIC -DPIC -o .libs/bsd-misc.o
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../uim -I../replace -I../uim 
> -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O1 
> -pedantic -pipe -Wall -Wchar-subscripts -Wmissing-declarations 
> -Wredundant-decls -Wmissing-prototypes -Wnested-externs -Wpointer-arith 
> -Wcast-align -Wsign-compare -Wno-long-long -Wno-overlength-strings -DNDEBUG 
> -c bsd-snprintf.c  -fPIC -DPIC -o .libs/bsd-snprintf.o
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../uim -I../replace -I../uim 
> -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O1 
> -pedantic -pipe -Wall -Wchar-subscripts -Wmissing-declarations 
> -Wredundant-decls -Wmissing-prototypes -Wnested-externs -Wpointer-arith 
> -Wcast-align -Wsign-compare -Wno-long-long -Wno-overlength-strings -DNDEBUG 
> -c fake-rfc2553.c  -fPIC -DPIC -o .libs/fake-rfc2553.o
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../uim -I../replace -I../uim 
> -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O1 
> -pedantic -pipe -Wall -Wchar-subscripts -Wmissing-declarations 
> -Wredundant-decls -Wmissing-prototypes -Wnested-externs -Wpointer-arith 
> -Wcast-align -Wsign-compare -Wno-long-long -Wno-overlength-strings -DNDEBUG 
> -c bsd-asprintf.c  -fPIC -DPIC -o .libs/bsd-asprintf.o
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../uim -I../replace -I../uim 
> -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O1 
> -pedantic -pipe -Wall -Wchar-subscripts -Wmissing-declarations 
> -Wredundant-decls -Wmissing-prototypes -Wnested-externs -Wpointer-arith 
> -Wcast-align -Wsign-compare -Wno-long-long -Wno-overlength-strings -DNDEBUG 
> -c bsd-waitpid.c  -fPIC -DPIC -o .libs/bsd-waitpid.o
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../uim -I../replace -I../uim 
> -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<>=. -fstack-protector-strong