RE:[ROOT] CINT: problems with system files

From: Masaharu Goto (MXJ02154@nifty.ne.jp)
Date: Sat Jun 17 2000 - 23:48:11 MEST


Dear Hermann-Josef,

Thank you for reporting the problem.

Bit-field limitation is just a warning. It should be OK to leave it as is.
Cint will ignore it by itself. 

About /usr/include/bits/types, which contains many system dependent
symbols, I do not know why it is included either. Normally, 
/usr/include/sys/types.h is included.  There are a few things you
can try.

 1) Create dummy header  $ROOTSYS/cint/bits/types.h  and see what will
    happen. This file can be an empty file.  If the system complains 
    about undefined symbol, add appropriate definition in this file.

 2) Look at /usr/local/bits/types.h, there can be #ifndef XXXX to avoid
    reading this file. You need to check what XXXX is in that file.
    Add '#define XXXX' at the beginning of MiEvent.hh as follows.
         #ifdef __CINT__
         #define XXXX
         #endif

Best Regards,
Masaharu Goto

>
>Dear Rooters,
>
>using rootcint to create a dictionary for several classes we end up with
>the attached error log.
>
>The system is:
>SuSe Linux 6.2 with Kernel 2.2.10
>and compiler
>Reading specs from /usr/lib/gcc-lib/i486-linux/egcs-2.91.66/specs
>gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
>
>I have recently installed root_v2.24.Linux.2.2.14 but I could reproduce
>it also with the previous root_v2.23.Linux.2.2.10.
>
>The warning "Note: Bit-field not accessible from interpreter
> FILE:/home/argiro/FD-das/mirror/include/MiEventP.h LINE:50"
>I could overcome by using __CINT__ based preprocessor directives in the
>union containing these bit-fields.
>
>I don't understand why /usr/include/bits/types.h is parsed, because
>feeding MiEvent.hh to the preprocessor (-E) doesn't show this file in the
>output MiEvent.i.
>
>Regards
>   Hermann-Josef
>
>Here is the error log:
>/cern/root/bin/rootcint -f MiEventDict.cc -c -p -I. -I/cern/root/include
> -I/home/argiro/FD-das/mirror/include -I/home/argiro/FD-das/include/shm
> MiEvent.hh LinkDef.h
>Note: Bit-field not accessible from interpreter
> FILE:/home/argiro/FD-das/mirror/include/MiEventP.h LINE:50
>Error: No symbol __extension__typedefunsignedlonglongint__u_quad_t in
> current scope  FILE:/usr/include/bits/types.h LINE:37
>Error: No symbol __extension__typedeflonglongint__quad_t in current scope
> FILE:/usr/include/bits/types.h LINE:38
>Error: No symbol __extension__typedefsignedlonglongint__int64_t in current
> scope  FILE:/usr/include/bits/types.h LINE:56
>Error: No symbol __extension__typedefunsignedlonglongint__uint64_t in
> current scope  FILE:/usr/include/bits/types.h LINE:57
>Error: class,struct,union or type __quad_t not defined
> FILE:/usr/include/bits/types.h LINE:59
>Error: class,struct,union or type __u_quad_t not defined
> FILE:/usr/include/bits/types.h LINE:61
>Error: class,struct,union or type __quad_t not defined
> FILE:/usr/include/bits/types.h LINE:68
>Error: class,struct,union or type __quad_t not defined
> FILE:/usr/include/bits/types.h LINE:72
>Error: class,struct,union or type __quad_t not defined
> FILE:/usr/include/bits/types.h LINE:124
>Error: class,struct,union or type __u_quad_t not defined
> FILE:/usr/include/bits/types.h LINE:128
>Error: class,struct,union or type __u_quad_t not defined
> FILE:/usr/include/bits/types.h LINE:132
>Error: class,struct,union or type __quad_t not defined
> FILE:/usr/include/sys/types.h LINE:37
>Error: class,struct,union or type __u_quad_t not defined
> FILE:/usr/include/sys/types.h LINE:38
>Warning: Unknown type __const in function argyment
> FILE:/usr/include/sys/ipc.h LINE:34
>Warning: Unknown type '__const' in function argument handled as int
> FILE:/usr/include/sys/shm.h LINE:49
>Warning: Unknown type __const in function argyment
> FILE:/usr/include/sys/shm.h LINE:52
>Warning: Error occured during reading source files
>Note: operator new() masked 1c
>Note: operator delete() masked 1c
>Warning: Error occured during dictionary source generation
>!!!Removing MiEventDict.cc MiEventDict.h !!!
>/cern/root/bin/rootcint: error loading headers...
>make: *** [MiEventDict.cc] Error 1
>



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:28 MET