On Fri, Jun 27, 2008 at 7:57 AM, ron minnich <[EMAIL PROTECTED]> wrote:
> building on x86 64 bit.
>
> first issue is that I get this:make: vx32-gcc: Command not found
>
> second is that I get this:
> gcc -Ilibvx32 -c -g -O3 -MD -std=gnu99 -I.  -o libvx32/linux.o libvx32/linux.c
> libvx32/linux.c: In function `vx32_sighandler':
> libvx32/linux.c:254: error: structure has no member named `rip'
> libvx32/linux.c:303: error: structure has no member named `rip'
> make: *** [libvx32/linux.o] Error 1

yeah. The rip thing is fixed for sigcontext in linux.c, but not in this:
// VX32 CPU state
struct vxcpu {
        uint32_t        reg[8];
        uint32_t        eip;
        uint32_t        eflags;
        
        uint32_t        traperr;
        uint32_t        trapva;  // cr2
};


So the #defines in libvx32/linux.c fix things for sigcontext and break
things for vxcpu struct.

Hmm.

It's rather sleazy but I put
#undef eip
at linux.c line 252 and it builds. Now I get a link error:
libvx32/libvx32.a(rts.o)(.text+0x99): In function `vxrun_lookup_backpatch':
libvx32/rts.S:127: undefined reference to `VXEMU_RETPTR'
libvx32/libvx32.a(rts.o)(.text+0x10d): In function `vxrun_lookup_indirect':
libvx32/rts.S:214: undefined reference to `VXEMU_RETPTR'
libvx32/libvx32.a(rts.o)(.text+0x13e): In function `vxrun_gentrap':
libvx32/rts.S:232: undefined reference to `VXEMU_RETPTR'
libvx32/libvx32.a(run64.o)(.text+0x2e): In function `vxrun':
libvx32/run64.S:56: undefined reference to `VXEMU_RUNPTR'
libvx32/libvx32.a(run64.o)(.text+0x60):libvx32/run64.S:82: undefined
reference to `VXEMU_RUNPTR'
collect2: ld returned 1 exit status
make: exit 2

more as I hit it. This is a little bit easier than building lguest
modules. Ah, this is going to be fun!

I just shorted vmware. I'm gonna be rich, I tell you! Rich!
ron

Reply via email to