El día Monday, September 15, 2014 a las 09:59:05PM +0200, Philippe Waroquiers 
escribió:

> On Mon, 2014-09-15 at 16:44 +0200, Matthias Apitz wrote:
> 
> > vgdb-invoker-ptrace.c:319: error: 'PTRACE_GETSIGINFO' undeclared (first use 
> > in this function)
> A similar compilation error was encountered on s390x/RHEL5/glibc 2.3.4,
> as this glibc version does not define PTRACE_GETSIGINFO.
> Ptrace manual describes that PTRACE_GETSIGINFO is available since Linux
> 2.3.99-pre6) so your kernel (2.6.16) should support PTRACE_GETSIGINFO.

PTRACE_GETSIGINFO is only defined for the kernel in /usr/include/linux,
not for userland;

> Which glibc version do you have ?

2.4

> The easy fix to try is to define PTRACE_GETSIGINFO as for s390x,
> e.g. by just removing the #if defined(VGA_s390x) in the following
> extract of vgdb-invoker-ptrace.c:
> #if defined(VGA_s390x)
> /* RHEL 5 uses glibc 2.3.4 which does not define PTRACE_GETSIGINFO */
> #   ifndef PTRACE_GETSIGINFO
> #   define PTRACE_GETSIGINFO 0x4202
> #   endif
> #endif

Thanks, this make it compile fine.

        matthias

-- 
Matthias Apitz               |  /"\   ASCII Ribbon Campaign:
E-mail: g...@unixarea.de     |  \ /   - No HTML/RTF in E-mail
WWW: http://www.unixarea.de/ |   X    - No proprietary attachments
phone: +49-170-4527211       |  / \   - Respect for open standards
                             | en.wikipedia.org/wiki/ASCII_Ribbon_Campaign

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to