Need help Compile C prog. Error

Need help Compile C prog. Error

Post by Steve Aran » Sat, 25 Jun 1994 17:06:25



   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   &*&*&*&*&*&*&*&*&*&*&*&*&

 
 
 

1. compile errors on multiple progs

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.

2. ZDNET attacks MS OFFICE again!

3. Newbie seeks help: Compiling progs

4. How do you create boot disks in 4.0?

5. HELP compiling X progs - stupid question

6. FTP does not work with ipchains masquerading (Firewall)

7. Help Me. Can't compile any prog

8. FTPD and chroot and ls

9. Need help with link error when compiling a kernel

10. Error: "Out of Memory" after first compile in Mandrake 6.0 + need help with kernal

11. Need help with link error when compiling a kernel

12. ld Error on g++ compile - Help needed!

13. kernel compiling errors - help needed