Hi Norbert, It looks as if you have a missing library required by your class MTEventRaw. I have no problems (Linux) executing the following script: g++ -g -fPIC -I$ROOTSYS/include -c norbert.cxx g++ -g -o norbert norbert.o -L$ROOTSYS/lib \ -lCore -lCint -lGui -lGpad -lGraf -lHist -lm -ldl -rdynamic where norbert.cxx is: #include <stdio.h> #include "TROOT.h" #include "TApplication.h" TROOT gMain("MUPTProducer","MuPT Event Builder"); int main(int NArgs, char **Arg) { puts("Starting, ...."); // MTEventRaw* ev = new MTEventRaw(); TApplication theApp("App", &NArgs, Arg); } Rene Brun Norbert Danneberg wrote: > > Hi , > > after upgrading to 2.23/11 static TROOT declarations like > > TROOT gMain("MUPTProducer","MuPT Event Builder"); > > int main(int NArgs, char **Arg) > { > puts("Starting, ...."); > MTEventRaw* ev = new MTEventRaw(); > TApplication theApp("App", &NArgs, Arg); > > } > > produce a segmentation fault. For the time beeing I will continue > to use 2.23/7. All shared libraries compile and work without > problems under 2.23/11. > > Thanks > > norbert > > (gdb) where > #0 0x401ee3b1 in TROOT::GetClass () from /usr/root/lib/libCore.so > #1 0x401ef983 in TROOT::IgnoreInclude () from /usr/root/lib/libCore.so > #2 0x40218fb6 in IgnoreInclude () from /usr/root/lib/libCore.so > #3 0x40507f7b in G__loadfile () from /usr/root/lib/libCint.so > #4 0x404b4ecc in G__defined_tagname () from /usr/root/lib/libCint.so > #5 0x404b5030 in G__search_tagname () from /usr/root/lib/libCint.so > #6 0x404a87a4 in G__get_linked_tagnum () from /usr/root/lib/libCint.so > #7 0x4008e972 in G__cpp_setup_globalMTEventCint () at > MTEventCint.cxx:8215 > #8 0x4008f4b4 in G__cpp_setupMTEventCint () at MTEventCint.cxx:8449 > #9 0x404dc1d0 in G__call_setup_funcs () from /usr/root/lib/libCint.so > #10 0x404dcc01 in G__main () from /usr/root/lib/libCint.so > #11 0x404dc559 in G__init_cint () from /usr/root/lib/libCint.so > #12 0x402195ec in TCint::ResetAll () from /usr/root/lib/libCore.so > #13 0x4021915e in TCint::TCint () from /usr/root/lib/libCore.so > #14 0x401eca35 in TROOT::TROOT () from /usr/root/lib/libCore.so > #15 0x8048d0c in global constructors keyed to main () at RawRead.cxx:40 > #16 0x8048d38 in __do_global_ctors_aux () > #17 0x8048a1a in _init () > #18 0x40cc11d8 in __libc_start_main (main=0x8048be0 <main>, argc=1, > argv=0xbffff684, init=0x80489f0 <_init>, fini=0x8048d60 <_fini>, > rtld_fini=0x4000ac30 <_dl_fini>, stack_end=0xbffff67c) > at ../sysdeps/generic/libc-start.c:83 > > -- > > Norbert Danneberg > > ETH Zurich - Institute for Particle Physics > Laboratory for Nuclear Physics Phone.: +41-1-633-2034 > Hoenggerberg Fax.: +41-1-633-1067 > CH-8093 Zurich > > ETH Zurich - Institute for Particle Physics > Paul Scherrer Institute Phone.: +41-56-310-3284 > CH-5232 Villigen PSI Fax.: +41-56-310-4362 > > email: Norbert.Danneberg@psi.ch
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:19 MET