squid3 FTBFS due to linux-libc-dev and libc6-dev headers mismatch
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Squid |
Unknown
|
Critical
|
||
| | squid3 (Ubuntu) |
High
|
Unassigned | ||
Bug Description
With the fix at LP: #1496924 applied, squid3 fails due to mismatching headers between linux-libc-
In file included from /usr/include/
/usr/include/
IPPROTO_IP = 0, /* Dummy protocol for TCP */
^
In file included from /usr/include/
/usr/include/
IPPROTO_IP = 0, /* Dummy protocol for TCP. */
^
In file included from /usr/include/
/usr/include/
IPPROTO_ICMP = 1, /* Internet Control Message Protocol */
^
In file included from /usr/include/
/usr/include/
IPPROTO_ICMP = 1, /* Internet Control Message Protocol. */
^
<snip>
Tried to ignore "#include linux/netfilter.h" in src/ip/
So far I have found no way to have squid linking solely to either the kernel or libc without disabling netfilter altogether.
Related branches
| tags: | added: ftbfs |
| description: | updated |
| Changed in linux (Ubuntu): | |
| status: | New → Incomplete |
| Martin Pitt (pitti) wrote : | #3 |
This doesn't need apport-collect, this is a bug in the header files which is straightforward to reproduce.
| Changed in linux (Ubuntu): | |
| importance: | Undecided → High |
| status: | Incomplete → Triaged |
| affects: | linux → squid |
| Amos Jeffries (yadi) wrote : | #4 |
Upstream patch at http://
| Changed in squid: | |
| importance: | Unknown → Critical |
| Amos Jeffries (yadi) wrote : | #5 |
Also please note that this is not a bug specific to Squid. It is due to the netfilter/in.h having a cross-include collision with the linux-headers-4.2 headers. The kernel maintainers have a patch to try to workaround it, but any software using system headers before netfilter/in.h will FTBS. Squid is just one of those collateral damage applications.
| Łukasz Zemczak (sil2100) wrote : | #6 |
After applying the patch mentioned in comment #4 the build carries on further, but fails with a new error. This is when building against the new libecap3 library (that's in -proposed), so this might be actually some problem regarding the changes there. But I also tried this patch when building against the old libecap2 and it was still failing in some place (not sure if on the same one though, would have to re-build to fetch the logs). Will try looking into that too. The error log:
Host.cc: In static member function 'static void Adaptation:
Host.cc:130:45: error: invalid new-expression of abstract class type 'Adaptation:
In file included from Host.cc:10:0:
../../.
class Host : public libecap::host::Host
^
In file included from ../../.
/usr/include/
virtual void noteVersionedSe
^
Makefile:439: recipe for target 'libsquid_
make[5]: *** [libsquid_
| Tiago Stürmer Daitx (tdaitx) wrote : | #8 |
The squid3_
libecap2 and squid3 have been build at
https:/
https:/
| Matthias Klose (doko) wrote : | #9 |
the libecap patch is wrong. you need to work with package in wily-proposed, which already has the soname bump upstream.
| Matthias Klose (doko) wrote : | #10 |
the preferred approach would be to finally merge squid3 after more than three years.
| tags: | added: patch |
| Tiago Stürmer Daitx (tdaitx) wrote : | #11 |
I agree that merging the new one is the best approach and rbasak was already working in it, for this reason I was withholding my patches (at the time they required -D_GLIBCXX_
I decided to publish my patches for 3.3.8 just in case we don't get it in time and also because yadi said it was better to revert libecap at this time [1] and to avoid duplicated work since sil200 also tried to fix it.
As yadi also commented in [1], Squid 3.3 and 3.4 require libecap 0.20 (libecap2), only squid 3.5 works with libecap 1.0 (libecap3).
[1] https:/
The attachment "fixes for this bug as well as LP: #1501566 and LP: #1496924" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]
| Tiago Stürmer Daitx (tdaitx) wrote : | #13 |
libecap3 was been deleted. I have created LP: #1504200 to handle the gcc5 transition. After it gets sponsored it should be ok to apply the squid debdiff.
| Tiago Stürmer Daitx (tdaitx) wrote : | #14 |
| Launchpad Janitor (janitor) wrote : | #15 |
This bug was fixed in the package squid3 - 3.3.8-1ubuntu16
---------------
squid3 (3.3.8-1ubuntu16) wily; urgency=medium
[ Tiago Stürmer Daitx ]
* d/patches/
logical-
* d/patches/
(LP: #1496223)
* d/patches/
pod2man (LP: #1501566)
* roll back build-dependency to libecap2-dev, this version of squid3 is not
compatible with libecap3 and libecap3 transition has been rolled back for
wily.
-- Steve Langasek <email address hidden> Fri, 09 Oct 2015 00:29:47 +0000
| Changed in squid3 (Ubuntu): | |
| status: | New → Fix Released |
| Changed in squid3 (Ubuntu): | |
| importance: | Undecided → High |
| no longer affects: | glibc (Ubuntu) |
| no longer affects: | linux (Ubuntu) |


This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:
apport-collect 1496223
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.