public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
From: Flemming Greve Skovengaard <dsl58893@vip.cybercity.dk>
To: linux-newbie <linux-newbie@vger.kernel.org>
Cc: Anshuman Singh Rawat <asr245@nyu.edu>
Subject: Re: dereferencing pointer to incomplete type
Date: Wed, 16 Jun 2004 21:07:26 +0200	[thread overview]
Message-ID: <40D09A6E.70308@vip.cybercity.dk> (raw)
In-Reply-To: <3aa6093abd75.3abd753aa609@homemail.nyu.edu>

Anshuman Singh Rawat wrote:
> Hi,
> This might be the wrong question for this list, but I am giving it a shot.
> 
> I got the following error while compiling some module -
> 
> Arping.xs:153: dereferencing pointer to incomplete type
> make: *** [Arping.o] Error 1
> 
> 
> Now line 153 in the source is - 
> 
> memcpy(enet_src, src_mac->ether_addr_octet,6);
> 
> where
> 
> u_char enet_src[6] = {0x00, 0x00, 0x00, 0x00, 0x00,0x00};
> 
> struct ether_addr *src_mac;
> 
> 
> struct ether_addr
> {
>     u_char  ether_addr_octet[6];
> };
> 
> are the definitions.
> 
> I haven't been able to figure out what the problem is.
> Can anyone help me with this ?
> 
> Thanks.
> Anshuman
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
> 
> .
> 

Subscribe to and try:

linux-c-programming@vger.kernel.org

You may get a better responce.

-- 
Flemming Greve Skovengaard               Just a few small tears between
a.k.a Greven, TuxPower                   Someone happy and one sad
<dsl58893@vip.cybercity.dk>              Just a thin line drawn between
4112.38 BogoMIPS                         Being a genius or insane
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

      reply	other threads:[~2004-06-16 19:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-16 18:29 dereferencing pointer to incomplete type Anshuman Singh Rawat
2004-06-16 19:07 ` Flemming Greve Skovengaard [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40D09A6E.70308@vip.cybercity.dk \
    --to=dsl58893@vip.cybercity.dk \
    --cc=asr245@nyu.edu \
    --cc=linux-newbie@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox