{"action":"created","issue":{"url":"https://api.github.com/repos/tmux/tmux/issues/395","repository_url":"https://api.github.com/repos/tmux/tmux","labels_url":"https://api.github.com/repos/tmux/tmux/issues/395/labels{/name}","comments_url":"https://api.github.com/repos/tmux/tmux/issues/395/comments","events_url":"https://api.github.com/repos/tmux/tmux/issues/395/events","html_url":"https://github.com/tmux/tmux/issues/395","id":153093433,"number":395,"title":"Can't compile tmux 2.2","user":{"login":"xapple","id":649288,"avatar_url":"https://avatars.githubusercontent.com/u/649288?v=3","gravatar_id":"","url":"https://api.github.com/users/xapple","html_url":"https://github.com/xapple","followers_url":"https://api.github.com/users/xapple/followers","following_url":"https://api.github.com/users/xapple/following{/other_user}","gists_url":"https://api.github.com/users/xapple/gists{/gist_id}","starred_url":"https://api.github.com/users/xapple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xapple/subscriptions","organizations_url":"https://api.github.com/users/xapple/orgs","repos_url":"https://api.github.com/users/xapple/repos","events_url":"https://api.github.com/users/xapple/events{/privacy}","received_events_url":"https://api.github.com/users/xapple/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2016-05-04T19:20:19Z","updated_at":"2016-05-05T14:25:37Z","closed_at":"2016-05-05T14:25:23Z","body":"I tired to get the newest version, and executed the following script for installation:\r\n\r\n    #!/bin/bash\r\n    # Exit on error #\r\n    set -e\r\n\r\n    # Variable version #\r\n    TMUX_VERSION=2.2\r\n\r\n    # Create our directories #\r\n    mkdir -p ~/test\r\n    mkdir -p ~/programs/tmux\r\n    mkdir -p ~/programs/libevent\r\n\r\n    # It depends on libevent #\r\n    cd ~/test\r\n    wget https://github.com/downloads/libevent/libevent/libevent-2.0.19-stable.tar.gz\r\n    tar xvzf libevent-2.0.19-stable.tar.gz\r\n    cd libevent-*/\r\n    ./configure --prefix=$HOME/programs/libevent --disable-shared\r\n    make\r\n    make install\r\n\r\n    # Tmux #\r\n    cd ~/test\r\n    wget -O tmux-${TMUX_VERSION}.tar.gz https://github.com/tmux/tmux/releases/download/${TMUX_VERSION}/tmux-${TMUX_VERSION}.tar.gz\r\n    tar xvzf tmux-${TMUX_VERSION}.tar.gz\r\n    cd tmux-${TMUX_VERSION}\r\n\r\n    # Build #\r\n    ./configure --prefix=$HOME/programs/tmux CFLAGS=\"-I$HOME/programs/libevent/include\" LDFLAGS=\"-static -L$HOME/programs/libevent/lib\"\r\n    CPPFLAGS=\"-I$HOME/programs/libevent/include\" LDFLAGS=\"-static -L$HOME/programs/libevent/include\" make\r\n\r\nBut this resulted in the following error message:\r\n\r\n\r\n    In file included from /usr/include/string.h:637:0,\r\n                     from arguments.c:22:\r\n    compat.h:203:8: error: expected identifier or ‘(’ before ‘__extension__’\r\n     char  *strsep(char **, const char *);\r\n            ^\r\n    compat.h:203:8: error: expected identifier or ‘(’ before ‘)’ token\r\n     char  *strsep(char **, const char *);\r\n            ^\r\n    make: *** [arguments.o] Error 1\r\n\r\nIf anyone sees this issue and could point me in the direction of a precompiled static binary that I could just use, that would be very nice.\r\n"},"comment":{"url":"https://api.github.com/repos/tmux/tmux/issues/comments/217168314","html_url":"https://github.com/tmux/tmux/issues/395#issuecomment-217168314","issue_url":"https://api.github.com/repos/tmux/tmux/issues/395","id":217168314,"user":{"login":"nicm","id":304243,"avatar_url":"https://avatars.githubusercontent.com/u/304243?v=3","gravatar_id":"","url":"https://api.github.com/users/nicm","html_url":"https://github.com/nicm","followers_url":"https://api.github.com/users/nicm/followers","following_url":"https://api.github.com/users/nicm/following{/other_user}","gists_url":"https://api.github.com/users/nicm/gists{/gist_id}","starred_url":"https://api.github.com/users/nicm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicm/subscriptions","organizations_url":"https://api.github.com/users/nicm/orgs","repos_url":"https://api.github.com/users/nicm/repos","events_url":"https://api.github.com/users/nicm/events{/privacy}","received_events_url":"https://api.github.com/users/nicm/received_events","type":"User","site_admin":false},"created_at":"2016-05-05T14:25:37Z","updated_at":"2016-05-05T14:25:37Z","body":"Well, the PKG_CONFIG thing was an error in the configure.ac file for\nstatic builds. But you are not the standard user.\n\n\n\nOn Thu, May 05, 2016 at 07:23:28AM -0700, Lucas Sinclair wrote:\n>    Hah !\n>    It worked !\n>    Seems like I have a working tmux 2.2 binary ************\n> \n>    But yeah, my usual word of caution about \"if the standard user of your\n>    product has to start modifying the configure file, you might want to\n>    reconsider the distribution method\".\n> \n>    Thanks for the help !\n> \n>    --\n>    You are receiving this because you commented.\n>    Reply to this email directly or [1]view it on GitHub\n> \n>    Reverse link: [2]unknown\n> \n> References\n> \n>    Visible links\n>    1. https://github.com/tmux/tmux/issues/395#issuecomment-217167748\n>    2. https://github.com/tmux/tmux/issues/395#issuecomment-217167748\n"}}