From: Grzegorz J. <ja...@ac...> - 2004-07-06 14:12:19
|
?????????? ??????? wrote: > Hello! > > I am sorry for my silence. > > I tried your method and configured whith following: > ./configure CPPFLAGS=-DDONT_GC > > It was an error message: > > g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../gc/include -DDONT_GC -g -O2 -MT > main-con.l > o -MD -MP -MF .deps/main-con.Tpo -c main-con.cc -o main-con.o > main-con.cc: In function `int main(int, char**)': > main-con.cc:76: error: `GC_init' undeclared (first use this function) > main-con.cc:76: error: (Each undeclared identifier is reported only once for > each function it appears in.) > make[2]: *** [main-con.lo] Error 1 > > I fixed main-con.cc by this way: > > #ifndef DONT_GC > GC_init(); // This is mandatory and must be called before any other GC > function. > #endif > > Unfortunately it does not works for me. I still receive segmentation fault > signal on each test. > When using gdb the first step after the 75-th string of main-con.cc is the > 77-th string of iostream. > Next step produce SIGSEGV. This 77-th line of iostream looks like a bug in debugger or compiler (invalid debugging information), I remember that I had similar problems somewhere else. From your description it is difficult to tell where the sigfault really happens. As far as I understand line 75 is the first line of main(). Perhaps the segfault happens during initialization of static variables. One way to find out would be to load core file to gdb ('gdb occ core') and examine stack trace ('bt'). > I have some problems with dynamic linking under Cygwin. There are > differences between Cygwin and Linux and I do not understand their enought. > So I undefined USE_DLOADER and SHARED_OPTION preproc symbols in driver2.cc. > After that I linked my meta-class with occ statically. It works! But I do > not know why... If you need to get dynamic linking to work I would recommend trying CVS HEAD. Please let me know if I can be of any further help. Best regards Grzegorz > > Thank you, > Grigorenko Dmitriy > > ----- Original Message ----- > From: "Grzegorz Jakacki" <ja...@ac...> > To: "?????????? ???????" <pos...@na...> > Cc: <ope...@li...> > Sent: Monday, June 28, 2004 2:20 PM > Subject: Re: [Opencxx-users] Cygwin problem > > > >>Hi ???????, >> >>It looks like a problem with garbage collector. From the logs I can see >>that you are using 2.7; to disable gc in 2.7 you need to define DONT_GC >>preproc symbol, this should do: >> >> ./configure CPPFLAGS=-DDONT_GC ... >> >>If you feel adventurous, you may try to checkout the lates sources from >>CVS, AFAIK this version has not been tried on XP+cygwin yet. For CVS >>snapshot you can disable gc like this: >> >> ./configure --diable-gc >> >>If this works, then you have choice: either you live without gc (it is >>ok in many situations, since occ quits after processing anyway, so >>usually allocation build-up is not huge) or investigate further. >> >>Please let me know if the above works for you. >> >>Regards >>Grzegorz >> >> >>?????????? ??????? wrote: >> >>>Hello! >>> >>>I have a problem during installation openc++ under WinXP Professional & >>>Cygwin. >>>occ.exe receive signal 11 any time I try to use it. >>> >>>All log files are in an attachment. >>>'make2.log' file is stderr output of 'make test' command >>> >>>What shell I do? >>>Thank you. >> >> >> >>------------------------------------------------------- >>This SF.Net email sponsored by Black Hat Briefings & Training. >>Attend Black Hat Briefings & Training, Las Vegas July 24-29 - >>digital self defense, top technical experts, no vendor pitches, >>unmatched networking opportunities. Visit www.blackhat.com >>_______________________________________________ >>Opencxx-users mailing list >>Ope...@li... >>https://lists.sourceforge.net/lists/listinfo/opencxx-users > >> |