On Thu, Oct 21, 2010 at 9:11 AM, Amit Kulkarni <amitk...@gmail.com> wrote: > I am consistently getting this while compile the userland since Tuesday. > Does anybody else have it? It comes very early in the process too. ... > /usr/bin/awk -f /usr/src/lib/libcurses/tinfo/MKcodes.awk bigstrings=1 > /usr/src/lib/libcurses/Caps > codes.c > touch stamp_namebuild > cc -O2 -pipe -g -I. -I/usr/src/lib/libcurses -I. > -I/usr/src/lib/libcurses -g -o make_keys > /usr/src/lib/libcurses/tinfo/make_keys.c > /usr//lib/crtbegin.o(.text+0xb8): In function `__register_frame_info': > : undefined reference to `_Jv_RegisterClasses' > /usr//lib/crtbegin.o(.text+0xc4): In function `__register_frame_info': > : undefined reference to `_Jv_RegisterClasses' > collect2: ld returned 1 exit status > *** Error code 1
Yuck, sounds like your crtbegin.o somehow got broken, as that symbol should be marked as weak and therefore permitted to be undefined. For example, on my amd64 box: $ objdump -t /usr/lib/crtbegin.o | grep _Jv 0000000000000000 w *UND* 0000000000000000 _Jv_RegisterClasses See that 'w' in the second column? Since you won't be able to compile anything when you have a broken crtbegin.o, you should grab a snapshot and install it. If you're in a hurry you could _try_ pulling down and installing just comp48.tgz from snapshots, but be prepared to install the rest of the sets if that doesn't work... Philip Guenther