Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!usenet.eel.ufl.edu!news.mathworks.com!enews.sgi.com!decwrl!purdue!haven.umd.edu!hecate.umd.edu!news From: "Gary L. Jackson" <garyj@kzin.dorm.umd.edu> Newsgroups: comp.unix.bsd.freebsd.misc Subject: pcap Date: Fri, 23 Aug 1996 17:39:24 -0400 Organization: University of Maryland, College Park Lines: 38 Message-ID: <321E250C.41C67EA6@kzin.dorm.umd.edu> NNTP-Posting-Host: annex9-58.dial.umd.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.0 (X11; I; FreeBSD 2.1.0-RELEASE i386) This is probably the entirely wrong place to pose this question, but I'm not sure where to ask it so I'm going to go ahead and ask it here: I am trying to learn how to use pcap, so I wrote this very simple program so I can start testing the waters: /* Testing out pcap */ #include <pcap.h> #include <stdio.h> int main(){ char *device,*errbuff; if (device = pcap_lookupdev(errbuff)) printf("Device: %s\n",device); else printf("Error: %s\n",errbuff); return 0; } I compile it with the following command: cc -lpcap test.c And run it with the following command: ./a.out And I get this error: ld.so failed: Undefined symbol "_fddipad" in a.out:/usr/lib/libpcap.so.2.0 What the heck am I missing? And where should I go for more information? Thank you for your time and patience. -- Gary