From owner-freebsd-net@FreeBSD.ORG Fri Oct 5 11:50:38 2007 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 22AEA16A417 for ; Fri, 5 Oct 2007 11:50:38 +0000 (UTC) (envelope-from vinuvm@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.178]) by mx1.freebsd.org (Postfix) with ESMTP id CA6F413C447 for ; Fri, 5 Oct 2007 11:50:37 +0000 (UTC) (envelope-from vinuvm@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so1001977pyb for ; Fri, 05 Oct 2007 04:50:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=f579abSreQHXUv2nGn8v2XglcBAsznyNYRmWGQ51fF4=; b=qF5kgHadIbloLoqrVNev3q/PMwuYO7CrkVGCBAFuDr3Kl0hDrSJ6YsfHlMWgXmHwCQTfLlWm4pd1iJaMSrzQbWgjtaMF5XxJqmPJDC1xoEVWF1aHlRVhNYlbVldR1hBnIneX+iSAVNnYODqY8QNn6Kv1KW17qymkrZ1ty89PYzA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=LL93ZOJcG1BSBD0Xm0k7Gga1NNi5N0V8SJKivUbPKfzXP6JRMIfQwcBqk4otXVknqGqekSwRqGnD3+POsgtckbpUidqMSBpDLI8UthGrNnP16vHvocO/W5HlYPCSfCQjsIYCGWVEmvHRj7XsI37DWNx9tNNy1c/wsvJ/LozxG2A= Received: by 10.65.116.10 with SMTP id t10mr18426608qbm.1191583467349; Fri, 05 Oct 2007 04:24:27 -0700 (PDT) Received: by 10.65.203.1 with HTTP; Fri, 5 Oct 2007 04:24:27 -0700 (PDT) Message-ID: <8de278a20710050424t68cf95eap99cd34a13e8ce594@mail.gmail.com> Date: Fri, 5 Oct 2007 16:54:27 +0530 From: "Vinod VM" To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: cant compile - undefined reference to `bpfattach' X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Oct 2007 11:50:38 -0000 Hi, I'm having trouble in compiling my code with gcc on release 6.2 I've included the following headers, stdlib.h sys/types.h sys/socket.h net/if.h net/if_var.h net/if_types.h net/bpf.h When compiling the code, i'm getting the following error message /var/tmp//ccphxfRO.o(.text+0x3c): In function `main': : undefined reference to `bpfattach' What am I doing wrong? Sorry for asking such a newbie question!