LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-08-2011, 04:44 PM   #1
joeman
LQ Newbie
 
Registered: Feb 2011
Posts: 4

Rep: Reputation: 0
pcap_parse


Hi every body
I am new to linux,could you please some one tell me know how to fix this error:
I wanna compile a C program which niffs the network for arp packets and prints them out ,I keep getting this error:

undefined reference to `pcap_parse'
I have installed every thing new version of pcap ,...
thanks if anybody knows
 
Old 02-08-2011, 05:40 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,933

Rep: Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692
Quote:
Originally Posted by joeman View Post
Hi every body
I am new to linux,could you please some one tell me know how to fix this error:
I wanna compile a C program which niffs the network for arp packets and prints them out ,I keep getting this error:

undefined reference to `pcap_parse'
I have installed every thing new version of pcap ,...
thanks if anybody knows
You don't say what version/distro of Linux you're using, but you need the PCAP development libraries installed, before you can build programs against them. Install libpcap for your distro.

A search on this site yields results as well:
http://www.linuxquestions.org/questi..._parse-842348/
 
Old 02-08-2011, 05:46 PM   #3
joeman
LQ Newbie
 
Registered: Feb 2011
Posts: 4

Original Poster
Rep: Reputation: 0
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.10
DISTRIB_CODENAME=maverick
DISTRIB_DESCRIPTION="Ubuntu 10.10"
I am using this version
I have installed libnet-1.1.5 and libcap-1.1.1
Thank you for reply


Quote:
Originally Posted by TB0ne View Post
You don't say what version/distro of Linux you're using, but you need the PCAP development libraries installed, before you can build programs against them. Install libpcap for your distro.

A search on this site yields results as well:
http://www.linuxquestions.org/questi..._parse-842348/
 
Old 02-08-2011, 06:02 PM   #4
joeman
LQ Newbie
 
Registered: Feb 2011
Posts: 4

Original Poster
Rep: Reputation: 0
do u know any thing about build-essential?my tutor told me to install that ,I have installed that ,but it didn't help

Quote:
Originally Posted by joeman View Post
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.10
DISTRIB_CODENAME=maverick
DISTRIB_DESCRIPTION="Ubuntu 10.10"
I am using this version
I have installed libnet-1.1.5 and libcap-1.1.1
Thank you for reply
 
Old 02-09-2011, 07:55 PM   #5
joeman
LQ Newbie
 
Registered: Feb 2011
Posts: 4

Original Poster
Rep: Reputation: 0
It solved
I removed the libpcap-1.1.1
and installed libpcap0.8-dev
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ntop on Ubuntu: with the error undefined reference to `pcap_parse' pawelch Linux - Newbie 7 11-05-2010 02:44 PM


All times are GMT -5. The time now is 06:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration