LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-16-2006, 12:38 PM   #1
Geminias
Member
 
Registered: Sep 2005
Posts: 201

Rep: Reputation: 30
Compiling with GCC


hello, i'm new to linux using FC4, just got the bugger installed and i'm trying to get Hping3 installed.

The error i get is:
Code:
Code:
error: net/bpf.h: No such file or directory libpcap_stuff.c: In function ‘pcap_recv’: libpcap_stuff.c:61: warning: pointer targets in assignment differ in signedness
I know i need to download the net/bpf.h libary, but I wouldn't know what to do with it once I got it. Could someone please either direct me to a relevant tutorial or write one for me on how to do this? Remember i'm a complete linux noob, i know a handful of stuff, so if you could give me the exact commands it would be nice.

thanks in advance,
justin
 
Old 03-16-2006, 12:52 PM   #2
MicahCarrick
Member
 
Registered: Jul 2004
Distribution: Fedora
Posts: 241

Rep: Reputation: 31
The easiset way in fedora to handle such issues is
1. Find out what development package contains the missing header file.
2. Install said package using yum.

In your case, it looks like the missing file (bpf.h) is part of libpcap. In order to install applications from source that use a library, you have to have the development packages. Try this:

Code:
yum install libpcap-devel
And then try compiling your program again.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling gcc without any gcc installed my_kappa Linux - Software 5 01-30-2006 12:15 AM
Compiling using gcc Damitha Mandriva 1 12-17-2004 05:11 AM
Kernel compiling: gcc-3.3 is 586, should be gcc-3.3 386 Erik Plaggenmar Linux - Software 0 10-01-2004 11:38 AM
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 05:03 AM
Compiling gcc CuteBug Linux - Software 2 02-22-2004 09:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:29 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
Open Source Consulting | Domain Registration