I'm trying to compile this file: ____________________________________________ int main(int argc, char **argv) { (void) argc; (void) argv; puts("Hello, world!"); return 0; } ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ using this command: ____________________________________________ gcc -g -D_GNU_SOURCE hello.c -o hello ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ returns this: ____________________________________________ /usr/bin/ld: cannot open crt1.o: No such file of directory collect2: ld returned 1 exit status ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I'm using binutils-2.9.1.0.23-6 on rh6.1, and this package verifies without issue. /usr/bin/ld --version: ____________________________________________ GNU ld 2.9.1 Copyright 1997 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. Supported emulations: elf_i386 i386linux ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Can someone tell me what I'm doing wrong?
The only file named crt1.o I could find on my system was /usr/i386-glibc20-linux/lib and this directory wasn't included in /etc/ld.so.conf, so I added it, then ran ldconfig. As you've probably already guessed, this broke everything on my system. So, I'm back where I started. Is there supposed to be anything in ld.so.conf besides /usr/X11R6/lib and /usr/i486-linux-libc5/lib? This is the configuration that was given to me by a clean install of RH6.1.
Do you have the glibc-devel package installed?
glibc-devel needs to be installed on the system
Boy, do I feel foolish. Forgot that one when I made a clean install to fix another bug. Thanks, and sorry for wasting your time.