Re: more problems with 2.20.04

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Tue Dec 15 1998 - 18:30:22 MET


Hi Jonathan,

   your fix in TUnixSystem is ok. Btw: you are the first Solaris 2.5 we see.
Everybody seems to have gone from 2.4 to 2.6.

Your second fix is also ok. This has also been fixed in our sources.

Cheers, Fons.



> 
> in file: UNIX_UnixSystem.cxx
> 
> UNIX_UnixSystem.cxx: In method `void TUnixSystem::IgnoreInterrupt(Bool_t =
> kTRUE)':
> UNIX_UnixSystem.cxx:399: assignment to `void (*)(int)' from `void (*)()'
> UNIX_UnixSystem.cxx: In function `static void TUnixSystem::UnixSignal(enum
> ESignals, void (*)(enum ESignals))':
> UNIX_UnixSystem.cxx:1777: assignment to `void (*)(int)' from `void (*)()'
> gmake: *** [UNIX_UnixSystem.o] Error 1
> 
> Looking at the source code I see an #ifdef as follows...
> 
> #if defined(R__SOLARIS) && !defined(R__I386) && !defined(__SunOS_5_6)
>          sigact.sa_handler = (void (*)())SIG_IGN;
> #else
> # if defined(__SunOS_5_6)
>          sigact.sa_handler = (void (*)(int))SIG_IGN;
> # else
>          sigact.sa_handler = SIG_IGN;
> # endif
> #endif
> 
> There is a similar construct on the second line referenced in the error
> message.
> 
> I assume simply adding an int in the appropriate place will fix this?
> (I am compiling on a Solaris... SunOS 5.5 system)
> 
> Performing this change seems to remove the compiler error...
> 
> Second problem:
> 
> I get a multiply defined symbol error as follows:
> ld: fatal: symbol `TTreeViewer::Streamer(TBuffer &)' is multiply defined:
>         (file GPAD_TreeViewer.o and file GPAD_G__GPad.o);
> ld: fatal: File processing errors.  No output written to
> /afs/cern.ch/user/j/jhays/lepton/ROOT/ROOT_egcs/root/lib/libGpad.so
> 
> editing the LinkDef file for GPAD_G__GPad.h and adding a minus sign
> to the line refering to  TTreeViewer allows this to compile....
> 
> Are the fixes I used the correct way to deal with these two problems??
> 
> Cheers,
> 
> Jon.
> 
> =====================================================
> Jonathan Hays
> 
> Studio 103                            CERN - HC/EP
> 36 Rue De L'Athenee                   E27900
> 1206 Geneve                           1211 Geneve 23
> Suisse                                Suisse
>                                       +41 22 7671546
> =====================================================

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland          Phone: +41 22 7679248
E-Mail: Fons.Rademakers@cern.ch              Fax:   +41 22 7677910



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:41 MET