building
Zack Weinberg
zack@codesourcery.com
Fri Jun 20 19:35:00 GMT 2003
Peter T Greening <peteman@math.unm.edu> writes:
> it says this:
> int main() {
> switch (0) case 0: case (sizeof (long long) == 4):;
> ; return 0; }
> configure:1816: gcc -c -g -O2 conftest.c 1>&5
> configure:1882: checking execution character set
> configure:1890: syntax error at end of input
> /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o: In function `_start':
> /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o(.text+0x18): undefined
> reference to `main'
> collect2: ld returned 1 exit status
> .... I read this as "redhat glib is broken, install your own."
> am I correct?
The C library may be broken, but the bootstrap compiler is definitely
broken. It shouldn't even have attempted to link that program, since
there is a -c on the command line, and I don't know where 'syntax
error at end of input' came from either. (That test program, by the
way, is *not* the test for the execution character set, but you have
bigger problems.)
Do not attempt to install glibc from scratch, especially not with a
probably-broken C compiler. I'd nuke all the -devel RPMs off the
system, ditto the gcc and binutils rpms, and reinstall the latest from
Red Hat's website, then try again. I am not an expert Red Hat
sysadmin; someone more familiar with the system may be able to give
more specific / reliable advice.
zw
More information about the Gcc
mailing list