<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>41291</bug_id>
          
          <creation_ts>2021-11-04 17:19:20 +0300</creation_ts>
          <short_desc>distcc: не может подключиться к серверу по IPv6</short_desc>
          <delta_ts>2021-11-04 17:53:47 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>distcc</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Sheplyakov">asheplyakov</reporter>
          <assigned_to name="Vitaly Lipatov">lav</assigned_to>
          <cc>grenka</cc>
    
    <cc>lav</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>204531</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Sheplyakov">asheplyakov</who>
    <bug_when>2021-11-04 17:19:20 +0300</bug_when>
    <thetext>$ cat ~/.distcc/hosts
--randomize
[fe80::216:3eff:feXX:YYZZ%enp1s0]/20
[fe80::216:3eff:feXX:YYZZ%enp1s0]/20
[fe80::216:3eff:feXX:YYZZ%enp1s0]/20
--localslots_cpp=60

$ cat &gt; hello.c &lt;&lt;-EOF
#include &lt;stdio.h&gt;
int main(int argc, char **argv) {
  printf(&quot;Hello, world!\n&quot;);
  return 0;
}
EOF

$ distcc gcc -c hello.c
distcc[90392] (dcc_connect_by_name) ERROR: failed to look up host &quot;fe80::216:3eff:fe66:f878%enp1s0&quot;: Unknown host
distcc[90392] (dcc_connect_by_name) ERROR: failed to look up host &quot;fe80::216:3eff:fe9b:ed4a%enp1s0&quot;: Unknown host
distcc[90392] (dcc_connect_by_name) ERROR: failed to look up host &quot;fe80::216:3eff:fea6:5c5d%enp1s0&quot;: Unknown host
distcc[90392] Warning: failed to distribute hello.c to [fe80::216:3eff:fea6:5c5d%enp1s0]/20, running locally instead

$ rm -f ~/.distcc/lock/backoff_tcp_*

$ env DISTCC_VERBOSE=1 distcc gcc -c hello.c

distcc[90365] (dcc_trace_version) distcc 3.4 x86_64-alt-linux-gnu; built Aug 26 2021 06:59:59
distcc[90365] (dcc_recursion_safeguard) safeguard level=0
distcc[90365] (main) compiler name is &quot;distcc&quot;
distcc[90365] (dcc_scan_args) scanning arguments: gcc -c hello.c
distcc[90365] (dcc_scan_args) found input file &quot;hello.c&quot;
distcc[90365] (dcc_scan_args) no visible output file, going to add &quot;-o hello.o&quot; at end
distcc[90365] compile from hello.c to hello.o
distcc[90365] (dcc_gcc_rewrite_fqn) Re-writing call to &apos;gcc&apos; to &apos;x86_64-alt-linux-gcc&apos; to support cross-compilation.
distcc[90365] (dcc_parse_hosts_file) load hosts from /home/asheplyakov/.distcc/hosts
distcc[90365] (dcc_parse_hosts) found tcp token &quot;[fe80::216:3eff:fe66:f878%enp1s0]/20&quot;
distcc[90365] (dcc_parse_hosts) found tcp token &quot;[fe80::216:3eff:fea6:5c5d%enp1s0]/20&quot;
distcc[90365] (dcc_parse_hosts) found tcp token &quot;[fe80::216:3eff:fe9b:ed4a%enp1s0]/20&quot;
distcc[90365] (dcc_lock_host) got cpu lock on [fe80::216:3eff:fe9b:ed4a%enp1s0]/20 slot 0 as fd3
distcc[90365] (dcc_lock_host) got cpu lock on localhost slot 0 as fd4
distcc[90365] (dcc_note_state) note state 3, file &quot;(NULL)&quot;, host &quot;localhost&quot;
distcc[90365] (dcc_strip_dasho) result: x86_64-alt-linux-gcc -c hello.c
distcc[90365] (dcc_spawn_child) forking to execute: x86_64-alt-linux-gcc -E hello.c
distcc[90365] (dcc_spawn_child) child started as pid90366
distcc[90365] (dcc_strip_local_args) result: x86_64-alt-linux-gcc -c hello.c -o hello.o
distcc[90365] exec on [fe80::216:3eff:fe9b:ed4a%enp1s0]/20: x86_64-alt-linux-gcc -c hello.c -o hello.o
distcc[90365] (dcc_note_state) note state 2, file &quot;hello.c&quot;, host &quot;fe80::216:3eff:fe9b:ed4a%enp1s0&quot;
distcc[90366] (dcc_new_pgrp) entered process group
distcc[90366] (dcc_increment_safeguard) setting safeguard: _DISTCC_SAFEGUARD=1
distcc[90365] (dcc_connect_by_name) ERROR: failed to look up host &quot;fe80::216:3eff:fe9b:ed4a%enp1s0&quot;: Unknown host
distcc[90365] (dcc_unlock) release lock fd4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>204532</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Sheplyakov">asheplyakov</who>
    <bug_when>2021-11-04 17:48:41 +0300</bug_when>
    <thetext>#288842 BUILDING #2 [locked] sisyphus distcc.git=3.4-alt7</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>204533</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2021-11-04 17:53:47 +0300</bug_when>
    <thetext>distcc-3.4-alt7 -&gt; sisyphus:

 Thu Nov 04 2021 Alexey Sheplyakov &lt;asheplyakov@altlinux&gt; 3.4-alt7
 - Use getaddrinfo to resolve host names (Closes: #41291)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>