undefined symbol: __register_frame. Why?

H.J. Lu hjl@lucon.org
Wed Dec 10 10:46:00 GMT 1997


> 
> Hello All!
>    Can you help me? Take a look:
> 
> [andrew@apple node]$ make
> egcs++ -v -Wall -DDEBUG -g  -o sunder_node  node.o
> errors.o protocol.o requests.o sundercontext.o
> renderdecode.o glxcommon.o  -lg++  -lMesaGL
> -lMesaGLU -lX11 -lXext -lm -L/usr/X11R6/lib
> Reading specs from
> /usr/local/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.90.21/specs
> 
> gcc version egcs-2.90.21 971202 (egcs-1.00
> release)
>  /usr/local/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.90.21/ld
> -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o
> sunder_node /usr/lib/crt1.o /usr/lib/crti.o
> /usr/local/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.90.21/crtbegin.o
> -L/usr/X11R6/lib
> -L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.90.21
> -L/usr/local/i686-pc-linux-gnu/lib
> -L/usr/local/lib node.o errors.o protocol.o
> requests.o sundercontext.o renderdecode.o
> glxcommon.o -lg++ -lMesaGL -lMesaGLU -lX11 -lXext
> -lstdc++ -lm
> /usr/local/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.90.21/libgcc.a
> -lc
> /usr/local/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.90.21/libgcc.a
> /usr/local/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.90.21/crtend.o
> /usr/lib/crtn.o
> 
> [andrew@apple node]$ ./sunder_node
> ./sunder_node: error in loading shared libraries
> : undefined symbol: __register_frame
> 
> 
> How this can happens? register_frame comes from
> libgcc.a, isn't it?
> 

You may be using different libc.so to link and run.

# nm /lib/libc.so.6 | grep __register_frame
000c1534 T __register_frame
000c1588 T __register_frame_table


-- 
H.J. Lu (hjl@gnu.org)



More information about the Gcc mailing list