RE:[ROOT] CINT: problems with system files

From: mathes@ik3.fzk.de
Date: Mon Jun 19 2000 - 15:48:48 MEST


Hi Masaharu,

thanks for your immediate reply.

I have now taken the following solutions for the problems:

On Sun, 18 Jun 2000, Masaharu Goto wrote:

> 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. 
>
Here I changed all to unions commenting out all bit-fields. Now it is
suitable for the own Streamer()-method, too:
typedef union _PixelDataWord
 {
  Int_t       word;
# ifndef __CINT__
  struct {
   UChar_t    pclass  : 7;   /* pattern class */
   UInt_t     pixel   : 22;
   UChar_t    trigger : 1;
   UChar_t    spare   : 1;   /* unused bit */
   UChar_t    pe      : 1;   /* parity error */
  } bits;
# endif  /* __CINT__ */
 
} PixelDataWordRec, *PixelDataWord;
 
> 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
> 
I did now something similar like that because CINT complains, that data
types 'long long int' and 'unsigned long long int' are not implemented. As
they are not used by us (at the moment) I wrote at the beginning of the
file MiEvent.hh:

#ifdef __CINT__
# undef __GNUC__
#endif

I hope this has no other side effects ?

> Best Regards,
> Masaharu Goto
> 

Cheers
  Hermann-Josef


**************************************************************************
*                                                                        *
*   Dr. Hermann-Josef Mathes                                             *
*   KASCADE & AUGER Collaboration                                        *
*   Forschungszentrum Karlsruhe                Phone: +49 7247 822429    *
*   Institut fuer Kernphysik                   FAX:   +49 7247 824075    *
*   POB 3640                                                             *
*   D-76021 Karlsruhe/Germany                  Mail:  mathes@ik3.fzk.de  *
*                                                     hjmathes@web.de    *
*                                                                        *
**************************************************************************
*   Feel free to visit my homepage:                                      *
*          http://www-ik3.fzk.de/~mathes/Welcome.html                    *
*   My software project page for DAQ:                                    *
*          http://www-ik3.fzk.de/~mathes/software/software.html          *
*                                                                        *
*   Visit the institute and project homepages:                           *
*          http://www-ik3.fzk.de/                                        *
*          http://www-ik1.fzk.de/KASCADE_home.html                       *
**************************************************************************



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