Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
X-Internal-ID: 3B235FA800192D74
From: "Chris Wenk" <christophe.wenk@kuehne-nagel.com>
To: <cygwin@cygwin.com>
Subject: Error on compilation 
Date: Tue, 17 Jul 2001 08:42:50 +0200
Message-ID: <POEMIHAKNHMKPMCELLMEKELECFAA.christophe.wenk@kuehne-nagel.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
In-Reply-To: <EA18B9FA0FE4194AA2B4CDB91F73C0EF08F126@itdomain002.itdomain.net.au>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2479.0006
Importance: Normal

Hi there

I tried to compile several programs ported from a suse linux box.
Some compilation works but then I have also a lot of programs with
following error message:

sizeof applied to an incomplete type
dereferencing pointer to incomplete type

Does anybody know what I have to change ?

my compilation is as follow:  gcc -o test.exe test.c

the errors first appears at following statement (see ==>):

unsigned char *packet;
struct iphdr *ip;
struct icmphdr *icmp;

==> packet = (unsigned char *)malloc(sizeof(struct iphdr) +
                                                             sizeof(struct
icmphdr) + 8);


Thanks for help
Chris


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

