From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 31 12:55:40 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C86716A41F for ; Sat, 31 Dec 2005 12:55:40 +0000 (GMT) (envelope-from guomingyan@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0123343D5E for ; Sat, 31 Dec 2005 12:55:38 +0000 (GMT) (envelope-from guomingyan@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so156870wxc for ; Sat, 31 Dec 2005 04:55:38 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=b/j8ZvIkUnWQQfLK07PVHa8ndIQ8O8mri0DVJme13C98ZZj5xjSSeW2ESk3fzUUiBdeVIU0gbiGakneHsFcQNU167WMNTz5vprYWj2FdtkdaJxf2uCnK4cemsI7yn4JMjeTDHTrMga6yZirG3Q+ETnfX9P07z2PSmhcpflddkG0= Received: by 10.70.22.19 with SMTP id 19mr10773739wxv; Sat, 31 Dec 2005 04:55:38 -0800 (PST) Received: by 10.70.39.18 with HTTP; Sat, 31 Dec 2005 04:55:38 -0800 (PST) Message-ID: <1fa17f810512310455l3146b840w12a1a53361029608@mail.gmail.com> Date: Sat, 31 Dec 2005 20:55:38 +0800 From: prime To: Gilbert Fernandes In-Reply-To: <20051231133853.pyq2hfoow4sgcsw8@webmail.spamcop.net> MIME-Version: 1.0 References: <1fa17f810512301341w5b98d554g6dcf950ab26f31bd@mail.gmail.com> <20051231133853.pyq2hfoow4sgcsw8@webmail.spamcop.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: Re: Problem about libnet on FreeBSD 6.0 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: Sat, 31 Dec 2005 12:55:40 -0000 On 12/31/05, Gilbert Fernandes wrote: > > > I find that I can't include when I programming > > with libnet,because $(CC) complains that "struct ether_addr redefined". > > But I need some definitions in ,struct ether_header etc= . > > Currently,I just copy the definitions I need from ,but > > it seems very ugly.Any one has some good ideas? > > Could you show us the include line you use ? > > #include "blabla" and > #include > > will produce very different results as you know :) > > You do use #include ? > > -- > unzip ; strip ; touch ; grep ; finger ; mount ; fsck ; more ; yes ; > fsck ; umount ; sleep > Here is my include lines, #include ...... #include #include #include ........... and this is the error, $(CC) said "/usr/local/include/./libnet/libnet-headers.h:393: error: redefinition of `struct ether_addr'" Thanks. -- Three passions, simple but overwhelmingly strong, have governed my life: the longing for love, the search for knowledge, and unbearable pity for the suffering of mankind. ---------Bertrand Russell