Netdev List
 help / color / mirror / Atom feed
* more bpf samples build breakage...
@ 2017-05-01 19:30 David Miller
  2017-05-01 19:44 ` David Miller
  2017-05-01 20:38 ` Daniel Borkmann
  0 siblings, 2 replies; 4+ messages in thread
From: David Miller @ 2017-05-01 19:30 UTC (permalink / raw)
  To: daniel; +Cc: netdev


Inlcuding bpf_util.h into test_pkt_access.c et al. broke the build even
more so than it already is on sparc.

The problem is we end up including all the stdio.h bits and eventually
hit things like:

In file included from /usr/include/stdio.h:933:
/usr/include/bits/stdio-ldbl.h:28:20: error: cannot apply asm label to function after its first use
__LDBL_REDIR_DECL (vfprintf)
~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/usr/include/sys/cdefs.h:373:26: note: expanded from macro '__LDBL_REDIR_DECL'
  extern __typeof (name) name __asm (__ASMNAME ("__nldbl_" #name));

So please let's put CLANG compiled helpers into header files
specifically meant to be included by CLANG compiled BPF programs
rather than the host build environment.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-05-01 20:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-01 19:30 more bpf samples build breakage David Miller
2017-05-01 19:44 ` David Miller
2017-05-01 20:38 ` Daniel Borkmann
2017-05-01 20:45   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox