compile errors on multiple progs

compile errors on multiple progs

Post by agent » Sun, 27 Jun 1999 04:00:00



hi all,

im a little linux newbie out there.. and i decided to put redhat 6 on
an old 486 we have. every time i try to compile ANY application i get
an error like so when i run configure

checking for gcc... gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler
cannot create executables

the config.log says this...

configure:556: checking for gcc
configure:669: checking whether the C compiler (gcc  ) works
configure:685: gcc -o conftest    conftest.c  1>&5
/usr/bin/ld: cannot open crt1.o: No such file or directory
collect2: ld returned 1 exit status
configure: failed program was:

#line 680 "configure"
#include "confdefs.h"

im lost.. i have egcs, glibc, and kernel headers installed.
needless to say this didnt happen on a system the i checked full
install on :-)

this is only one of the apps i am trying to compile.. but both have the
same error..

any help would be wonderfull,
drew

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

 
 
 

compile errors on multiple progs

Post by Silviu Minu » Mon, 28 Jun 1999 04:00:00


Do you have glibc-devel installed?

On my system (RH6.0) /usr/lib/crt1.o is in glibc-devel-2.1.1-6.


> hi all,

> im a little linux newbie out there.. and i decided to put redhat 6 on
> an old 486 we have. every time i try to compile ANY application i get
> an error like so when i run configure

> checking for gcc... gcc
> checking whether the C compiler (gcc  ) works... no
> configure: error: installation or configuration problem: C compiler
> cannot create executables

> the config.log says this...

> configure:556: checking for gcc
> configure:669: checking whether the C compiler (gcc  ) works
> configure:685: gcc -o conftest    conftest.c  1>&5
> /usr/bin/ld: cannot open crt1.o: No such file or directory
> collect2: ld returned 1 exit status
> configure: failed program was:

> #line 680 "configure"
> #include "confdefs.h"

> im lost.. i have egcs, glibc, and kernel headers installed.
> needless to say this didnt happen on a system the i checked full
> install on :-)

> this is only one of the apps i am trying to compile.. but both have the
> same error..

> any help would be wonderfull,
> drew

> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.


 
 
 

1. Need help Compile C prog. Error

   This might belong in language, but here it goes..

   Recently, my machine crashed. Got new hardware, restored files, thing
is running. However, I'm not a Unix personage, yet. And the Programmer,
well, he's away..

   I desperately need to recompile a program with some simple changes in
it that I made in VI to the source.

   I know little of even the file structure of Unix, but I kinda get
around. So once I made my changes in VI, I use:
        cc program program.c

    What this gives me, is an Error:
  Command like Fatal Error D1001: could not execute 'lib/386/p2_386'

   The file is there, in lib/386. I checked it. (Whatever it does:)
   I figure, there is a problem with Ownership or something, since I had
to reload the system after the crash. The file I'm compiling is in one of
the Usr directories. the lib directory is owned by bin. I changed it to
root, to try, but no help. Obviously, I have NO CLUE as to what I'm
doing. But I'd love some help.

    If this was posted in the wrong place, flame me so I know better the
next time:)

 And for your help  :  TIA

--
 Steve    &*&*&*&*&*&*&*&*&*&*&*&*&        And now.. for the Quote:

 Ritter   &*&*&*&*&*&*&*&*&*&*&*&*&

2. NIS+ removing a passwd entry

3. glibc-2.3.1 compile error (multiple definitions)

4. netbios name resolution by TCP/IP

5. multiple definitions when compiling multiple objects

6. How Can I get global variable information from SPARCompiler C++ 4,1 ?

7. x prog display to multiple displays?

8. 2.5.62: /proc/ide/sis returns incomplete data [15/17]

9. Piping between C prog. and other interactive prog.

10. #!/prog vs. #! /prog

11. Any good books on "Linux Socket prog", also on "Linux Network prog"?

12. Interfacing a c prog with a shell prog

13. Can't compile OpenGl prog -- Cannot find -lglut