https://bugs.linaro.org/show_bug.cgi?id=1330

            Bug ID: 1330
           Summary: commit 71fcc8a _DEFAULT_SOURCE breaks odp_ipsec
                    example
           Product: OpenDataPlane
           Version: 1.0
          Hardware: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: major
          Priority: ---
         Component: Examples
          Assignee: [email protected]
          Reporter: [email protected]

Overview: More detailed restatement of summary.

./bootstrap
./configure --enable-test-vald --with-cunit-path=<path>
make

Actual Results: What happened after performing the above steps.
Making all in ipsec
make[2]: Entering directory `/home/ciprian/test/odp/example/ipsec'
  CC       odp_ipsec-odp_ipsec.o
odp_ipsec.c: In function ‘query_mac_address’:
odp_ipsec.c:236:15: error: storage size of ‘ifr’ isn’t known
  struct ifreq ifr;
               ^
odp_ipsec.c:236:15: error: unused variable ‘ifr’ [-Werror=unused-variable]


Expected Results: What should have happened, were the bug not present.


Additional Information:

The problem seems to be with __USE_MISC not being defined in net/if.h when
_BSD_SOURCE is used.

Replacing #include <net/if.h> with #include <linux/if.h> solves the problem

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to