After install egcs1.1.2 I have a problem

JeongJu Lee grandizer@netsgo.com
Fri Oct 15 02:43:00 GMT 1999


I installed freebsd 3.2 stable.

And default compiler was gcc 2.7.1 ,
I installed egcs-1.1.2 release from /stand/sysinstall ports collection.

But I can't compile some source. The linker print out
following error message.
/usr/lib/libstdc++.so.2: undefined reference to `__unwind_function'
/usr/lib/libstdc++.so.2: undefined reference to
`__find_first_exception_table_match'
/usr/lib/libstdc++.so.2: undefined reference to `__register_exceptions'
collect2: ld returned 1 exit status
*** Error code 1


If you had same problem. Please help me.


I have compiled with -v option. It will help you take care  this problem.

g++ -v -o receivemail.exe
receivemail.o -L/iwproj/jdfree_9000_jjlee/projects/webauthor/freebsd.3.2.rc9
2/home/lib -L../lib -L/iwproj/jdfree_9000_jjlee/p
rojects/iw2-sdk/eng/lib -L../maillib -lintraworks -liwgeneral -liwmail -lvma
il -lvfolder -lvpop3 -lvlog -lvquota -lwadb21 -lwa_mtdl21 -lwacm_mtdl21 -lcb
-lcrypt
Reading specs from
/usr/local/lib/gcc-lib/i386-portbld-freebsd3.2/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
/usr/local/lib/gcc-lib/i386-portbld-freebsd3.2/egcs-2.91.66/collect2 -m
elf_i386 -dynamic-linker /usr/libexec/ld-elf.so.1 -o receivemail.exe
/usr/lib/
crt1.o /usr/lib/crti.o
/usr/local/lib/gcc-lib/i386-portbld-freebsd3.2/egcs-2.91.66/crtbegin.o -L/iw
proj/jdfree_9000_jjlee/projects/webauthor/freebsd.3.
2.rc92/home/lib -L../lib -L/iwproj/jdfree_9000_jjlee/projects/iw2-sdk/eng/li
b -L../maillib -L/usr/local/lib/gcc-lib/i386-portbld-freebsd3.2/egcs-2.91.66
-L/usr/local/i386-portbld-freebsd3.2/lib -L/usr/local/lib
receivemail.o -lintraworks -liwgeneral -liwmail -lvmail -lvfolder -lvpop3 -l
vlog -lvquota -
lwadb21 -lwa_mtdl21 -lwacm_mtdl21 -lcb -lcrypt -lstdc++ -lm -lgcc -lc -lgcc
/usr/local/lib/gcc-lib/i386-portbld-freebsd3.2/egcs-2.91.66/crtend.o
/usr/lib/crtn.o
/usr/lib/libstdc++.so.2: undefined reference to `__unwind_function'
/usr/lib/libstdc++.so.2: undefined reference to
`__find_first_exception_table_match'
/usr/lib/libstdc++.so.2: undefined reference to `__register_exceptions'
collect2: ld returned 1 exit status
*** Error code 1


Thanks,




More information about the Gcc-help mailing list