After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 469872 - test_copy_invalid_slot.cc missing includes
test_copy_invalid_slot.cc missing includes
Status: RESOLVED FIXED
Product: libsigc++
Classification: Bindings
Component: build
2.1.x
Other All
: Normal normal
: ---
Assigned To: Martin Schulze
Martin Schulze
Depends on:
Blocks:
 
 
Reported: 2007-08-24 12:06 UTC by Vladimir Marek
Modified: 2009-12-29 12:42 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Vladimir Marek 2007-08-24 12:06:10 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:
Comment 1 Murray Cumming 2007-08-31 09:00:29 UTC
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.
Comment 2 Murray Cumming 2009-12-29 12:42:48 UTC
I forgot to mark this bug as fixed.