simple-obfs icon indicating copy to clipboard operation
simple-obfs copied to clipboard

Compile error cant find -lev

Open rampageX opened this issue 8 years ago • 7 comments

git version:

checking for ev_loop_destroy in -lev... no
configure: error: Couldn't find libev. Try installing libev-dev[el].

I compile libev from source, and i am sure it is installed:

pkg-config --list-all
......
libev                     libev - High-performance event loop/event model

rampageX avatar Jan 19 '17 04:01 rampageX

Try pkg-config --libs ev and post the output here.

madeye avatar Jan 19 '17 04:01 madeye

[tomatoware][Buffalo:/tmp/mnt/sda2/compile/simple-obfs]$ pkg-config --libs ev
Package ev was not found in the pkg-config search path.
Perhaps you should add the directory containing `ev.pc'
to the PKG_CONFIG_PATH environment variable
No package 'ev' found

and:

[tomatoware][Buffalo:/tmp/mnt/sda2/compile/simple-obfs]$ pkg-config --libs libev
-L/mmc/lib -lev

BTW: new git version of ss-libev compile fine on the same system.

rampageX avatar Jan 19 '17 05:01 rampageX

Please try 23b705b

madeye avatar Jan 19 '17 06:01 madeye

./configure --disable-ssp --disable-documentation --disable-assert

is fine, but i want try static compile:

LDFLAGS="-Wl,-static -static -static-libgcc -s" ./configure --disable-ssp --disable-documentation --disable-assert

error:

......
checking for dns_dnlen in -ludns... yes
checking for ev_loop_destroy in -lev... no
configure: error: Couldn't find libev. Try installing libev-dev[el].

rampageX avatar Jan 19 '17 06:01 rampageX

Do you have libev.a in your /mmc/lib?

madeye avatar Jan 19 '17 07:01 madeye

yes:

[tomatoware][Buffalo:/tmp/mnt/sda2/compile/simple-obfs]$ ls /mmc/lib/libev.a
-rw-r--r-- 1 root root 204606 Jan 19 11:56 /mmc/lib/libev.a

like i said, ss-libev compile fine on same system, so i dont think i missing any file.

rampageX avatar Jan 19 '17 07:01 rampageX

I met this same case when i cross-compiling on a debian system, and i found a "undefined reference to `floor'" error in the config.log file. So, after i recompiled with the flag -lm, it got solved. I hope it helps.

kdrx avatar Jul 27 '17 01:07 kdrx