From owner-freebsd-questions@freebsd.org Sat Jan 21 07:35:33 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B54A2CBA54C for ; Sat, 21 Jan 2017 07:35:33 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) Received: from alogt.com (alogt.com [69.36.191.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 90C011026 for ; Sat, 21 Jan 2017 07:35:33 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alogt.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=1HeHSrWW+bSqqs9WHAANgt/L2B9Z4gTpkFQvo6iXFpY=; b=TJwrQP5TH3AOFmHR7gAEr0o4Ns WrObbkpycMYND+J3JWLVREFDYNa2fo+MB0JZg4KEREhdfZhewnRfycHZOSipffenZQfEXrH12WnuM OMGcF2uxosYXHn4HhhDYYxNkv869eaRwFRsBDVctpkynt+dO9KZkN/O2uByewK6THczY=; Received: from subs08-103-10-67-162.three.co.id ([103.10.67.162]:4285 helo=X220.alogt.com) by sl-508-2.slc.westdc.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1cUpmq-000L9j-JV; Sat, 21 Jan 2017 00:08:33 -0700 Date: Sat, 21 Jan 2017 15:08:15 +0800 From: Erich Dollansky To: spirals Cc: freebsd-questions@freebsd.org Subject: Re: BSD C Compiler to recompile many lines of K&R Whitebook C. Message-ID: <20170121150815.20319576@X220.alogt.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sl-508-2.slc.westdc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - alogt.com X-Get-Message-Sender-Via: sl-508-2.slc.westdc.net: authenticated_id: erichsfreebsdlist@alogt.com X-Authenticated-Sender: sl-508-2.slc.westdc.net: erichsfreebsdlist@alogt.com X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jan 2017 07:35:33 -0000 Hi, On Fri, 20 Jan 2017 21:40:29 +0000 spirals wrote: > Hi All, I am a newcomer to your list, with a rather unusual question, > and this is definitely not a windup folks. > > How far back in BSD releases would I need to get (the source code to > build) a C compiler that will accept "bog standard" K&R Whitebook C > (1st ed), rather than throwing the thousands of warnings and error > messages the current gcc on Linux 7 (Wheezy) is doing. > > I ask this as I understand from reading the documents the FreeBSD > compiler is based on gcc. > > I have not yet installed FreeBSD, but asking this question as part of > a process of evaluating evaluating it, based on this specific > requirement to compile K&R C. > > The K&R C consists of many lines of code known to compile clean and > run OK when it was originally written. this could have worked those days as the compiler might was written by the same people as the program. Any way, I ran recently in a K&R source which compiled and worked as expected on FreeBSD 10 and 12. The warnings have been nearly endless. As the source was just a few hundred lines, I do not know how relevant this is. Good luck! Erich