From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 6 05:23:16 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 321E11065677 for ; Sun, 6 Jun 2010 05:23:16 +0000 (UTC) (envelope-from shrikanth07@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id DDF0D8FC08 for ; Sun, 6 Jun 2010 05:23:15 +0000 (UTC) Received: by vws18 with SMTP id 18so1230926vws.13 for ; Sat, 05 Jun 2010 22:23:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=KARo0KPMl50tFtO5b+eI8P4DkdT5pllvbWjkFkKEfuc=; b=UTO70qfYPNj50ph3aDKr2Wh1WdJW8O5NL7LDCakQaZ44scPZ9CuF4bKItoCr0ZFRXj pHOF2bWdixnqKLcTr9wOXHCiYVPaANsf2HqDRBUv4YAqZtxpJSM+GZg/NBqNPWPOfdH1 16NVVaWtc034KXtG7TCbt/jKZ8lXT4ggwPoPE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=vxjDBZ5bsbBQtx0MQtN3xe5Tn+to4pky0E9v9AQXQ4O5+p9TTx+wwmp5fIJs9lAJDE yNqJaj+UnibWkRanhqcVxg+VRCX+XyTluW07AA6Gp5sr+e7vNmJkbJ0Ip9oBF3rEA3LH Eg5w2+KKIRa4GOvauE15eOmep5Q2hCZDUB7pc= MIME-Version: 1.0 Received: by 10.229.181.203 with SMTP id bz11mr3738284qcb.94.1275801794921; Sat, 05 Jun 2010 22:23:14 -0700 (PDT) Received: by 10.229.88.140 with HTTP; Sat, 5 Jun 2010 22:23:14 -0700 (PDT) Date: Sun, 6 Jun 2010 10:53:14 +0530 Message-ID: From: Shrikanth Kamath To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: ctfconvert : failed to resolve types X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jun 2010 05:23:16 -0000 I have a small snippet trying to study ctfconvert... struct abc { int length; int bit; union { char key[0]; char *key_ptr[0]; } keys; }; int main() { int a =1; struct abc member = { 16, 5 }; printf("Sizeof abc structure [%d] \n", sizeof(struct abc)); } % gcc -g ctfconvert_prob.c % ctfconvert a.out I get the following error on running "ctfconvert"... ctfconvert_prob.c: failed to resolve the following types: struct 362 <16a>: failed to size member "keys" of type __anon__ (297 <129>) ERROR: ctfconvert_prob.c: failed to resolve types How can ctfconvert be equipped to resolve this data type? -- Shrikanth R K