Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 674646

Summary: net-misc/iputils-20180629 USE=-ipv6 - ping prefers IPv6
Product: Gentoo Linux Reporter: Vladimir Berezhnoy <non7top>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Vladimir Berezhnoy 2019-01-06 03:49:14 UTC
(first entry has no AAAA record, second has it)
s ~ # ping xxxxx
ping: xxxxx: No address associated with hostname
[2] s ~ # ping ya.ru
connect: Network is unreachable


Package built with following flags 
arping idn ssl


strace ping shows this

socket(AF_INET6, SOCK_DGRAM, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET6, sin6_port=htons(1025), inet_pton(AF_INET6, "2a02:6b8::2:242", &sin6_addr), sin6_flowinfo=htonl(0), sin6_scope_id=0}, 28) = -1 ENETUNREACH (Network is unreachable)


It shouldn't be doing that since it's ping not ping6 and there is no ipv6 flag and I have no ipv6 anywhere


During compile I see this

i686-pc-linux-gnu-gcc -O2 -march=native -pipe -fno-strict-aliasing -Wstrict-prototypes -Wall -D_GNU_SOURCE  -c ping6_common.c  -DUSE_IDN   -o ping6_common.o
i686-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed  -O2 -march=native -pipe -fno-strict-aliasing -Wstrict-prototypes -Wall ping.o ping_common.o ping6_common.o  -lidn2  -lresolv -lm   -o ping


ping6 utility is not built

Reproducible: Always
Comment 1 Vladimir Berezhnoy 2019-01-06 03:50:38 UTC
net-misc/iputils-20180629
Comment 2 Vladimir Berezhnoy 2019-04-29 12:46:53 UTC
I just tried latest version s20190324 (manually compiled) and it doesn't have this issue.

It has this line in configure which probably makes difference
Checking if "struct icmp6_nodeinfo" compiles: NO

So workaround for me was to install latest ipuitils to /usr/local
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2020-08-23 02:21:57 UTC
Closing as obsolete as affected version is gone now.