Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.rc > #283696 > unrolled thread

Bug#966885: spring: FTBFS: SHA512.cpp:25:3: error: ‘snprintf’ was not declared in this scope

Started byLucas Nussbaum <lucas@debian.org>
First post2020-08-03 10:30 +0200
Last post2020-08-05 15:10 +0200
Articles 4 — 3 participants

Back to article view | Back to linux.debian.bugs.rc


Contents

  Bug#966885: spring: FTBFS: SHA512.cpp:25:3: error: ‘snprintf’ was not declared in this scope Lucas Nussbaum <lucas@debian.org> - 2020-08-03 10:30 +0200
    Processed: Bug#966885 marked as pending in spring "Debian Bug Tracking System" <owner@bugs.debian.org> - 2020-08-05 14:50 +0200
    Bug#966885: marked as pending in spring Markus Koschany <noreply@salsa.debian.org> - 2020-08-05 14:50 +0200
    Bug#966885: marked as done (spring: FTBFS: SHA512.cpp:25:3:  error: ‘snprintf’ was not declared in this  scope) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2020-08-05 15:10 +0200

#283696 — Bug#966885: spring: FTBFS: SHA512.cpp:25:3: error: ‘snprintf’ was not declared in this scope

FromLucas Nussbaum <lucas@debian.org>
Date2020-08-03 10:30 +0200
SubjectBug#966885: spring: FTBFS: SHA512.cpp:25:3: error: ‘snprintf’ was not declared in this scope
Message-ID<AzE15-Du-41@gated-at.bofh.it>
Source: spring
Version: 104.0+dfsg-6
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20200802 ftbfs-bullseye

Hi,

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

Relevant part (hopefully):
> cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/rts/builds/legacy && /usr/bin/c++  -DASIO_STANDALONE -DBOOST_ALL_NO_LIB -DBOOST_NO_FENV_H -DBOOST_REGEX_DYN_LINK -DBOOST_SYSTEM_DYN_LINK -DSPRING_DATADIR=\"/usr/share/games/spring:/usr/lib/spring\" -DSTREFLOP_SSE -DSYNCCHECK -DTHREADPOOL -DUSE_LIBSQUISH -D_GLIBCXX_USE_NANOSLEEP -D_RANDOM_TCC -I/<<PKGBUILDDIR>>/rts/lib/lua/include -I/<<PKGBUILDDIR>>/include/AL -I/<<PKGBUILDDIR>>/rts -I/<<PKGBUILDDIR>>/rts/lib/assimp/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src-generated/engine -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/rts/lib/gflags/include -I/usr/include/SDL2 -I/usr/include/freetype2 -I/usr/include/AL -I/<<PKGBUILDDIR>>/rts/lib/asio/include -I/<<PKGBUILDDIR>>/rts/lib/slimsig/include  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -std=gnu++11 -fdiagnostics-color=auto -mtune=generic -msse -mfpmath=sse -mno-sse2 -mno-sse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4 -mno-sse4a -mno-avx -mno-fma -mno-fma4 -mno-xop -mno-lwp -mno-avx2 -fsingle-precision-constant -frounding-math -mieee-fp -pipe -fno-strict-aliasing  -fvisibility=hidden  -fvisibility-inlines-hidden -pthread  -O2      -Wformat -Wformat-security -DNDEBUG -g   -o CMakeFiles/engine-legacy.dir/__/__/System/Platform/SharedLib.cpp.o -c /<<PKGBUILDDIR>>/rts/System/Platform/SharedLib.cpp
> /<<PKGBUILDDIR>>/rts/System/Sync/SHA512.cpp: In function ‘void sha512::dump_digest(const std::array<unsigned char, 64>&, std::array<char, 129>&)’:
> /<<PKGBUILDDIR>>/rts/System/Sync/SHA512.cpp:25:3: error: ‘snprintf’ was not declared in this scope
>    25 |   snprintf(hex_chars.data() + (i * 2), hex_chars.size() - (i * 2), "%02x", sha_bytes[i]);
>       |   ^~~~~~~~
> /<<PKGBUILDDIR>>/rts/System/Sync/SHA512.cpp:7:1: note: ‘snprintf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
>     6 | #include "SHA512.hpp"
>   +++ |+#include <cstdio>
>     7 | 
> make[4]: *** [rts/builds/headless/CMakeFiles/engine-headless.dir/build.make:4174: rts/builds/headless/CMakeFiles/engine-headless.dir/__/__/System/Sync/SHA512.cpp.o] Error 1

The full build log is available from:
   http://qa-logs.debian.net/2020/08/02/spring_104.0+dfsg-6_unstable.log

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!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.

[toc] | [next] | [standalone]


#284106 — Processed: Bug#966885 marked as pending in spring

From"Debian Bug Tracking System" <owner@bugs.debian.org>
Date2020-08-05 14:50 +0200
SubjectProcessed: Bug#966885 marked as pending in spring
Message-ID<AAr1L-5hT-1@gated-at.bofh.it>
In reply to#283696
Processing control commands:

> tag -1 pending
Bug #966885 [src:spring] spring: FTBFS: SHA512.cpp:25:3: error: ‘snprintf’ was not declared in this scope
Added tag(s) pending.

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

[toc] | [prev] | [next] | [standalone]


#284107 — Bug#966885: marked as pending in spring

FromMarkus Koschany <noreply@salsa.debian.org>
Date2020-08-05 14:50 +0200
SubjectBug#966885: marked as pending in spring
Message-ID<AAr1L-5hT-3@gated-at.bofh.it>
In reply to#283696
Control: tag -1 pending

Hello,

Bug #966885 in spring reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/games-team/spring/-/commit/e53b8e4b413013fd4860dc0bdbbfa2defe5445d7

------------------------------------------------------------------------
Fix build failure with gcc 10 due to missing include.

Closes: #966885
Thanks: Steve Langasek for the patch.
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/966885

[toc] | [prev] | [next] | [standalone]


#284111 — Bug#966885: marked as done (spring: FTBFS: SHA512.cpp:25:3: error: ‘snprintf’ was not declared in this scope)

From"Debian Bug Tracking System" <owner@bugs.debian.org>
Date2020-08-05 15:10 +0200
SubjectBug#966885: marked as done (spring: FTBFS: SHA512.cpp:25:3: error: ‘snprintf’ was not declared in this scope)
Message-ID<AArl8-5DY-5@gated-at.bofh.it>
In reply to#283696

[Multipart message — attachments visible in raw view] — view raw

Your message dated Wed, 05 Aug 2020 13:03:50 +0000
with message-id <E1k3J5C-000A12-BY@fasolo.debian.org>
and subject line Bug#966885: fixed in spring 104.0+dfsg-7
has caused the Debian Bug report #966885,
regarding spring: FTBFS: SHA512.cpp:25:3: error: ‘snprintf’ was not declared in this scope
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.bugs.rc


csiph-web