[arch-general] REG_RIP undeclared
Alexander 'hatred' Drozdoff
adrozdoff at gmail.com
Sun Jun 6 12:21:38 EDT 2010
В Sun, 6 Jun 2010 18:06:26 +0200
Lukáš Jirkovský <l.jirkovsky at gmail.com> пишет:
LJ> 2010/6/6 Lukáš Jirkovský <l.jirkovsky at gmail.com>:
LJ> >>>
LJ> >>
LJ> >> Oh, now I see where the problem is. There are several includes named ucontext.h
LJ> >>
LJ> >> Lukas
LJ> >>
LJ> >
LJ> > OK, that's not the problem. I tried compiling it with -save-temps
LJ> > option passed to gcc and I see that the correct file is included but
LJ> > for some reason the #ifdef __USE_GNU part is not included even though
LJ> > __USE_GNU is defined before #include <ucontext.h>
LJ> >
LJ> > Any ideas?
LJ> >
LJ>
LJ> Anyway, if I copy the part
LJ>
LJ> #ifdef __USE_GNU
LJ> /* Number of each register in the `gregset_t' array. */
LJ> enum
LJ> {
LJ> REG_R8 = 0,
LJ> # define REG_R8 REG_R8
LJ> …
LJ> # define REG_CR2 REG_CR2
LJ> };
LJ> #endif
LJ>
LJ> from the sys/ucontext.h to another file the enum is included correctly
LJ> and application.c compiles.
Oh... Add to CFLAGS next parameter:
-D__USE_GNU
--
WBR
Alexander Drozdov
FIDO: 2:5045/41.84
Site: http://hatred.homelinux.net
Site: http://archlinux.org.ru
More information about the arch-general
mailing list