Closed nyanshell closed 8 years ago
缺少 libevent2 相关的头文件,我的包是没问题的,不知道编译了多少回,看看 -I 和 -L 指定的参数吧
已经装了libevent2的库,还要怎样弄? ubuntu14.04lts
ls -al /usr/lib |grep libevent lrwxrwxrwx 1 root root 21 9月 16 2011 libevent-1.4.so.2 -> libevent-1.4.so.2.2.0 -rw-r--r-- 1 root root 105048 9月 16 2011 libevent-1.4.so.2.2.0 lrwxrwxrwx 1 root root 21 10月 15 09:40 libevent-2.0.so.5 -> libevent-2.0.so.5.1.9 -rwxr-xr-x 1 root root 1198357 10月 15 09:40 libevent-2.0.so.5.1.9 -rw-r--r-- 1 root root 2315392 10月 15 09:40 libevent.a lrwxrwxrwx 1 root root 26 9月 16 2011 libevent_core-1.4.so.2 -> libevent_core-1.4.so.2.2.0 -rw-r--r-- 1 root root 43296 9月 16 2011 libevent_core-1.4.so.2.2.0 lrwxrwxrwx 1 root root 26 10月 15 09:40 libevent_core-2.0.so.5 -> libevent_core-2.0.so.5.1.9 -rwxr-xr-x 1 root root 717068 10月 15 09:40 libevent_core-2.0.so.5.1.9 -rw-r--r-- 1 root root 1438280 10月 15 09:40 libevent_core.a -rwxr-xr-x 1 root root 974 10月 15 09:40 libevent_core.la lrwxrwxrwx 1 root root 26 10月 15 09:40 libevent_core.so -> libevent_core-2.0.so.5.1.9 lrwxrwxrwx 1 root root 27 9月 16 2011 libevent_extra-1.4.so.2 -> libevent_extra-1.4.so.2.2.0 -rw-r--r-- 1 root root 84672 9月 16 2011 libevent_extra-1.4.so.2.2.0 lrwxrwxrwx 1 root root 27 10月 15 09:40 libevent_extra-2.0.so.5 -> libevent_extra-2.0.so.5.1.9 -rwxr-xr-x 1 root root 507631 10月 15 09:40 libevent_extra-2.0.so.5.1.9 -rw-r--r-- 1 root root 877184 10月 15 09:40 libevent_extra.a -rwxr-xr-x 1 root root 981 10月 15 09:40 libevent_extra.la lrwxrwxrwx 1 root root 27 10月 15 09:40 libevent_extra.so -> libevent_extra-2.0.so.5.1.9 -rwxr-xr-x 1 root root 939 10月 15 09:40 libevent.la lrwxrwxrwx 1 root root 29 10月 15 09:40 libevent_openssl-2.0.so.5 -> libevent_openssl-2.0.so.5.1.9 -rwxr-xr-x 1 root root 106366 10月 15 09:40 libevent_openssl-2.0.so.5.1.9 -rw-r--r-- 1 root root 195788 10月 15 09:40 libevent_openssl.a -rwxr-xr-x 1 root root 1010 10月 15 09:40 libevent_openssl.la lrwxrwxrwx 1 root root 29 10月 15 09:40 libevent_openssl.so -> libevent_openssl-2.0.so.5.1.9 lrwxrwxrwx 1 root root 30 10月 15 09:40 libevent_pthreads-2.0.so.5 -> libevent_pthreads-2.0.so.5.1.9 -rwxr-xr-x 1 root root 23987 10月 15 09:40 libevent_pthreads-2.0.so.5.1.9 -rw-r--r-- 1 root root 21990 10月 15 09:40 libevent_pthreads.a -rwxr-xr-x 1 root root 1002 10月 15 09:40 libevent_pthreads.la lrwxrwxrwx 1 root root 30 10月 15 09:40 libevent_pthreads.so -> libevent_pthreads-2.0.so.5.1.9 lrwxrwxrwx 1 root root 21 10月 15 09:40 libevent.so -> libevent-2.0.so.5.1.9
还要安 openssl-dev 2015年10月15日 上午9:43,"conupefox" notifications@github.com写道:
已经装了libevent2的库,还要怎样弄? ubuntu14.04lts
ls -al /usr/lib |grep libevent lrwxrwxrwx 1 root root 21 9月 16 2011 libevent-1.4.so.2 -> libevent-1.4.so.2.2.0 -rw-r--r-- 1 root root 105048 9月 16 2011 libevent-1.4.so.2.2.0 lrwxrwxrwx 1 root root 21 10月 15 09:40 libevent-2.0.so.5 -> libevent-2.0.so.5.1.9 -rwxr-xr-x 1 root root 1198357 10月 15 09:40 libevent-2.0.so.5.1.9 -rw-r--r-- 1 root root 2315392 10月 15 09:40 libevent.a lrwxrwxrwx 1 root root 26 9月 16 2011 libevent_core-1.4.so.2 -> libevent_core-1.4.so.2.2.0 -rw-r--r-- 1 root root 43296 9月 16 2011 libevent_core-1.4.so.2.2.0 lrwxrwxrwx 1 root root 26 10月 15 09:40 libevent_core-2.0.so.5 -> libevent_core-2.0.so.5.1.9 -rwxr-xr-x 1 root root 717068 10月 15 09:40 libevent_core-2.0.so.5.1.9 -rw-r--r-- 1 root root 1438280 10月 15 09:40 libevent_core.a -rwxr-xr-x 1 root root 974 10月 15 09:40 libevent_core.la lrwxrwxrwx 1 root root 26 10月 15 09:40 libevent_core.so -> libevent_core-2.0.so.5.1.9 lrwxrwxrwx 1 root root 27 9月 16 2011 libevent_extra-1.4.so.2 -> libevent_extra-1.4.so.2.2.0 -rw-r--r-- 1 root root 84672 9月 16 2011 libevent_extra-1.4.so.2.2.0 lrwxrwxrwx 1 root root 27 10月 15 09:40 libevent_extra-2.0.so.5 -> libevent_extra-2.0.so.5.1.9 -rwxr-xr-x 1 root root 507631 10月 15 09:40 libevent_extra-2.0.so.5.1.9 -rw-r--r-- 1 root root 877184 10月 15 09:40 libevent_extra.a -rwxr-xr-x 1 root root 981 10月 15 09:40 libevent_extra.la lrwxrwxrwx 1 root root 27 10月 15 09:40 libevent_extra.so -> libevent_extra-2.0.so.5.1.9 -rwxr-xr-x 1 root root 939 10月 15 09:40 libevent.la lrwxrwxrwx 1 root root 29 10月 15 09:40 libevent_openssl-2.0.so.5 -> libevent_openssl-2.0.so.5.1.9 -rwxr-xr-x 1 root root 106366 10月 15 09:40 libevent_openssl-2.0.so.5.1.9 -rw-r--r-- 1 root root 195788 10月 15 09:40 libevent_openssl.a -rwxr-xr-x 1 root root 1010 10月 15 09:40 libevent_openssl.la lrwxrwxrwx 1 root root 29 10月 15 09:40 libevent_openssl.so -> libevent_openssl-2.0.so.5.1.9 lrwxrwxrwx 1 root root 30 10月 15 09:40 libevent_pthreads-2.0.so.5 -> libevent_pthreads-2.0.so.5.1.9 -rwxr-xr-x 1 root root 23987 10月 15 09:40 libevent_pthreads-2.0.so.5.1.9 -rw-r--r-- 1 root root 21990 10月 15 09:40 libevent_pthreads.a -rwxr-xr-x 1 root root 1002 10月 15 09:40 libevent_pthreads.la lrwxrwxrwx 1 root root 30 10月 15 09:40 libevent_pthreads.so -> libevent_pthreads-2.0.so.5.1.9 lrwxrwxrwx 1 root root 21 10月 15 09:40 libevent.so -> libevent-2.0.so.5.1.9
— Reply to this email directly or view it on GitHub https://github.com/semigodking/redsocks/issues/23#issuecomment-148251875 .
请仔细阅读wiki上的安装说明
Tried cross compile wrapper from https://github.com/aa65535/openwrt-redsocks2 and https://github.com/wongsyrone/openwrt-1/tree/master/package/external/redsocks2 but both of them lead to same error.
Compile on SDK OpenWrt-SDK-15.05-rc3-bcm53xx_gcc-4.8-linaro_uClibc-0.9.33.2_eabi.Linux-x86_64 is OK, but I am using dd-wrt, it's uClibc incompatible.
Output:
And I just noticed that it's maybe a same error on openwrt buildbot: http://buildbot.openwrt.org:8010/broken_packages/ar71xx/redsocks/compile.txt