From owner-freebsd-stable@FreeBSD.ORG Wed Mar 8 02:04:48 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 49EE916A420; Wed, 8 Mar 2006 02:04:48 +0000 (GMT) (envelope-from synack@netspace.net.au) Received: from mail.netspace.net.au (cumulus.netspace.net.au [203.10.110.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1BDC43D45; Wed, 8 Mar 2006 02:04:47 +0000 (GMT) (envelope-from synack@netspace.net.au) Received: from [192.168.0.3] (220-253-32-237.VIC.netspace.net.au [220.253.32.237]) by mail.netspace.net.au (Postfix) with ESMTP id 34DC67C3BB; Wed, 8 Mar 2006 13:04:44 +1100 (EST) Message-ID: <440E3D7F.9060602@netspace.net.au> Date: Wed, 08 Mar 2006 13:12:15 +1100 From: "B .Wiggins" User-Agent: Thunderbird 1.5 (X11/20060307) MIME-Version: 1.0 To: freebsd-ports@freebsd.org, Ion-Mihai Tetcu , freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: [SOLVED] cnet compile problem X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Mar 2006 02:04:48 -0000 Hello Brett, > > I am currently studying a Data communications and networking > > subject at Monash University. I am using cnet at home for the labs on my > > FreeBSD notebook as we are using William Stallings' textbook. There > > seems to be a problem with the cnet source code. I have emailed the > > FreeBSD cnet maintainer and they suggested emailing you. Basically the > > problem is as follows; > All of these errors are "the same" and stem from the fact that your version of cnet, v2.0.9 I think, was built before the latest versions of gcc (in FreeBSD and Fedora, among others) became more aggressive about parameter type checking. Two simple changes are necessary: In the cnet header file, cnet.h, change to: extern void CNET_exit(const char *filenm, const char *function, int lineno); and in src/exit.c change to: void CNET_exit(const char *filenm, const char *function, int lineno) { .... } I've made these and a few other (overdue) changes in the distribution, now v2.0.10, available from from: http://www.csse.uwa.edu.au/cnet/index.html Please feel free to distribute this email as widely as you need. Comments and more bug reports welcome. -- "If you are new to UNIX, you may be used to clicking something and seeing either an "OK" message, an error, nothing, or (all too often) a pretty blue screen with nifty high-tech letters explaining exactly where the system crashed" - Michael Lucas