From: bugzilla at busybox.net <bugzilla@busybox.net>
To: buildroot@busybox.net
Subject: [Buildroot] [Bug 12096] New: tcpreplay: build fails if libdumbnet-dev is installed in the host
Date: Thu, 08 Aug 2019 09:58:36 +0000 [thread overview]
Message-ID: <bug-12096-163@https.bugs.busybox.net/> (raw)
https://bugs.busybox.net/show_bug.cgi?id=12096
Bug ID: 12096
Summary: tcpreplay: build fails if libdumbnet-dev is installed
in the host
Product: buildroot
Version: 2018.11
Hardware: PC
OS: Linux
Status: NEW
Severity: major
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: ggarcia at marvell.com
CC: buildroot at uclibc.org
Target Milestone: ---
When compiling tcpreplay package, the build fails if the user has
libdumbnet-dev installed in the host system.
This has been tested in ubuntu 19.04
A workaround is to install libdnet package in buildroot.
Here is the failing code in the tcpreplay configure file:
for testdir in $trydnetdir /usr/local /opt/local $MACOSX_SDK_PATH/usr /usr
; do
if test -x ${testdir}/bin/dnet-config -a $founddnet = no ; then
LDNETINC="$($testdir/bin/dnet-config --cflags)"
LDNETLIB="$($testdir/bin/dnet-config --libs)"
libdnet_version="$($testdir/bin/dnet-config --version)"
founddnet=$testdir
fi
done
Error Logs:
/home/test/projects/buildroot-output/host/bin/aarch64-marvell-linux-gnu-gcc
-DHAVE_CONFIG_H -I. -I../../src -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -I.. -I../.. -I/usr/include
-D_U_="__attribute__((unused))" -Wall -std=gnu99 -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -Wno-variadic-macros
-Wfatal-errors -Wno-format-contains-nul
-I/home/test/projects/buildroot-output/host/aarch64-buildroot-linux-gnu/sysroot/usr
-c -o fakepoll.o fakepoll.c
aarch64-marvell-linux-gnu-gcc: ERROR: unsafe header/library path used in
cross-compilation: '-I/usr/include'
/home/test/projects/buildroot-output/host/bin/aarch64-marvell-linux-gnu-gcc
-DHAVE_CONFIG_H -I. -I../../src -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -I.. -I../.. -I/usr/include
-D_U_="__attribute__((unused))" -Wall -std=gnu99 -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -Wno-variadic-macros
-Wfatal-errors -Wno-format-contains-nul
-I/home/test/projects/buildroot-output/host/aarch64-buildroot-linux-gnu/sysroot/usr
-c -o xX.o xX.c
aarch64-marvell-linux-gnu-gcc: ERROR: unsafe header/library path used in
cross-compilation: '-I/usr/include'
aarch64-marvell-linux-gnu-gcc: ERROR: unsafe header/library path used in
cross-compilation: '-I/usr/include'
make[6]: *** [Makefile:448: cidr.o] Error 1
make[6]: *** Waiting for unfinished jobs....
make[6]: *** [Makefile:448: err.o] Error 1
make[6]: *** [Makefile:448: list.o] Error 1
aarch64-marvell-linux-gnu-gcc: ERROR: unsafe header/library path used in
cross-compilation: '-I/usr/include'
make[6]: *** [Makefile:448: cache.o] Error 1
aarch64-marvell-linux-gnu-gcc: ERROR: unsafe header/library path used in
cross-compilation: '-I/usr/include'
make[6]: *** [Makefile:448: services.o] Error 1
aarch64-marvell-linux-gnu-gcc: ERROR: unsafe header/library path used in
cross-compilation: '-I/usr/include'
aarch64-marvell-linux-gnu-gcc: ERROR: unsafe header/library path used in
cross-compilation: '-I/usr/include'
make[6]: *** [Makefile:448: get.o] Error 1
make[6]: *** [Makefile:448: fakepcap.o] Error 1
aarch64-marvell-linux-gnu-gcc: ERROR: unsafe header/library path used in
cross-compilation: '-I/usr/include'
make[6]: *** [Makefile:448: fakepcapnav.o] Error 1
aarch64-marvell-linux-gnu-gcc: ERROR: unsafe header/library path used in
cross-compilation: '-I/usr/include'
make[6]: *** [Makefile:448: fakepoll.o] Error 1
aarch64-marvell-linux-gnu-gcc: ERROR: unsafe header/library path used in
cross-compilation: '-I/usr/include'
make[6]: *** [Makefile:448: xX.o] Error 1
make[5]: *** [Makefile:372: all] Error 2
make[4]: *** [Makefile:1147: all-recursive] Error 1
make[3]: *** [Makefile:559: all] Error 2
make[2]: *** [Makefile:437: all-recursive] Error 1
make[1]: *** [package/pkg-generic.mk:232:
/home/test/projects/buildroot-output/build/tcpreplay-4.2.6/.stamp_built] Error
2
make: *** [Makefile:23: _all] Error 2
--
You are receiving this mail because:
You are on the CC list for the bug.
next reply other threads:[~2019-08-08 9:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-08 9:58 bugzilla at busybox.net [this message]
2019-08-08 14:09 ` [Buildroot] [Bug 12096] tcpreplay: build fails if libdumbnet-dev is installed in the host bugzilla at busybox.net
2019-08-13 19:41 ` bugzilla at busybox.net
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=bug-12096-163@https.bugs.busybox.net/ \
--to=bugzilla@busybox.net \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.