From owner-freebsd-questions@FreeBSD.ORG Tue Feb 21 05:20:51 2012 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 2C539106566B for ; Tue, 21 Feb 2012 05:20:51 +0000 (UTC) (envelope-from sengflex@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id D420F8FC0A for ; Tue, 21 Feb 2012 05:20:50 +0000 (UTC) Received: by yenl12 with SMTP id l12so3206118yen.13 for ; Mon, 20 Feb 2012 21:20:50 -0800 (PST) Received-SPF: pass (google.com: domain of sengflex@gmail.com designates 10.236.175.162 as permitted sender) client-ip=10.236.175.162; Authentication-Results: mr.google.com; spf=pass (google.com: domain of sengflex@gmail.com designates 10.236.175.162 as permitted sender) smtp.mail=sengflex@gmail.com; dkim=pass header.i=sengflex@gmail.com Received: from mr.google.com ([10.236.175.162]) by 10.236.175.162 with SMTP id z22mr33880279yhl.119.1329801650153 (num_hops = 1); Mon, 20 Feb 2012 21:20:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=/vXOWwtMB6poE1ryi4XKN/643LVh/dn8q424ScFSDWo=; b=R9WMyGnHEovaGbWD0SRUgjnU9H36Mn5so8dpRbYZKCuuOxgtsvv5txAygk/XXL/dIw veRxXnimBt4fY1z4kM8MtqNM9crz6FQgHH8MylwTfqMIrI2k9lRaMvJaFQmevzGTpanl jTYjMG+DqkZtC+OxolU1rPdEOWvfHTTwKij8c= Received: by 10.236.175.162 with SMTP id z22mr26216521yhl.119.1329799920429; Mon, 20 Feb 2012 20:52:00 -0800 (PST) Received: from [186.207.137.150] ([186.207.137.150]) by mx.google.com with ESMTPS id h20sm30655708ang.7.2012.02.20.20.51.59 (version=SSLv3 cipher=OTHER); Mon, 20 Feb 2012 20:51:59 -0800 (PST) Message-ID: <4F4322ED.1040604@gmail.com> Date: Tue, 21 Feb 2012 00:51:57 -0400 From: Danilo Almeida User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:10.0) Gecko/20120209 Thunderbird/10.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Tue, 21 Feb 2012 12:06:43 +0000 Subject: re: advanced programming unix environment (pracct.c:31: error: storage size of 'acdata' isn't known) 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, 21 Feb 2012 05:20:51 -0000 I think I found the reason for the reported error. In the file 'pracct.c' variable 'acdata' is declared as 'struct acct'. This structure must be in header 'acct.h', in sub-directory '/usr/include/sys'. But it is not. In that header there are two similar structures instead: 'struct acctv2' and 'struct acctv1'. Thus, 'pracct.c' is outdated. The question is which of the two structures replaces the 'struct acct' above. Forgive for my English. I am using google translator. My native language is Portuguese. :-)