On Monday, August 16, 2010, Machiel Richards wrote: > -------- Forwarded Message -------- > From: Machiel Richards <machielr@xxxxxxxxx> > To: gcc-help@xxxxxxxxxxx > Subject: Help with undefined reference > Date: Mon, 16 Aug 2010 14:52:28 +0200 > > Good day all > > I hope that someone can assist me in this matter. > > > We are trying to compile a package using gcc but we are getting the > following errors: > > build/libxr.a(sys_main.o): In function `sigcatcher': > /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../include/c > ++/3.4.6/ext/new_allocator.h:69: undefined reference to `_Unwind_Resume' > /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../include/c > ++/3.4.6/ext/new_allocator.h:69: undefined reference to `_Unwind_Resume' > build/libxr.a(sys_main.o): In function `~basic_string': > /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../include/c > ++/3.4.6/ext/new_allocator.h:69: undefined reference to `_Unwind_Resume' > build/libxr.a(sys_main.o): In function `showlimits': > /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../include/c > ++/3.4.6/bits/basic_ios.h:268: undefined reference to `_Unwind_Resume' > /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../include/c > ++/3.4.6/bits/basic_ios.h:268: undefined reference to `_Unwind_Resume' > build/libxr.a(sys_main.o):/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../ > include/c++/3.4.6/bits/basic_ios.h:268: more undefined references to > `_Unwind_Resume' follow collect2: ld returned 1 exit status > > > The installation works fine on other VM's with the same OS etc... > however the server where tihs needs to run is running oracle apps and we > are thus assuming that some link to the correct libraries is missing or > has changed. > > Thus far however we haven;t been able to find anyone who can > assist in pinpointing the problem as yet. > > > Please feel free to let me know if you need any more info. > > > Regards > MAchiel I would like to know the cause for that, too. I am trying to build gcc and it seems to build and install fine, but if I try to use g++ I get the following errors when In try to compile a simple "hello world" program. /opt2/linux/ix86/lib/gcc/x86_64-pc-linux-gnu/4.5.1/32/libstdc++.so: undefined reference to `_Unwind_Resume_or_Rethrow' /opt2/linux/ix86/lib/gcc/x86_64-pc-linux-gnu/4.5.1/32/libstdc++.so: undefined reference to `_Unwind_RaiseException' /opt2/linux/ix86/lib/gcc/x86_64-pc-linux-gnu/4.5.1/32/libstdc++.so: undefined reference to `_Unwind_GetLanguageSpecificData' /opt2/linux/ix86/lib/gcc/x86_64-pc-linux-gnu/4.5.1/32/libstdc++.so: undefined reference to `_Unwind_Resume' /opt2/linux/ix86/lib/gcc/x86_64-pc-linux-gnu/4.5.1/32/libstdc++.so: undefined reference to `_Unwind_DeleteException' /opt2/linux/ix86/lib/gcc/x86_64-pc-linux-gnu/4.5.1/32/libstdc++.so: undefined reference to `_Unwind_GetTextRelBase' /opt2/linux/ix86/lib/gcc/x86_64-pc-linux-gnu/4.5.1/32/libstdc++.so: undefined reference to `_Unwind_SetIP' /opt2/linux/ix86/lib/gcc/x86_64-pc-linux-gnu/4.5.1/32/libstdc++.so: undefined reference to `_Unwind_GetDataRelBase' /opt2/linux/ix86/lib/gcc/x86_64-pc-linux-gnu/4.5.1/32/libstdc++.so: undefined reference to `_Unwind_GetRegionStart' /opt2/linux/ix86/lib/gcc/x86_64-pc-linux-gnu/4.5.1/32/libstdc++.so: undefined reference to `_Unwind_SetGR' /opt2/linux/ix86/lib/gcc/x86_64-pc-linux-gnu/4.5.1/32/libstdc++.so: undefined reference to `_Unwind_GetIPInfo' Lothar