Bug#646457: sundials: FTBFS: ./cvode.c:4131:5: error: format not a string literal and no format arguments [-Werror=format-security]

peter green plugwash at p10link.net
Sat Nov 12 13:42:53 UTC 2011


tags 646457 +patch
thanks

>  cc -I./../../include -I../../include -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -c ./cvode.c  -fPIC -DPIC -o .libs/cvode.o
> ./cvode.c: In function 'CVProcessError':
> ./cvode.c:4131:5: error: format not a string literal and no format arguments [-Werror=format-security]
> cc1: some warnings being treated as errors
> 
> make[2]: *** [cvode.lo] Error 1

There seems to be a distinct lack of proper error handling in the build 
process. After the failure the build process continues for ages before 
finally erroring out much later in the build with a missing file.

Still i've made a patch that fixes the format security errors and that 
seems to make the package build successfully. Just add it to the quilt 
series.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-format-error.patch
Type: text/x-diff
Size: 2365 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20111112/8a3cf6c3/attachment.patch>


More information about the debian-science-maintainers mailing list