Bug 43717 - squid3 fails to build in UCS 4.2
squid3 fails to build in UCS 4.2
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Squid
UCS 4.2
Other Linux
: P5 normal (vote)
: UCS 4.2
Assigned To: Stefan Gohmann
Daniel Tröder
http://bugs.squid-cache.org/show_bug....
:
Depends on:
Blocks: 41929
  Show dependency treegraph
 
Reported: 2017-03-03 17:34 CET by Janek Walkenhorst
Modified: 2017-04-04 18:28 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Janek Walkenhorst univentionstaff 2017-03-03 17:34:46 CET
squid3 fails to build for UCS 4.2 with errors like the following:


In file included from /usr/include/linux/netfilter.h:7:0,
                 from /usr/include/linux/netfilter_ipv4.h:8,
                 from Intercept.cc:100:
/usr/include/linux/in.h:28:16: error: redeclaration of 'IPPROTO_IP'
   IPPROTO_IP = 0,  /* Dummy protocol for TCP  */
                ^
In file included from /usr/include/arpa/inet.h:22:0,
                 from ../../include/util.h:42,
                 from ../../src/base/Vector.h:39,
                 from ../../src/comm/forward.h:4,
                 from ../../src/comm/Connection.h:40,
                 from Intercept.cc:34:
/usr/include/netinet/in.h:42:5: note: previous declaration '<anonymous enum> IPPROTO_IP'
     IPPROTO_IP = 0,    /* Dummy protocol for TCP.  */
     ^
Comment 1 Daniel Tröder univentionstaff 2017-03-03 17:56:20 CET
Not related, but a note, in case you stumble over it:

The name of the ldap-query binaries changed, so that the squid daemon will not run with a configuration from UCS 4.1. The fix in Bug #43580 compensates that - without patching the squid3-package - by changing the configuration exactly once, and only when upgrading UCS4.1->4.2 in its preinst-script.

If the squid3 package is patched anyway, the 'sed' calls from univention-squids preinst could be moved to squid3s postinst.
Comment 2 Stefan Gohmann univentionstaff 2017-04-01 16:13:35 CEST
I guess this is: http://bugs.squid-cache.org/show_bug.cgi?id=4323

Since we need to patch the postinst, we will need to build it: Bug #44210
Comment 3 Stefan Gohmann univentionstaff 2017-04-01 16:36:10 CEST
(In reply to Stefan Gohmann from comment #2)
> I guess this is: http://bugs.squid-cache.org/show_bug.cgi?id=4323
> 
> Since we need to patch the postinst, we will need to build it: Bug #44210

I've applied the patch: r17447 + r17448

Changelog: r78572
Comment 4 Daniel Tröder univentionstaff 2017-04-04 09:41:05 CEST
OK: squid package builds
OK: squid package updates 4.1 -> 4.2
Comment 5 Stefan Gohmann univentionstaff 2017-04-04 18:28:50 CEST
UCS 4.2 has been released:
 https://docs.software-univention.de/release-notes-4.2-0-en.html
 https://docs.software-univention.de/release-notes-4.2-0-de.html

If this error occurs again, please use "Clone This Bug".