Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Urban <urban@unix-beratung.de>
To: buildroot@busybox.net
Subject: [Buildroot] ipsec-tools bzero/memmove/etc 'patch' for config.h seems to be wrong
Date: Fri, 14 May 2010 13:57:21 +0200	[thread overview]
Message-ID: <4BED3AA1.3060809@unix-beratung.de> (raw)

Hi,

my buildroot make failed in ipsec-tools with following error messages:

-snip-
libtool: compile:
/data/home/urban/Build/Buildroot/current/buildroot/output/staging/usr/bin/i586-unknown-linux-uclibc-gcc
-Os -pipe -Os -mtune=i586 -march=i586 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64
-I/data/home/urban/Build/Buildroot/current/buildroot/output/staging/usr/include
-I/data/home/urban/Build/Buildroot/current/buildroot/output/staging/include
--sysroot=/data/home/urban/Build/Buildroot/current/buildroot/output/staging/
-isysroot /data/home/urban/Build/Buildroot/current/buildroot/output/staging
-DHAVE_CONFIG_H -I. -I../.. -D_GNU_SOURCE -include
./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc
-I./../../src/racoon/missing -include ../../src/include-glibc/glibc-bugs.h
-I../../src/include-glibc -I../../src/include-glibc -g -O2 -Wall -Werror
-Wno-unused -MT ipsec_get_policylen.lo -MD -MP -MF .deps/ipsec_get_policylen.Tpo
-c ipsec_get_policylen.c -o ipsec_get_policylen.o
In file included from ipsec_dump_policy.c:49:
/data/home/urban/Build/Buildroot/current/buildroot/output/staging/usr/include/string.h:306:
error: conflicting types for ?memmove?
/data/home/urban/Build/Buildroot/current/buildroot/output/staging/usr/include/string.h:310:
error: expected declaration specifiers or ?...? before ?(? token
/data/home/urban/Build/Buildroot/current/buildroot/output/staging/usr/include/string.h:310:
error: expected declaration specifiers or ?...? before numeric constant
/data/home/urban/Build/Buildroot/current/buildroot/output/staging/usr/include/string.h:310:
error: expected declaration specifiers or ?...? before ?(? token
/data/home/urban/Build/Buildroot/current/buildroot/output/staging/usr/include/string.h:310:
error: conflicting types for ?memset?
-snip-

after commenting out (in config.h) the bzero/memmove cpp definitions added in
ipsec-tools.mk:

        # simpler than patching that cruft..
        (echo '#undef bzero'; \
         echo '#define bzero(a, b) memset((a), 0, (b))'; \
         echo '#undef bcopy'; \
         echo '#define bcopy(src, dest, len) memmove(dest, src, len)'; \
         echo '#undef index'; \
         echo '#define index(a, b) strchr(a, b)'; \
        ) >> $(IPSEC_TOOLS_DIR)/config.h


the build continued without errors.  I did *not* remove
output/build/ipsec-tools-0.7.2 and restart.

are these 'fixed' perhaps no longer needed for ipsec-tools-0.7.2?

I 'git cloned' buildroot yesterday.

Rob Urban

                 reply	other threads:[~2010-05-14 11:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4BED3AA1.3060809@unix-beratung.de \
    --to=urban@unix-beratung.de \
    --cc=buildroot@busybox.net \
    /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