Koozali.org: home of the SME Server

Help! missing files crt1.o crti.o and crtn.o

mien

Help! missing files crt1.o crti.o and crtn.o
« on: June 14, 2006, 01:51:17 PM »
I just installed the GCC compiler on my SME Server, but I miss the files crt1.o crti.o and crtn.o that are needed by the linker. Where can I get those files.

I am not a specialist in GCC (neither in Linux), but my guess is that those files should be a part of the Linux (Redhat) distribution, but are not there on SME-Server because no compiler is (normaly) to be used here. So I suppose if I get a "usual" distibution of Redhat Linux, I'll get those files.

But just to spare time... Does anyone here have those files for Redhat 7.3? The crt1.o crti.o and crtn.o files should be in some lib dirrectory (/lib/ or /usr/lib/ or whatever is accessible to the ld linker). If yes, please send them to me to michel@englert.dk :-) Thank you! :-)

Or does any one know where to get those files (on the net), or their source code?

Thank you in advance!

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Help! missing files crt1.o crti.o and crtn.o
« Reply #1 on: June 14, 2006, 05:37:54 PM »
Quote from: "mien"
I just installed the GCC compiler on my SME Server


Why? WHat are you trying to compile? Have you searched for pre-built RPMs?

mien

Help! missing files crt1.o crti.o and crtn.o
« Reply #2 on: June 14, 2006, 08:55:42 PM »
> Why? WHat are you trying to compile?
I want to put a CGI program I wrote in C on my web site. And I haven't any other Linux machine other than my SME-Server. So I want to install GCC to compile it on the machine.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Help! missing files crt1.o crti.o and crtn.o
« Reply #3 on: June 14, 2006, 10:10:27 PM »
Quote from: "mien"
> Why? WHat are you trying to compile?
I want to put a CGI program I wrote in C on my web site. And I haven't any other Linux machine other than my SME-Server. So I want to install GCC to compile it on the machine.


The files you want are in the glibc-devel rpm.

Did you consider writing your CGI in perl or python? Or even PHP? Writing in C is doing it the hard way - especially if you're not familiar enough with linux to find all the bits and pieces you need.

mien

Help! missing files crt1.o crti.o and crtn.o
« Reply #4 on: June 15, 2006, 10:00:12 PM »
Thank you for your information.

> Writing in C is doing it the hard way...
Well, not for me, as I am quite familiar with C, and its ANSI library wich is the only one I use for this program.

I am only a beginner with Perl, and never tryed Pyton or PHP. But the main issue is that the GCI program is already written, and has been running quite a while on Mac and on DOS. So it IS the easy way just to compile it instead of rewritting it.  :-)

Janm

Help! missing files crt1.o crti.o and crtn.o
« Reply #5 on: June 16, 2006, 09:37:45 PM »
You got mail
Jan

mien

Help! missing files crt1.o crti.o and crtn.o
« Reply #6 on: June 20, 2006, 08:18:32 AM »
A big "thank you!" to Janm who provided me the files crt1.o, crti.o and crtn.o as well as the file libc.a to get the compiler work!

Now it works!

So if anyone wants help to instal GCC on their SME-Server, just let me know...  :-D

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Help! missing files crt1.o crti.o and crtn.o
« Reply #7 on: June 20, 2006, 03:08:32 PM »
Quote from: "mien"
A big "thank you!" to Janm who provided me the files crt1.o, crti.o and crtn.o as well as the file libc.a to get the compiler work!


You could have got them yourself by installing the glibc-devel RPM.

mien

Help! missing files crt1.o crti.o and crtn.o
« Reply #8 on: June 21, 2006, 08:46:52 AM »
> You could have got them yourself by installing the glibc-devel RPM.
Yes, of course, and it whould have been the correct way to do, but Jan's mail have been much faster than my research on the Internet to find that RPM.  ;-)