UPWORK/ODESK guru: Tips and Tricks for clients

skype: upwork.link , email: info@upwork.link

Tmux compilation – EVBUFFER_EOL_LF undeclared

without comments

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:

1.

rpm -ev --nodeps libevent libevent-devel libevent-headers ...
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar xzvf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure && make && make install && ldconfig

2.

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

if you got

# tmux
tmux: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory

You need to make:

ld.so.conf.d]# echo '/usr/local/lib' > usr.local.lib.conf
ld.so.conf.d]# 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.

Written by spectre

May 14th, 2014 at 6:05 pm

Posted in Tips and Tricks

Leave a Reply

*