configure does not enable support for wireless extensions and vlan acceleration

Bug #838952 reported by Sergey Svishchev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libpcap (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

libpcap 1.0.0-6, built on 10.04.1

checking if tpacket_auxdata struct has tp_vlan_tci member... no

configure:6855: checking if tpacket_auxdata struct has tp_vlan_tci member
configure:6882: gcc -c -g -O2 -D_FILE_OFFSET_BITS=64 conftest.c >&5
conftest.c: In function 'main':
conftest.c:37: error: 'u_int' undeclared (first use in this function)

checking for linux/wireless.h... no

configure:6600: checking for linux/wireless.h
configure:6625: gcc -c -g -O2 -D_FILE_OFFSET_BITS=64 conftest.c >&5
In file included from /usr/include/linux/wireless.h:74,
                 from conftest.c:37:
/usr/include/linux/if.h:129: error: redefinition of 'struct ifmap'
/usr/include/linux/if.h:165: error: redefinition of 'struct ifreq'
/usr/include/linux/if.h:215: error: redefinition of 'struct ifconf'

Revision history for this message
Sergey Svishchev (svs) wrote :
Revision history for this message
Evan Huus (eapache) wrote :

Thank you for reporting this bug and helping to make Ubuntu better.

I attempted to reproduce this bug by building libpcap 1.0.0-6 on an Ubuntu 10.04.1, and did not run into the described problem.

In order to help me solve your problem, please answer these questions:

 * Is your source package coming from Ubuntu (via the command "apt-get source libpcap") or from some other location? If it is from some other location, please provide the URL where you downloaded it.
 * Have you installed all of the build dependencies for the libpcap package by running "sudo apt-get build-dep libpcap"?

---
Ubuntu Bug Squad Volunteer
https://wiki.ubuntu.com/BugSquad

Changed in libpcap (Ubuntu):
status: New → Incomplete
Revision history for this message
Sergey Svishchev (svs) wrote :

Yes, the source package is coming from Ubuntu, and yes, build dependencies are installed.

Also,

ii gcc 4:4.4.3-1ubuntu1 The GNU C compiler
ii gcc-4.4 4.4.3-4ubuntu5 The GNU C compiler
ii gcc-4.4-base 4.4.3-4ubuntu5 The GNU Compiler Collection (base package)
ii linux-libc-dev 2.6.32-25.45 Linux Kernel Headers for development

Revision history for this message
Evan Huus (eapache) wrote :

After re-examining my build environment I was able to reproduce this issue.

Testing on the development release (Oneiric) revealed that the wireless issue has been fixed, but the vlan issue has not.

The wireless issue is, unfortunately, not serious enough to qualify for a stable release update, and since it is already fixed in a later version, there is nothing that needs to be done for it.

Since Ubuntu inherits the libpcap package directly from Debian with no changes, the vlan issue is very likely a bug upstream with their package. It would be nice if you could send the bug to them by following the instructions at https://wiki.ubuntu.com/Bugs/Upstream/Debian. If you have done so, please add the number of the upstream bug (or the link) to this report so we can track its status. Thanks in advance.

---
Ubuntu Bug Squad Volunteer
https://wiki.ubuntu.com/BugSquad

Changed in libpcap (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Sergey Svishchev (svs) wrote :

It's actually a libpcap bug, see:

http://<email address hidden>/msg05617.html

The fix went into 1.1 branch:

https://github.com/mcr/libpcap/commit/93583909e1c9e1f8d691d141d57ffaa18f5ba6ee

Revision history for this message
Evan Huus (eapache) wrote :

Interesting. Oneiric has libpcap 1.1.1-8, so I guess only part of the fix (the wireless one) made it into the 1.1 branch.

According to the changelog, the vlan fix only made it into trunk for 1.2, which is still beta
http://www.tcpdump.org/libpcap-changes.txt

Once it has been released, 1.2 will automatically make it into Ubuntu via Debian, fixing this bug. Since the issue is not serious enough to qualify for a stable release update, there is nothing more to do for it here.

This bug will stay in 'Confirmed' (properly 'Triaged', but I can't set that status) until 1.2 enters the Ubuntu archives (probably some time during the 12.04 cycle), at which point it will move to 'Fix Released'.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libpcap - 1.1.1-10

---------------
libpcap (1.1.1-10) unstable; urgency=low

  * Cherry-pick commit 93583909e1 from upstream to fix detection of VLAN
    acceleration support in the configure script (LP: #838952).

 -- Romain Francoise <email address hidden> Thu, 03 Nov 2011 19:29:58 +0100

Changed in libpcap (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.