Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#489 closed defect (fixed)

Missing cstdio in test suite

Reported by: jbergstroem Owned by: Olly Betts
Priority: normal Milestone: 1.2.2
Component: Test Suite Version: SVN trunk
Severity: major Keywords:
Cc: Blocked By:
Blocking: Operating System: All

Description

While running make check, I get this:

g++ -DHAVE_CONFIG_H -I. -I.. -I../common -I../include -I../include -I./harness   -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-keywords -Wundef -Wshadow -Woverloaded-virtual -Wstrict-null-sentinel -Wshadow -Wstrict-overflow=1 -Winit-self -Wlogical-op -Wmissing-declarations -fvisibility=hidden -Werror -g -O2 -MT harness/testsuite.o -MD -MP -MF $depbase.Tpo -c -o harness/testsuite.o harness/testsuite.cc &&\
mv -f $depbase.Tpo $depbase.Po
harness/testsuite.cc: In member function ‘test_driver::test_result test_driver::runtest(const test_desc*)’:
harness/testsuite.cc:552: error: ‘sprintf’ was not declared in this scope

..see attached patch for a fix.

Attachments (1)

fix.patch (589 bytes ) - added by jbergstroem 14 years ago.
compile fix

Download all attachments as: .zip

Change History (3)

by jbergstroem, 14 years ago

Attachment: fix.patch added

compile fix

comment:1 by Olly Betts, 14 years ago

Milestone: 1.2.2
Resolution: fixed
Status: newclosed

Fixed in trunk r14753. This sprintf isn't present in 1.0.x, so nothing to backport.

It would be useful to know the platform and compiler (and version) for the release notes.

comment:2 by jbergstroem, 14 years ago

A Gentoo box with GCC 4.4.4 on x86_64-pc-linux-gnu

Note: See TracTickets for help on using tickets.