Bug 449387

Summary: libpcap-devel RPM is missing include/pcap-int.h file.
Product: [Fedora] Fedora Reporter: Daris A Nevil <dnevil>
Component: libpcapAssignee: Miroslav Lichvar <mlichvar>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 9CC: a1b2c3s26
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-06-02 16:48:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Two patchfiles for installing pcap-int.h none

Description Daris A Nevil 2008-06-02 15:38:37 UTC
Description of problem:
The file 'include/pcap-int.h' is missing from the libpcap-devel RPM.  This file
includes the defintiion of the 'struct pcap' structure, as well as functions
such as pcap_read() which are exported in the library archive file.  The
libpcap-devel RPM is of little use without the 'include/pcap-int.h' file.

The RPM can be fixed by adding an install command for 'pcap-int.h' to the
'install:' target of the file 'Makefile.in'.


Version-Release number of selected component (if applicable):
libpcap-0.9.8-2.fc9.src.rpm

How reproducible:
Every time on install.

Steps to Reproduce:
1. Install libpcap-devel RPM
2. Look for /usr/include/pcap-int.h
3. Find that it is missing
  
Actual results:
The file '/usr/include/pcap-int.h' is missing.

Expected results:
The file 'pcap-int.h' should be installed into the directory '/usr/include'.

Additional info:
See also http://lists.apple.com/archives/darwin-dev/2004/Sep/msg00042.html

Comment 1 Daris A Nevil 2008-06-02 15:38:37 UTC
Created attachment 307379 [details]
Two patchfiles for installing pcap-int.h

Comment 2 Daris A Nevil 2008-06-02 15:52:34 UTC
Comment on attachment 307379 [details]
Two patchfiles for installing pcap-int.h

Set MIME to correct type for .tgz file.

Comment 3 Miroslav Lichvar 2008-06-02 16:00:33 UTC
pcap-int.h describes internal structures that are not supposed to be visible
from client applications. It can change without changing library soname, so an
application using that information could fail when the package is upgraded.

Other programs like tcpdump, arpwatch, wireshark build fine without it. Why
exactly do you need it?

Comment 4 Daris A Nevil 2008-06-02 16:17:30 UTC
Specifically I need the function prototype for pcap_read(), which is exported to
the libpcap library file.  In order to use pcap_read() I also need the
definition for 'struct pcap_t'.

Comment 5 Miroslav Lichvar 2008-06-02 16:48:49 UTC
pcap_dispatch() does the same as pcap_read() and it's exported. Please see the
pcap(3) man page for more information.

Comment 6 Ricocho 2009-04-21 17:46:25 UTC
sorry folks, dont have much knowledge on fedora. how can i apply that patch?