From owner-freebsd-questions@FreeBSD.ORG Fri Dec 15 16:37:37 2006 Return-Path: X-Original-To: freeBSD-questions@FreeBSD.org Delivered-To: freeBSD-questions@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7539716A523 for ; Fri, 15 Dec 2006 16:37:37 +0000 (UTC) (envelope-from brian@levie.freeserve.co.uk) Received: from xsmtp04.mail2web.com (xsmtp04.mail2web.com [168.144.250.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 76B4C43D3F for ; Fri, 15 Dec 2006 16:32:38 +0000 (GMT) (envelope-from brian@levie.freeserve.co.uk) Received: from [168.144.108.12] (helo=M2W012.mail2web.com) by xsmtp04.mail2web.com with smtp (Exim 4.63) (envelope-from ) id 1GvG0b-0005F5-Ly; Fri, 15 Dec 2006 11:34:08 -0500 Message-ID: <380-220061251516345670@M2W012.mail2web.com> X-Priority: 3 X-Originating-IP: 90.240.238.208 X-URL: http://mail2web.com/ From: "brian@levie.freeserve.co.uk" To: bsam@ipt.ru Date: Fri, 15 Dec 2006 11:34:05 -0500 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freeBSD-questions@FreeBSD.org Subject: Re: Failure to compile X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: brian@levie.freeserve.co.uk List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Dec 2006 16:37:37 -0000 Original Message: ----------------- From: Boris Samorodov bsam@ipt=2Eru Date: Fri, 15 Dec 2006 11:50:37 +0300 To: brian@levie=2Efreeserve=2Eco=2Euk, freebsd-questions@FreeBSD=2Eorg Subject: Re: Failure to compile [CC to freebsd-questions@ restored] Hello Brian! Please, try to not top-post=2E It's hard to track the thread=2E Thanks=2E On Wed, 13 Dec 2006 14:31:04 -0000 Brian Levie wrote: > Thanks for your reply, Sorry for the delay (I've been a little bit busy)=2E BTW if you cc'ed to freebsd-questions@ you may be able to get an answer from somebody else much faster=2E ;-) > FreeBSD is installed in a 1=2E5Gb partition the rest is windows XP, downloaded > an iso file from the web=2E OK=2E Then you should got a system compiler which was overwritten by Xenix one=2E > By Unix files I mean data files which I wrote firstly on a machine runni= ng > Xenix then this was updated to a server running Unix=2E These files wer= e used > to compile many programs that I wrote in those days=2E Xenix installati= on > disks are now unobtainable, so I thought I would try FreeBSD> I think that you may try to compile your programms by the system compiler (or one from the ports system) and adopt the sources when needed=2E > Uname -a: FreeBSD 6=2E1-Release 6=2E1 Release #0: Sun May 7 04:32:13 UT= C > 2006root@apres cse buffalo=2Eedu:/usr/obj/usr/src/sys/GENERIC i386 > File: /usr/bin/cc Microsoft a=2Eoutseperate pin semented word swapped = not > stripped V2=2E3 V3=2E0 386 small model executable not stripped Yep, that's why you got "Exec format error"=2E FreeBSD is capable of running binaries from some other OSes but Xenix is not among them=2E > Ls -l: -rwx--x--x 1 root wheel 37376 Nov 3 1993 /usr/bin/cc =2E=2E=2Ewhich then you overwrote by another one=2E > I hope this is of some help=2E Well, to receive a working OS you may either reinstall it or do a binary update (imho rebuilding is not an option since you overwrote some system binaries)=2E > -----Original Message----- > From: Boris Samorodov [mailto:bsam@ipt=2Eru]=20 > Sent: 12 December 2006 22:27 > To: Brian Levie > Cc: questions@FreeBSD=2Eorg > Subject: Re: Failure to compile > Hello Brian and welcome! > On Tue, 12 Dec 2006 21:38:19 -0000 Brian Levie wrote: > > I recently installed FreeBSD 6=2E1, > How did you do it=3F > > and copied many Unix files with no > What do you call "Unix files" and where did you get them=3F > > problems at all=2E However when I try to run the C compiler which wor= ked > fine > > with Unix, I get the error message '/usr/bin/cc Exec format error=20 Binary > > file not executable'=2E I tried changing permissions and owner with no= > change=2E > Please, show us the output of commands "uname -a", "file /usr/bin/cc" > and "ls -l /usr/bin/cc"=2E > > Any suggestions or won't the unix C compiler not work with FreeBSD=3F > Well, FreeBSD is used to be compiled by this compiler=2E Those troubles > of yours shouldn't happen=2E ;-) WBR --=20 Boris Samorodov (bsam) Research Engineer, http://www=2Eipt=2Eru Telephone & Internet SP FreeBSD committer, http://www=2EFreeBSD=2Eorg The Power To Serve I did not realise FreeBSD had a C compiler, I decided to reformat the partition and reinstall FreeBSD=2E It appeared to go well but after exiti= ng the install I cannot boot it, I get the error message ' Unable to load a Kernel', what has happened=3F Brian -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web=2Ecom/ =2E