#19066: netifd fails to build with musl
---------------------------+----------------------------------
  Reporter:  daniel.petre  |      Owner:  developers
      Type:  defect        |     Status:  new
  Priority:  high          |  Milestone:  Chaos Calmer (trunk)
 Component:  base system   |    Version:  Trunk
Resolution:                |   Keywords:  netifd,musl
---------------------------+----------------------------------

Comment (by anonymous):

 I worked around this issue by adding {{{#define __GLIBC__ 0}}} in
 staging_dir/toolchain.*/include/features.h right before the last
 {{{#endif}}}

 However this is not a proper fix and I fear it may have unwanted side
 effects (some code has glibc specific code paths).

 BTW the issue is a known FAQ for musl libc: http://wiki.musl-
 
libc.org/wiki/FAQ#Q:_why_am_i_getting_.22error:_redefinition_of_struct_ethhdr.2Ftcphdr.2Fetc.22_.3F

 and the best solution is to provide sanitized kernel headers instead of
 relying on the kernel source.

 Now that I have built the image successfully, I only need to test if it
 really works on the bare hardware. But I don't feel brave enough to do it
 now... maybe later... :-)

--
Ticket URL: <https://dev.openwrt.org/ticket/19066#comment:5>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to