From: ewerlid@groucho.docs.uu.se (Ove Ewerlid) Subject: Re: GCC 2.4.5 won't build! (*** This is a FAQ ***) Date: 7 Jul 1993 04:18:41
In article <C9rqC1.5MJ@wetware.com> erc@wetware.com (Ed Carp) writes:
I grabbed gcc-2.4.5 and tried to build it. The make failed with:
cc -DIN_GCC -DPOSIX -s -O6 -o genattr \
genattr.o rtl.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case "cc"@"" in "cc"@?*) echo ;; esac ` ` case "" in ?*) echo ;; esac `
genattr.o: Undefined symbol __obstack_begin referenced from text segment
rtl.o: Undefined symbol __obstack_newchunk referenced from text segment
rtl.o: Undefined symbol __obstack_newchunk referenced from text segment
rtl.o: Undefined symbol __obstack_newchunk referenced from text segment
rtl.o: Undefined symbol __obstack_newchunk referenced from text segment
rtl.o: Undefined symbol __obstack_newchunk referenced from text segment
make: *** [genattr] Error 1
Anyone know how to get around this?
This is a FAQ!
In obstack.c you must make sure that the functions are compiled by modifying:
#if defined (_LIBC) || !defined (__GNU_LIBRARY__)
to
#if defined (_LIBC) || !defined (__GNU_LIBRARY__) || 1
or
#if 1
This is a hack but since obstacks is not a part of libc it must be done.
Don't know why. Perhaps because obstack.c is under GPL.