gcc problems with /usr/lib/crt1.o
Debian Developers,
I recently upgraded to the hamm distribution. Ever since the upgrade I
have not been able to compile anything with gcc. Even a simple hello
world program fails to compile. Example:
/* hello world */
#include <stdio.h>
int main(void)
{
printf("Hello world!\n");
return 0;
}
/* end hello world */
tcsh% gcc -o hello hello.c
/usr/lib/crt1.o(.text+0xe): undefined reference to `__libc_init_first'
/usr/lib/crt1.o(.text+0x18): undefined reference to `_environ'
I have installed egcc and g++ and they both compile this without any
problems. I have the latest copies of the required files. I had the
'hamm' versions installed at first but those failed as well so I
upgraded to the following to see if that would fix anything, it didn't.
ii gcc 2.7.2.3-4.5 The GNU C compiler.
ii cpp 2.7.2.3-4.5 The GNU C preprocessor.
ii egcc 2.90.28-0.1 The GNU (egcs) C compiler.
ii g++ 2.90.28-0.1 The GNU (egcs) C++ compiler.
ii libc6 2.0.7pre3-1 The GNU C library version 2 (run-time files)
ii libc6-dev 2.0.7pre3-1 The GNU C library version 2 (development fil
I did not have any problems before my upgrade to hamm. Several people
have told me to just use g++ but that does not _fix_ the problem. I
would really appreciate any help on this matter. If you need more
information please let me know.
Thank you,
Brian Servis
--
Mechanical Engineering servis@purdue.edu
Purdue University http://www.ecn.purdue.edu/~servis
--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: