LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Compiling with GCC (https://www.linuxquestions.org/questions/linux-general-1/compiling-with-gcc-425434/)

Geminias 03-16-2006 12:38 PM

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

MicahCarrick 03-16-2006 12:52 PM

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.


All times are GMT -5. The time now is 03:47 PM.