* [iptables PATCH 2/2 RFC] Remove Libc5 support code
@ 2015-05-02 19:51 Felix Janda
2015-05-04 10:48 ` Florian Westphal
0 siblings, 1 reply; 5+ messages in thread
From: Felix Janda @ 2015-05-02 19:51 UTC (permalink / raw)
To: netfilter-devel
Current code makes the assumption that !defined(__GLIBC__) means libc5
which is very unlikely the case nowadays.
Fixes compile error because of conflict between kernel and musl headers.
---
If libc5 is considered still relevant, I could try to come up with an
autoconf test.
---
| 12 ------------
1 file changed, 12 deletions(-)
--git a/include/libiptc/ipt_kernel_headers.h b/include/libiptc/ipt_kernel_headers.h
index 18861fe..a5963e9 100644
--- a/include/libiptc/ipt_kernel_headers.h
+++ b/include/libiptc/ipt_kernel_headers.h
@@ -5,7 +5,6 @@
#include <limits.h>
-#if defined(__GLIBC__) && __GLIBC__ == 2
#include <netinet/ip.h>
#include <netinet/in.h>
#include <netinet/ip_icmp.h>
@@ -13,15 +12,4 @@
#include <netinet/udp.h>
#include <net/if.h>
#include <sys/types.h>
-#else /* libc5 */
-#include <sys/socket.h>
-#include <linux/ip.h>
-#include <linux/in.h>
-#include <linux/if.h>
-#include <linux/icmp.h>
-#include <linux/tcp.h>
-#include <linux/udp.h>
-#include <linux/types.h>
-#include <linux/in6.h>
-#endif
#endif
--
2.3.6
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [iptables PATCH 2/2 RFC] Remove Libc5 support code
2015-05-02 19:51 [iptables PATCH 2/2 RFC] Remove Libc5 support code Felix Janda
@ 2015-05-04 10:48 ` Florian Westphal
2015-05-04 10:55 ` Pablo Neira Ayuso
0 siblings, 1 reply; 5+ messages in thread
From: Florian Westphal @ 2015-05-04 10:48 UTC (permalink / raw)
To: Felix Janda; +Cc: netfilter-devel
Felix Janda <felix.janda@posteo.de> wrote:
> Current code makes the assumption that !defined(__GLIBC__) means libc5
> which is very unlikely the case nowadays.
>
> Fixes compile error because of conflict between kernel and musl headers.
> ---
> If libc5 is considered still relevant, I could try to come up with an
> autoconf test.
I'm all for removing libc5 support if this is whats preventing iptables
to be built with current non-glibc systems.
Pablo, Patrick, Eric, Jozsef - whats your take on this?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [iptables PATCH 2/2 RFC] Remove Libc5 support code
2015-05-04 10:48 ` Florian Westphal
@ 2015-05-04 10:55 ` Pablo Neira Ayuso
2015-05-04 11:34 ` Jozsef Kadlecsik
0 siblings, 1 reply; 5+ messages in thread
From: Pablo Neira Ayuso @ 2015-05-04 10:55 UTC (permalink / raw)
To: Florian Westphal; +Cc: Felix Janda, netfilter-devel
On Mon, May 04, 2015 at 12:48:09PM +0200, Florian Westphal wrote:
> Felix Janda <felix.janda@posteo.de> wrote:
> > Current code makes the assumption that !defined(__GLIBC__) means libc5
> > which is very unlikely the case nowadays.
> >
> > Fixes compile error because of conflict between kernel and musl headers.
> > ---
> > If libc5 is considered still relevant, I could try to come up with an
> > autoconf test.
>
> I'm all for removing libc5 support if this is whats preventing iptables
> to be built with current non-glibc systems.
>
> Pablo, Patrick, Eric, Jozsef - whats your take on this?
I would say, go take it.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [iptables PATCH 2/2 RFC] Remove Libc5 support code
2015-05-04 10:55 ` Pablo Neira Ayuso
@ 2015-05-04 11:34 ` Jozsef Kadlecsik
2015-05-08 14:04 ` Florian Westphal
0 siblings, 1 reply; 5+ messages in thread
From: Jozsef Kadlecsik @ 2015-05-04 11:34 UTC (permalink / raw)
To: Pablo Neira Ayuso; +Cc: Florian Westphal, Felix Janda, netfilter-devel
On Mon, 4 May 2015, Pablo Neira Ayuso wrote:
> On Mon, May 04, 2015 at 12:48:09PM +0200, Florian Westphal wrote:
> > Felix Janda <felix.janda@posteo.de> wrote:
> > > Current code makes the assumption that !defined(__GLIBC__) means libc5
> > > which is very unlikely the case nowadays.
> > >
> > > Fixes compile error because of conflict between kernel and musl headers.
> > > ---
> > > If libc5 is considered still relevant, I could try to come up with an
> > > autoconf test.
> >
> > I'm all for removing libc5 support if this is whats preventing iptables
> > to be built with current non-glibc systems.
> >
> > Pablo, Patrick, Eric, Jozsef - whats your take on this?
>
> I would say, go take it.
I second that.
Best regards,
Jozsef
-
E-mail : kadlec@blackhole.kfki.hu, kadlecsik.jozsef@wigner.mta.hu
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : Wigner Research Centre for Physics, Hungarian Academy of Sciences
H-1525 Budapest 114, POB. 49, Hungary
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [iptables PATCH 2/2 RFC] Remove Libc5 support code
2015-05-04 11:34 ` Jozsef Kadlecsik
@ 2015-05-08 14:04 ` Florian Westphal
0 siblings, 0 replies; 5+ messages in thread
From: Florian Westphal @ 2015-05-08 14:04 UTC (permalink / raw)
To: Jozsef Kadlecsik
Cc: Pablo Neira Ayuso, Florian Westphal, Felix Janda, netfilter-devel
Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> wrote:
> > On Mon, May 04, 2015 at 12:48:09PM +0200, Florian Westphal wrote:
> > > Felix Janda <felix.janda@posteo.de> wrote:
> > > > Current code makes the assumption that !defined(__GLIBC__) means libc5
> > > > which is very unlikely the case nowadays.
> > > >
> > > > Fixes compile error because of conflict between kernel and musl headers.
> > > > ---
> > > > If libc5 is considered still relevant, I could try to come up with an
> > > > autoconf test.
> > >
> > > I'm all for removing libc5 support if this is whats preventing iptables
> > > to be built with current non-glibc systems.
> > >
> > > Pablo, Patrick, Eric, Jozsef - whats your take on this?
> >
> > I would say, go take it.
>
> I second that.
I've applied this patch, thanks everyone.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-05-08 14:04 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-02 19:51 [iptables PATCH 2/2 RFC] Remove Libc5 support code Felix Janda
2015-05-04 10:48 ` Florian Westphal
2015-05-04 10:55 ` Pablo Neira Ayuso
2015-05-04 11:34 ` Jozsef Kadlecsik
2015-05-08 14:04 ` Florian Westphal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).