Bug 275151 - Fedora 15 / glibc-2.14 'make regtest' FAIL
Summary: Fedora 15 / glibc-2.14 'make regtest' FAIL
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: memcheck (show other bugs)
Version: 3.7 SVN
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-07 21:13 UTC by Dmitry Djachenko
Modified: 2011-06-08 00:58 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Djachenko 2011-06-07 21:13:50 UTC
gcc -DHAVE_CONFIG_H -I. -I../../..  -I../../.. -I../../../include -I../../../coregrind -I../../../include -I../../../VEX/pub -DVGA_amd64=1 -DVGO_linux=1 -DVGP_amd64_linux=1  -Winline -Wall -Wshadow -g -m64 -Wno-long-long  -Wno-pointer-sign -fno-stack-protector -MT stack_switch.o -MD -MP -MF .deps/stack_switch.Tpo -c -o stack_switch.o stack_switch.c
stack_switch.c: In function 'main':
stack_switch.c:47:4: warning: implicit declaration of function 'clone' [-Wimplicit-function-declaration]
stack_switch.c:47:51: error: 'CLONE_VM' undeclared (first use in this function)
stack_switch.c:47:51: note: each undeclared identifier is reported only once for each function it appears in
stack_switch.c:47:60: error: 'CLONE_FS' undeclared (first use in this function)
stack_switch.c:47:69: error: 'CLONE_FILES' undeclared (first use in this function)
stack_switch.c:47:81: error: 'CLONE_SIGHAND' undeclared (first use in this function)
stack_switch.c:36:10: warning: variable 'pid' set but not used [-Wunused-but-set-variable]
make[5]: *** [stack_switch.o] Error 1

$ svn diff
Index: memcheck/tests/linux/stack_switch.c
===================================================================
--- memcheck/tests/linux/stack_switch.c	(revision 11797)
+++ memcheck/tests/linux/stack_switch.c	(working copy)
@@ -1,5 +1,6 @@
 #define _XOPEN_SOURCE 600
 #define _BSD_SOURCE
+#define _GNU_SOURCE
 
 #include <stdio.h>
Comment 1 Tom Hughes 2011-06-08 00:58:34 UTC
Committed, with enhancements, as r11802.