-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
编译muon时,make遇错 #24
Comments
export LDFLAGS="-L$(pwd)/lz4/lib -L$(pwd)/libmill/.libs -L$(pwd)/libsodium/src/libsodium/.libs -lpthread" |
还是不行。我下载了muon-x86_64到服务器上。 在mac上, muon client configuser to set privilege touser=nobody server or clientmode=client server addressserver=my-vps-ip server portport=2000 secret key for cryptorun `dd if=/dev/random bs=1 count=9 | md5sum' to create onekey=df61aad78a0a238aca27e0ba3722f304 TUN device name, tunX for linux, utunX for darwintunif=tun2 MTU of TUN deviceEthernet: 1500 - 20(IPv4, or 40 for IPv6) - 8(UDP) - 20(muon)PPPoE: 1492 - 20(IPv4, or 40 for IPv6) - 8(UDP) - 20(muon)mtu=1440 IPv4 address of TUN device, CIDR notationaddress=10.10.20.2/31 IPv6 address of TUN device, CIDR notationaddress6=IPv4 address of remote peer (darwin only)peer=10.10.20.2 add route or notroute=yes 'failed to init tun device'问题怎么解决?mac上,已安装tuntaposx.即使把tunif的值改为utun2,也是遇到一样的错误。怎么在mac上,运行你这个程序,不是自动生成虚拟网卡的吗 |
服务器上,倒是自动生成了虚拟网卡tun2. |
hi。
git clone https://github.com/puxxustc/muon
cd muon
autoreconf -if
export CPPFLAGS="-I$(pwd)/lz4/lib -I$(pwd)/libmill -I$(pwd)/libsodium/src/libsodium/include"
export LDFLAGS="-L$(pwd)/lz4/lib -L$(pwd)/libmill/.libs -L$(pwd)/libsodium/src/libsodium/.libs"
./configure --prefix=/usr --sysconfdir=/etc --enable-static
make
make遇错,显示:
utils.o: In function
runas': utils.c:(.text+0x7): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking //usr/local/lib/libsodium.a(libsodium_la-core.o): In function
sodium_crit_enter':/root/libsodium/src/libsodium/sodium/core.c:118: undefined reference to
pthread_mutex_lock' //usr/local/lib/libsodium.a(libsodium_la-core.o): In function
sodium_crit_leave':/root/libsodium/src/libsodium/sodium/core.c:136: undefined reference to
pthread_mutex_unlock' /root/libsodium/src/libsodium/sodium/core.c:136: undefined reference to
pthread_mutex_unlock'/root/libsodium/src/libsodium/sodium/core.c:136: undefined reference to
pthread_mutex_unlock' /root/libsodium/src/libsodium/sodium/core.c:136: undefined reference to
pthread_mutex_unlock'/usr/lib/gcc/x86_64-redhat-linux/4.8.5/libgcc_eh.a(unwind-dw2-fde-dip.o): In function
__register_frame_info_bases': (.text+0x1787): undefined reference to
pthread_mutex_lock'/usr/lib/gcc/x86_64-redhat-linux/4.8.5/libgcc_eh.a(unwind-dw2-fde-dip.o): In function
__register_frame_info_table_bases': (.text+0x183b): undefined reference to
pthread_mutex_lock'/usr/lib/gcc/x86_64-redhat-linux/4.8.5/libgcc_eh.a(unwind-dw2-fde-dip.o): In function
__deregister_frame_info_bases': (.text+0x18de): undefined reference to
pthread_mutex_lock'/usr/lib/gcc/x86_64-redhat-linux/4.8.5/libgcc_eh.a(unwind-dw2-fde-dip.o): In function
__deregister_frame_info_bases': (.text+0x1966): undefined reference to
pthread_mutex_unlock'/usr/lib/gcc/x86_64-redhat-linux/4.8.5/libgcc_eh.a(unwind-dw2-fde-dip.o): In function
_Unwind_Find_FDE': (.text+0x1a36): undefined reference to
pthread_mutex_lock'/usr/lib/gcc/x86_64-redhat-linux/4.8.5/libgcc_eh.a(unwind-dw2-fde-dip.o): In function
_Unwind_Find_FDE': (.text+0x1a86): undefined reference to
pthread_mutex_unlock'/usr/lib/gcc/x86_64-redhat-linux/4.8.5/libgcc_eh.a(unwind-dw2-fde-dip.o): In function
__register_frame_info_bases': (.text+0x17a6): undefined reference to
pthread_mutex_unlock'/usr/lib/gcc/x86_64-redhat-linux/4.8.5/libgcc_eh.a(unwind-dw2-fde-dip.o): In function
__register_frame_info_table_bases': (.text+0x185a): undefined reference to
pthread_mutex_unlock'collect2: error: ld returned 1 exit status
make[2]: *** [muon] Error 1
make[2]: Leaving directory
/root/muon/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory
/root/muon'make: *** [all] Error 2
[root@host muon]#
怎么解决错误?
The text was updated successfully, but these errors were encountered: