Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 617828 - sys-apps/busybox: undefined reference to `__mempcpy_chk'
Summary: sys-apps/busybox: undefined reference to `__mempcpy_chk'
Status: RESOLVED DUPLICATE of bug 617200
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-6
  Show dependency tree
 
Reported: 2017-05-08 09:55 UTC by Thomas Deutschmann
Modified: 2017-05-08 21:43 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,494.78 KB, text/plain)
2017-05-08 09:55 UTC, Thomas Deutschmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Deutschmann gentoo-dev Security 2017-05-08 09:55:05 UTC
Created attachment 471948 [details]
build.log

After upgrading a system to gcc-6.3 I rebuild world and only =sys-apps/busybox-1.26.2-r1 is failing:

> Static linking against glibc, can't use --gc-sections
> Trying libraries: crypt m
> Failed: -Wl,--start-group  -lcrypt -lm  -Wl,--end-group
> Output of:
> x86_64-pc-linux-gnu-gcc -O2 -pipe -march=silvermont -mtune=silvermont -mprfchw -mrdrnd -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function -Wunused-value -Wmissing-prototypes -Wmissing-declarations -Wno-format-security -Wdeclaration-after-statement -Wold-style-definition -fno-builtin-strlen -finline-limit=0 -ffunction-sections -fdata-sections -fno-guess-branch-probability -funsigned-char -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin-printf -static -Wl,-O1 -Wl,--as-needed -o busybox_unstripped -Wl,--sort-common -Wl,--sort-section,alignment -Wl,--start-group applets/built-in.o archival/lib.a archival/libarchive/lib.a console-tools/lib.a coreutils/lib.a coreutils/libcoreutils/lib.a debianutils/lib.a e2fsprogs/lib.a editors/lib.a findutils/lib.a init/lib.a libbb/lib.a libpwdgrp/lib.a loginutils/lib.a mailutils/lib.a miscutils/lib.a modutils/lib.a networking/lib.a networking/libiproute/lib.a networking/udhcp/lib.a printutils/lib.a procps/lib.a runit/lib.a selinux/lib.a shell/lib.a sysklogd/lib.a util-linux/lib.a util-linux/volume_id/lib.a archival/built-in.o archival/libarchive/built-in.o console-tools/built-in.o coreutils/built-in.o coreutils/libcoreutils/built-in.o debianutils/built-in.o e2fsprogs/built-in.o editors/built-in.o findutils/built-in.o init/built-in.o libbb/built-in.o libpwdgrp/built-in.o loginutils/built-in.o mailutils/built-in.o miscutils/built-in.o modutils/built-in.o networking/built-in.o networking/libiproute/built-in.o networking/udhcp/built-in.o printutils/built-in.o procps/built-in.o runit/built-in.o selinux/built-in.o shell/built-in.o sysklogd/built-in.o util-linux/built-in.o util-linux/volume_id/built-in.o -Wl,--end-group -Wl,--start-group -lcrypt -lm -Wl,--end-group
> ==========
> networking/lib.a(nslookup.o): In function `print_host':
> nslookup.c:(.text.print_host+0x51): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
> debianutils/lib.a(mktemp.o): In function `mktemp_main':
> mktemp.c:(.text.mktemp_main+0xa3): warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'
> libbb/lib.a(inet_common.o): In function `INET_resolve':
> inet_common.c:(.text.INET_resolve+0xe8): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
> libbb/lib.a(inet_common.o): In function `INET_rresolve':
> inet_common.c:(.text.INET_rresolve+0x136): warning: Using 'getnetbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
> libbb/lib.a(inet_common.o): In function `INET_resolve':
> inet_common.c:(.text.INET_resolve+0x103): warning: Using 'getnetbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
> libbb/lib.a(xconnect.o): In function `bb_lookup_port':
> xconnect.c:(.text.bb_lookup_port+0x3c): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
> networking/lib.a(netstat.o): In function `ip_port_str':
> netstat.c:(.text.ip_port_str+0x76): warning: Using 'getservbyport' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
> networking/lib.a(arping.o): In function `catcher':
> arping.c:(.text.catcher+0xbb): undefined reference to `__mempcpy_chk'
> arping.c:(.text.catcher+0x1a4): undefined reference to `__mempcpy_chk'
> collect2: error: ld returned 1 exit status
> Note: if build needs additional libraries, put them in CONFIG_EXTRA_LDLIBS.
> Example: CONFIG_EXTRA_LDLIBS="pthread dl tirpc audit pam"
> make: *** [Makefile:717: busybox_unstripped] Error 1
Comment 2 Thomas Deutschmann gentoo-dev Security 2017-05-08 21:43:07 UTC

*** This bug has been marked as a duplicate of bug 617200 ***