From: Anatolij Gustschin <agust@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] tools/kwbimage.c: fix build on darwin
Date: Thu, 30 Oct 2014 23:11:03 +0100 [thread overview]
Message-ID: <20141030231103.2934b3e2@crub> (raw)
In-Reply-To: <1414186751-3061-3-git-send-email-andreas.devel@googlemail.com>
On Fri, 24 Oct 2014 23:39:11 +0200
andreas.devel at googlemail.com wrote:
> From: Andreas Bie?mann <andreas.devel@googlemail.com>
>
> kwbimage uses get_current_dir_name(3) which is a gnu extension and not
> available on darwin host. Fix this by converting to portable getcwd(3)
> function.
>
> This patch fixes the following error:
> ---8<---
> HOSTCC tools/kwbimage.o
> tools/kwbimage.c:399:16: warning: implicit declaration of function 'get_current_dir_name' is invalid in C99 [-Wimplicit-function-declaration]
> char *cwd = get_current_dir_name();
> ^
> tools/kwbimage.c:399:10: warning: incompatible integer to pointer conversion initializing 'char *' with an expression of type 'int' [-Wint-conversion]
> char *cwd = get_current_dir_name();
> ^ ~~~~~~~~~~~~~~~~~~~~~~
> 2 warnings generated.
> ...
> Undefined symbols for architecture x86_64:
> "_get_current_dir_name", referenced from:
> _image_headersz_v1 in kwbimage.o
> ld: symbol(s) not found for architecture x86_64
> --->8---
>
> Signed-off-by: Andreas Bie?mann <andreas.devel@googlemail.com>
> Cc: Stefan Roese <sr@denx.de>
>
> ---
>
> tools/kwbimage.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
Applied to u-boot-staging. Thanks!
Anatolij
next prev parent reply other threads:[~2014-10-30 22:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-24 21:39 [U-Boot] [PATCH 0/2] Fix u-boot compile on darwin host andreas.devel at googlemail.com
2014-10-24 21:39 ` [U-Boot] [PATCH 1/2] tools/socfpgaimage.c: fix build on darwin andreas.devel at googlemail.com
2014-10-24 21:40 ` Marek Vasut
2014-10-25 9:25 ` Pavel Machek
2014-10-25 22:51 ` Marek Vasut
2014-10-24 21:39 ` [U-Boot] [PATCH 2/2] tools/kwbimage.c: " andreas.devel at googlemail.com
2014-10-27 7:14 ` Stefan Roese
2014-10-30 22:11 ` Anatolij Gustschin [this message]
2014-10-30 23:27 ` Anatolij Gustschin
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=20141030231103.2934b3e2@crub \
--to=agust@denx.de \
--cc=u-boot@lists.denx.de \
/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