Bug#812621: libsdl2-ttf: FTBFS - format not a string literal and no format arguments

Michael Tautschnig mt at debian.org
Mon Jan 25 16:34:31 UTC 2016


Package: libsdl2-ttf
Version: 2.0.12+dfsg1-2
Severity: serious
Usertags: goto-cc

During a rebuild of all Debian packages in a clean sid chroot (using cowbuilder
and pbuilder) the build failed with the following error.

[...]
make[1]: Entering directory '/srv/jenkins-slave/workspace/sid-goto-cc-libsdl2-ttf/libsdl2-ttf-2.0.12+dfsg1'
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DPACKAGE=\"SDL2_ttf\" -DVERSION=\"2.0.12\" -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -I.   -Wdate-time  -g -O0 -fstack-protector-strong -Wformat -Werror=format-security -pipe -Wall -I/usr/include/freetype2 -D_REENTRANT -I/usr/include/SDL2  -DHAVE_OPENGL -c -o SDL_ttf.lo SDL_ttf.c
libtool: compile:  gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DPACKAGE=\"SDL2_ttf\" -DVERSION=\"2.0.12\" -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -I. -Wdate-time -g -O0 -fstack-protector-strong -Wformat -Werror=format-security -pipe -Wall -I/usr/include/freetype2 -D_REENTRANT -I/usr/include/SDL2 -DHAVE_OPENGL -c SDL_ttf.c  -fPIC -DPIC -o .libs/SDL_ttf.o
SDL_ttf.c: In function 'TTF_SetFTError':
SDL_ttf.c:331:5: error: format not a string literal and no format arguments [-Werror=format-security]
     TTF_SetError(msg);
     ^
SDL_ttf.c: In function 'TTF_OpenFontIndex':
SDL_ttf.c:552:9: error: format not a string literal and no format arguments [-Werror=format-security]
         TTF_SetError(SDL_GetError());
         ^
SDL_ttf.c: In function 'UTF8_getch':
SDL_ttf.c:1002:14: warning: variable 'overlong' set but not used [-Wunused-but-set-variable]
     SDL_bool overlong = SDL_FALSE;
              ^
SDL_ttf.c: In function 'TTF_RenderUTF8_Blended_Wrapped':
SDL_ttf.c:1919:13: warning: unused variable 'line' [-Wunused-variable]
         int line = 0;
             ^
cc1: some warnings being treated as errors
Makefile:557: recipe for target 'SDL_ttf.lo' failed


The full build log is attached; please do let me know if the problem is
unreproducible, in which case I shall try to investigate further.

Best,
Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libsdl2-ttf-build-log.txt.gz
Type: application/x-gunzip
Size: 11683 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-sdl-maintainers/attachments/20160125/d54d6dad/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-sdl-maintainers/attachments/20160125/d54d6dad/attachment-0001.sig>


More information about the Pkg-sdl-maintainers mailing list