[Fwd: Help with undefined reference]

Ian Lance Taylor iant@google.com
Tue Aug 17 14:16:00 GMT 2010


Machiel Richards <machielr@rdc.co.za> writes:

>    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.

I have no idea what the problem is, but _Unwind_Resume should be defined
in libgcc.  Are you linking against libgcc?  Is _Unwind_Resume defined
there?

Ian



More information about the Gcc-help mailing list