From owner-freebsd-questions@FreeBSD.ORG Mon Apr 14 18:51:09 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74ADF1065677 for ; Mon, 14 Apr 2008 18:51:09 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from snoogles.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 485678FC21 for ; Mon, 14 Apr 2008 18:51:09 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (localhost [127.0.0.1]) by snoogles.rachie.is-a-geek.net (Postfix) with ESMTP id 7431A1CC91; Mon, 14 Apr 2008 10:51:08 -0800 (AKDT) From: Mel To: freebsd-questions@freebsd.org Date: Mon, 14 Apr 2008 20:51:05 +0200 User-Agent: KMail/1.9.7 References: <774348.47840.qm@web86514.mail.ird.yahoo.com> In-Reply-To: <774348.47840.qm@web86514.mail.ird.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804142051.06189.fbsd.questions@rachie.is-a-geek.net> Cc: Brother Seamus Subject: Re: advanced programming unix environment 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: Mon, 14 Apr 2008 18:51:09 -0000 On Monday 14 April 2008 18:48:58 Brother Seamus wrote: > I am trying to build the neccesary files for the stevens/rago APUE.2e book > on FreeBSD 7.0 > I get the following error: > +++++++++++++++++++++++++++++++++++++++++ > pracct.c ../lib/libapue.a > pracct.c: In function 'main': > pracct.c:31: error: storage size of 'acdata' isn't known > pracct.c:31: warning: unused variable 'acdata' The legacy struct acct has been renamed to acctv1 and a new one is named acctv2. If you add: typedef struct acctv1 acct_t; After the #include then change the type of acdata to 'acct_t', you'll probably have solved it. But depends a bit on the rest of the library. -- Mel Problem with today's modular software: they start with the modules and never get to the software part.