Tmux compilation – EVBUFFER_EOL_LF undeclared

if you got:

control.c: In function ‘control_callback’:
control.c:64: warning: implicit declaration of function ‘evbuffer_readln’
control.c:64: error: ‘EVBUFFER_EOL_LF’ undeclared (first use in this function)
control.c:64: error: (Each undeclared identifier is reported only once
control.c:64: error: for each function it appears in.)
control.c:64: warning: assignment makes pointer from integer without a cast
make: *** [control.o] Error 1

You need to make:


rpm -ev --nodeps libevent libevent-devel libevent-headers ...
tar xzvf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure && make && make install && ldconfig


tmux-1.9a]# make
tmux-1.9a]# make install

if you got

# tmux
tmux: error while loading shared libraries: cannot open shared object file: No such file or directory

You need to make:]# echo '/usr/local/lib' > usr.local.lib.conf]# ldconfig 

if you got:

tty.o: In function `tty_cmd_setselection':
tty.c:(.text+0x500): undefined reference to `__b64_ntop'
collect2: ld returned 1 exit status
make: *** [tmux] Error 1

reason is:

>      undefined reference to `__b64_ntop'
just hit the same, apparently there's a -lresolv missing in makefile LIBS...

345 LIBS = -lutil -lcurses -levent -lrt -lresolv

That’s all.

Leave a Reply

Your email address will not be published. Required fields are marked *


Scroll to top