Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Sep 2014 06:39:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 193827] New: ucspi-tcp doesn't build with IPV6 option off
Message-ID:  <bug-193827-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193827

            Bug ID: 193827
           Summary: ucspi-tcp doesn't build with IPV6 option off
           Product: Ports Tree
           Version: Latest
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: kyuupichan@gmail.com

My system:

DragonFly zotac.akihabara.co.uk 3.9-DEVELOPMENT DragonFly
v3.9.0.597.g07f336-DEVELOPMENT #2: Fri Sep 19 23:52:56 JST 2014    
root@zotac.akihabara.co.uk:/usr/obj/usr/src/sys/X86_64_GENERIC  x86_64

I noticed tcpclient didn't work resolving hostnames; I think this is because
the default port uses the IPV6 option.  I'm not sure whether this is supposed
to work.  For example with the default port:

$ tcpclient dnsseed.bluematt.me 8333 sh -c 'echo $TCPREMOTEIP'
tcpclient: fatal: no IP address for dnsseed.bluematt.me

I tried deselecting the IPV6 option and rebuilding.  However changing the
option means patches are not applied, in particular error.h doesn't have the
errno fix.  This causes the build to fail (on my system) as so:

/usr/libexec/binutils224/elf/ld.bfd: errno: TLS definition in /usr/lib/libc.so
section .tbss mismatches non-TLS reference in unix.a(buffer_get.o)
/usr/lib/libc.so: error adding symbols: Bad value
*** [addcr] Error code 1

This is easily fixed with the following change to the top of error.h:

   #include <errno.h>

instead of

   extern int errno;

With the above one-line change the package builds and installs, and works:

$ tcpclient dnsseed.bluematt.me 8333 sh -c 'echo $TCPREMOTEIP'
120.69.148.210

Please update the port so that the error.h issue is patched regardless of
option selection.  Thanks.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-193827-13>