[Boost-bugs] [Boost C++ Libraries] #11828: net/if.h and linux/if.h incompatible for latest boost and centos 6.6

Subject: [Boost-bugs] [Boost C++ Libraries] #11828: net/if.h and linux/if.h incompatible for latest boost and centos 6.6
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-12-04 06:07:54


#11828: net/if.h and linux/if.h incompatible for latest boost and centos 6.6
--------------------------+----------------------------
 Reporter: saima8788@… | Owner: chris_kohlhoff
     Type: Bugs | Status: new
Milestone: Boost 1.59.0 | Component: asio
  Version: Boost 1.59.0 | Severity: Problem
 Keywords: linux/if.h |
--------------------------+----------------------------
 Use the following code to repro:
 #include <linux/if.h>
 #include <net/if.h>
 int main()
 {
 return 0;
 }

 This gives error:
 In file included from test.cpp:2:
 /usr/include/linux/if.h:187: error: field ‘ifru_addr’ has incomplete type
 /usr/include/linux/if.h:188: error: field ‘ifru_dstaddr’ has incomplete
 type
 /usr/include/linux/if.h:189: error: field ‘ifru_broadaddr’ has incomplete
 type
 /usr/include/linux/if.h:190: error: field ‘ifru_netmask’ has incomplete
 type
 /usr/include/linux/if.h:191: error: field ‘ifru_hwaddr’ has incomplete
 type
 In file included from test.cpp:3:
 /usr/include/net/if.h:45: error: expected identifier before numeric
 constant
 /usr/include/net/if.h:45: error: expected ‘}’ before numeric constant
 /usr/include/net/if.h:45: error: expected unqualified-id before numeric
 constant
 /usr/include/net/if.h:82: error: expected declaration before ‘}’ token

 Now, net/if.h is included in many boost headers. We are not able to use
 both linux/if.h and a boost library in our project for that reason.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11828>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC