Bug 203720 - sysutils/tmux: does not start on IPv6-only system
Summary: sysutils/tmux: does not start on IPv6-only system
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Mathieu Arnold
URL: https://github.com/tmux/tmux/issues/139
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-12 11:16 UTC by Niklaas Baudet von Gersdorff
Modified: 2015-10-14 13:55 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (mat)


Attachments
truss -o truss-tmux tmux (14.24 KB, text/plain)
2015-10-12 11:16 UTC, Niklaas Baudet von Gersdorff
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Niklaas Baudet von Gersdorff 2015-10-12 11:16:19 UTC
Created attachment 161940 [details]
truss -o truss-tmux tmux

In reference to http://docs.freebsd.org/cgi/getmsg.cgi?fetch=203867+0+archive/2015/freebsd-questions/20151011.freebsd-questions and the follow up answers it seems that it is not possible to start tmux on a IPv6-only system.

I attached `truss tmux`. The import line is

> socket(PF_INET,SOCK_DGRAM,0)			 ERR#43 'Protocol not supported'

After adding an IPv4 to the jail where I tried to start tmux, the problem was resolved. Nevertheless, imho, it should be possible to start tmux on an IPv6-only system.
Comment 1 Mathieu Arnold freebsd_committer 2015-10-12 12:16:55 UTC
Is this a FreeBSD specific problem ? If not, please open a problem report upstream.
Comment 2 Mathieu Arnold freebsd_committer 2015-10-12 12:42:24 UTC
Openned an issue upstream.
Comment 3 Niklaas Baudet von Gersdorff 2015-10-12 13:20:40 UTC
(In reply to Mathieu Arnold from comment #2)

Thank you for opening a report upstream.

I was not sure whether it's FreeBSD specific. In the mailing list, someone said  the fact that I built the package on a machine that has both IPv4 and IPv6 might have caused the problem.
Comment 4 Mathieu Arnold freebsd_committer 2015-10-12 14:02:43 UTC
(In reply to Niklaas Baudet von Gersdorff from comment #3)
> I was not sure whether it's FreeBSD specific. In the mailing list, someone
> said  the fact that I built the package on a machine that has both IPv4 and
> IPv6 might have caused the problem.

No, it builds fine without any ip at all.
I tried with jails that have neither v4 nor v6, and if there is no v4, it fails to run. (v6 being there or not does not matter at all.)
Comment 5 commit-hook freebsd_committer 2015-10-14 13:55:55 UTC
A commit references this bug:

Author: mat
Date: Wed Oct 14 13:55:07 UTC 2015
New revision: 399264
URL: https://svnweb.freebsd.org/changeset/ports/399264

Log:
  Fix tmux not starting on an IPv6 only system.

  Note that tmux will still not work if you have neither v4 nor v6.

  PR:		203720
  Obtained from:	https://github.com/tmux/tmux/issues/139
  Sponsored by:	Absolight

Changes:
  head/sysutils/tmux/Makefile
  head/sysutils/tmux/files/patch-compat_imsg.c