[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#637378: /usr/include/machine-amd64/reg.h:48:2: error: unknown type name 'register_t'

Package: kfreebsd-kernel-headers
Version: 0.53
Severity: normal


openjdk-7 currently FTBFS from source with the following error on kfreebsd-
amd64 :
In file included from /usr/include/machine/reg.h:8:0,
/usr/include/machine-amd64/reg.h:48:2: error: unknown type name 'register_t'
/usr/include/machine-amd64/reg.h:49:2: error: unknown type name 'register_t'

In /usr/include/machine-amd64/reg.h, CPU's registers are defined like this :
struct reg {
        register_t      r_r15;
        register_t      r_r14;
        register_t      r_r13;
        register_t      r_r12;
        register_t      r_r11;
        register_t      r_r10;
but register_t typedef is not included in reg.h (it's defined in sys/types.h). 
Maybe be /usr/include/machine-amd64/reg.h should include sys/type.h ?

FYI, this work under kfreebsd-i386 because /usr/include/machine-i386/reg.h 
struct use "unsigned int" type for CPU's registers.

Damien - Debian Developper

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply to: