From owner-freebsd-questions@FreeBSD.ORG Tue Dec 12 23:04:52 2006 Return-Path: X-Original-To: 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 DFD9916A675 for ; Tue, 12 Dec 2006 23:04:52 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from drone2.qsi.net.nz (drone2-svc-skyt.qsi.net.nz [202.89.128.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3EC1F44E16 for ; Tue, 12 Dec 2006 22:32:56 +0000 (GMT) (envelope-from jonc@chen.org.nz) Received: (qmail 32221 invoked by uid 0); 12 Dec 2006 22:34:19 -0000 Received: from unknown (HELO chen.org.nz) ([202.89.146.5]) (envelope-sender ) by 0 (qmail-ldap-1.03) with SMTP for ; 12 Dec 2006 22:34:19 -0000 Received: by chen.org.nz (Postfix, from userid 1000) id 7081356423; Wed, 13 Dec 2006 11:34:18 +1300 (NZDT) Date: Wed, 13 Dec 2006 11:34:18 +1300 From: Jonathan Chen To: Brian Levie Message-ID: <20061212223418.GA49574@osiris.chen.org.nz> References: <000001c71e35$d826cd30$37244d51@brianlevie> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000001c71e35$d826cd30$37244d51@brianlevie> User-Agent: Mutt/1.4.2.2i Cc: questions@FreeBSD.org Subject: Re: Failure to compile X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Dec 2006 23:04:53 -0000 On Tue, Dec 12, 2006 at 09:38:19PM -0000, Brian Levie wrote: > I recently installed FreeBSD 6.1, and copied many Unix files with no > problems at all. However when I try to run the C compiler which worked fine > with Unix, I get the error message '/usr/bin/cc Exec format error Binary > file not executable'. I tried changing permissions and owner with no change. > Any suggestions or won't the unix C compiler not work with FreeBSD? What Unix are you talking about? Generally speaking, executables from a non-FreeBSD system will not work on FreeBSD. -- Jonathan Chen ---------------------------------------------------------------------- char *p="char *p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}