Bug 449387 - libpcap-devel RPM is missing include/pcap-int.h file.
Summary: libpcap-devel RPM is missing include/pcap-int.h file.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: libpcap
Version: 9
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Lichvar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-06-02 15:38 UTC by Daris A Nevil
Modified: 2009-04-21 17:46 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-06-02 16:48:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Two patchfiles for installing pcap-int.h (612 bytes, application/octet-stream)
2008-06-02 15:38 UTC, Daris A Nevil
no flags Details

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?


Note You need to log in before you can comment on or make changes to this bug.