<net/if.h> and <linux/if.h> can't be included from the same file without causing redeclaration of enums and structs. The case where <net/if.h> is included first has already been fixed on the Linux side in commit 4a91cb61bb995. The reverse case has to be fixed on the GNU libc side. Patch will follow on the mailing list.
I have fixes and test cases for this.
Hi Carlos, Aurelien. We are being bitten by this. I see there was an attempt by Aurelien to address this in the glibc side: http://patchwork.ozlabs.org/patch/748776/ I couln't find Carlos's patches in libc-alpha nor git though. Any chance these will be made available? Otherwise we will look to fix it. TIA!
(In reply to Jose E. Marchesi from comment #2) > Hi Carlos, Aurelien. > > We are being bitten by this. I see there was an attempt by Aurelien to > address this in the glibc side: http://patchwork.ozlabs.org/patch/748776/ > > I couln't find Carlos's patches in libc-alpha nor git though. Any chance > these will be made available? Otherwise we will look to fix it. I have patches. I'm going to prep them right now and send another WIP to the list and TO: you, and let you move them forward. Give me an hour.
(In reply to Carlos O'Donell from comment #3) > (In reply to Jose E. Marchesi from comment #2) > > Hi Carlos, Aurelien. > > > > We are being bitten by this. I see there was an attempt by Aurelien to > > address this in the glibc side: http://patchwork.ozlabs.org/patch/748776/ > > > > I couln't find Carlos's patches in libc-alpha nor git though. Any chance > > these will be made available? Otherwise we will look to fix it. > > I have patches. I'm going to prep them right now and send another WIP to the > list and TO: you, and let you move them forward. Give me an hour. Posted: https://www.sourceware.org/ml/libc-alpha/2018-04/msg00067.html
--- Comment #3 from Carlos O'Donell <carlos at redhat dot com> --- (In reply to Jose E. Marchesi from comment #2) > Hi Carlos, Aurelien. > > We are being bitten by this. I see there was an attempt by Aurelien to > address this in the glibc side: http://patchwork.ozlabs.org/patch/748776/ > > I couln't find Carlos's patches in libc-alpha nor git though. Any chance > these will be made available? Otherwise we will look to fix it. I have patches. I'm going to prep them right now and send another WIP to the list and TO: you, and let you move them forward. Give me an hour. Saw it, thank you!