GNOME Bugzilla – Bug 469872
test_copy_invalid_slot.cc missing includes
Last modified: 2009-12-29 12:42:48 UTC
Please describe the problem: test_copy_invalid_slot.cc is missing #include <stdlib.h> #include <string.h> Steps to reproduce: 1. man malloc 2. mam memcpy Actual results: CC -I. -I.. -I.. -I.. -library=stlport4 -c -o test_copy_invalid_slot.o test_copy_invalid_slot.cc "test_copy_invalid_slot.cc", line 24: Error: The function "malloc" must have a prototype. "test_copy_invalid_slot.cc", line 25: Error: The function "memset" must have a prototype. "test_copy_invalid_slot.cc", line 33: Error: The function "free" must have a prototype. Expected results: Have binary compiled Does this happen every time? Using Sun CC yes. But both solaris and linux man pages sate that this header should be used. Other information:
Thanks. Fixed in svn: 2007-08-31 Murray Cumming <murrayc@murrayc.com> * tests/test_copy_invalid_slot.cc: Added some includes to fix the build in some environments, such as when using Sun CC. Thanks to Vladimir Marek in bug #469872.
I forgot to mark this bug as fixed.