|
From: WAROQUIERS P. <phi...@eu...> - 2011-11-21 16:02:42
|
According to man waitpid, WIFCONTINUED is defined since linux 2.6.10.
In the below, it looks like you have 2.6.18.8. So, it is supposed to be defined.
The best is to file a bug on bugzilla, with the details about the distribution you are using.
(the distribution you are using is not very clear: it looks like it is an old red-hat).
In the meantime, you can bypass this by doing the below modif.
Note that not having the APPEND("WIFCONTINUED") should not cause any harm,
as this is just used for debug trace.
*** vgdb.c Mon Nov 21 16:59:45 2011
--- vgdb.c.orig Wed Oct 26 23:24:45 2011
***************
*** 437,446 ****
if (WIFSTOPPED(status))
APPEND ("WIFSTOPPED %d ", WSTOPSIG(status));
- #ifdef WIFCONTINUED
if (WIFCONTINUED(status))
APPEND ("WIFCONTINUED ");
- #endif
return result;
#undef APPEND
--- 437,444 ----
________________________________
From: 吴丹(gmail) [mailto:wud...@gm...]
Sent: Monday 21 November 2011 16:33
To: valgrind-users
Subject: [Valgrind-users] Valgrind-3.7.0 compile error
The error information:
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../VEX/pub -DVGA_x86=1 -DVGO_linux=1 -DVGP_x86_linux=1 -DVGPV_x86_linux_vanilla=1 -I../coregrind -DVG_LIBDIR="\"/usr/local/lib/valgrind"\" -DVG_PLATFORM="\"x86-linux\"" -m32 -mpreferred-stack-boundary=2 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -fno-builtin -Wno-long-long -MT vgdb-vgdb.o -MD -MP -MF .deps/vgdb-vgdb.Tpo -c -o vgdb-vgdb.o `test -f 'vgdb.c' || echo './'`vgdb.c
In file included from pub_core_libcsetjmp.h:43,
from vgdb.c:31:
../include/pub_tool_libcsetjmp.h:106: warning: `returns_twice' attribute directive ignored
vgdb.c: In function `status_image':
vgdb.c:440: warning: implicit declaration of function `WIFCONTINUED'
mv -f .deps/vgdb-vgdb.Tpo .deps/vgdb-vgdb.Po
gcc -m32 -mpreferred-stack-boundary=2 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -fno-builtin -Wno-long-long -m32 -mpreferred-stack-boundary=2 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -fno-builtin -o vgdb vgdb-vgdb.o -lpthread
vgdb-vgdb.o(.text+0x540): In function `status_image':
/home/wudan/tool/valgrind-3.7.0/coregrind/vgdb.c:440: undefined reference to `WIFCONTINUED'
collect2: ld returned 1 exit status
make[3]: *** [vgdb] Error 1
My system:
Linux NSD-compile.localdomain 2.6.18.8 #3 SMP Thu Aug 30 03:11:32 CST 2007 i686 i686 i386 GNU/Linux
gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
2011-11-21
____
This message and any files transmitted with it are legally privileged and intended for the sole use of the individual(s) or entity to whom they are addressed. If you are not the intended recipient, please notify the sender by reply and delete the message and any attachments from your system. Any unauthorised use or disclosure of the content of this message is strictly prohibited and may be unlawful.
Nothing in this e-mail message amounts to a contractual or legal commitment on the part of EUROCONTROL, unless it is confirmed by appropriately signed hard copy.
Any views expressed in this message are those of the sender. |