public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Simon Wunderlich <sw@simonwunderlich.de>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: Re: [B.A.T.M.A.N.] [PATCH maint] batman-adv: Only use compat.h for kernel builds
Date: Mon, 26 Feb 2018 17:35:48 +0100	[thread overview]
Message-ID: <2208285.pQLjLXacrd@prime> (raw)
In-Reply-To: <20180226125132.30767-1-sven@narfation.org>

[-- Attachment #1: Type: text/plain, Size: 1551 bytes --]

On Monday, February 26, 2018 1:51:32 PM CET Sven Eckelmann wrote:
> The compat.h will be included by default via the -include gcc parameter.
> This is done by appending the incude information to NOSTDINC_FLAGS in the
> Makefile. But Debian decided [1] that this NOSTDINC_FLAGS must also be used
> when not compiling kernel sources. This for example happens when the
> gcc-version.sh script is executed. This results in error messages like
> 
>   In file included from <command-line>:0:0:
>   /usr/src//batman-adv/build/../compat.h:25:52: fatal error:
> linux/version.h: No such file or directory #include <linux/version.h> /*
> LINUX_VERSION_CODE */
>                                                       ^
>   compilation terminated.
>   In file included from <command-line>:0:0:
>   /usr/src//batman-adv/build/../compat.h:25:52: fatal error:
> linux/version.h: No such file or directory #include <linux/version.h> /*
> LINUX_VERSION_CODE */
>                                                       ^
>   compilation terminated.
>   /usr/src/linux-headers-4.14.0-0.bpo.3-common/scripts/gcc-version.sh: line
> 32: printf: #: invalid number
> /usr/src/linux-headers-4.14.0-0.bpo.3-common/scripts/gcc-version.sh: line
> 32: printf: #: invalid number /bin/sh: 1: [: 0001: unexpected operator
> 
> This can be avoided by disabling the compat.h whenever the preprocessor
> define __KERNEL__ is not set.
> 
> [1] https://patchwork.kernel.org/patch/5238591/
> 
> Signed-off-by: Sven Eckelmann <sven@narfation.org>

Applied in 934b3884.

Thank you!
     Simon

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2018-02-26 16:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-26 12:51 [B.A.T.M.A.N.] [PATCH maint] batman-adv: Only use compat.h for kernel builds Sven Eckelmann
2018-02-26 16:35 ` Simon Wunderlich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2208285.pQLjLXacrd@prime \
    --to=sw@simonwunderlich.de \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox