root@localhost:~# cd MTProxy root@localhost:~/MTProxy# make && cd objs/bin cc -o objs/bin/mtproto-proxy objs/mtproto/mtproto-proxy.o objs/mtproto/mtproto-config.o objs/net/net-tcp-rpc-ext-server.o objs/lib/libkdb.a objs/lib/libkdb.a -ggdb -rdynamic -lm -lrt -lcrypto -lz -lpthread -lcrypto /usr/bin/ld: objs/mtproto/mtproto-config.o:(.bss+0x200a0): multiple definition ofkdb_hosts_loaded'; objs/mtproto/mtproto-proxy.o:(.bss+0x4f01b48): first defined here
/usr/bin/ld: objs/net/net-tcp-rpc-ext-server.o:(.bss+0x0): multiple definition of kdb_hosts_loaded'; objs/mtproto/mtproto-proxy.o:(.bss+0x4f01b48): first defined here /usr/bin/ld: objs/lib/libkdb.a(resolver.o):(.bss+0x0): multiple definition ofkdb_hosts_loaded'; objs/mtproto/mtproto-proxy.o:(.bss+0x4f01b48): first defined here
/usr/bin/ld: objs/lib/libkdb.a(parse-config.o):(.bss+0x28): multiple definition of kdb_hosts_loaded'; objs/mtproto/mtproto-proxy.o:(.bss+0x4f01b48): first defined here /usr/bin/ld: objs/lib/libkdb.a(net-rpc-targets.o):(.bss+0x820): multiple definition oftotal_vv_tree_nodes'; objs/lib/libkdb.a(net-connections.o):(.bss+0xc34a8): first defined here
/usr/bin/ld: objs/lib/libkdb.a(net-http-server.o):(.bss+0x18): multiple definition of http_queries'; objs/mtproto/mtproto-proxy.o:(.bss+0x488): first defined here /usr/bin/ld: objs/lib/libkdb.a(engine-rpc.o):(.bss+0x0): multiple definition oftotal_vv_tree_nodes'; objs/lib/libkdb.a(net-connections.o):(.bss+0xc34a8): first defined here
/usr/bin/ld: objs/lib/libkdb.a(net-stats.o):(.bss+0x8): multiple definition of total_vv_tree_nodes'; objs/lib/libkdb.a(net-connections.o):(.bss+0xc34a8): first defined here /usr/bin/ld: objs/lib/libkdb.a(pid.o):(.bss+0x0): multiple definition ofPID'; objs/lib/libkdb.a(net-stats.o):(.bss+0x30): first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:94: objs/bin/mtproto-proxy] Error 1
root@localhost:~/MTProxy# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.10
Release: 20.10
Codename: groovy
root@localhost:~/MTProxy# uname -a
Linux localhost.localdomain 5.8.0-26-generic #27-Ubuntu SMP Wed Oct 21 22:29:16 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
root@localhost:~/MTProxy# openssl version
OpenSSL 1.1.1f 31 Mar 2020
root@localhost:~/MTProxy#`
What should I do?
root@localhost:~# cd MTProxy root@localhost:~/MTProxy# make && cd objs/bin cc -o objs/bin/mtproto-proxy objs/mtproto/mtproto-proxy.o objs/mtproto/mtproto-config.o objs/net/net-tcp-rpc-ext-server.o objs/lib/libkdb.a objs/lib/libkdb.a -ggdb -rdynamic -lm -lrt -lcrypto -lz -lpthread -lcrypto /usr/bin/ld: objs/mtproto/mtproto-config.o:(.bss+0x200a0): multiple definition of
kdb_hosts_loaded'; objs/mtproto/mtproto-proxy.o:(.bss+0x4f01b48): first defined here /usr/bin/ld: objs/net/net-tcp-rpc-ext-server.o:(.bss+0x0): multiple definition ofkdb_hosts_loaded'; objs/mtproto/mtproto-proxy.o:(.bss+0x4f01b48): first defined here /usr/bin/ld: objs/lib/libkdb.a(resolver.o):(.bss+0x0): multiple definition of
kdb_hosts_loaded'; objs/mtproto/mtproto-proxy.o:(.bss+0x4f01b48): first defined here /usr/bin/ld: objs/lib/libkdb.a(parse-config.o):(.bss+0x28): multiple definition ofkdb_hosts_loaded'; objs/mtproto/mtproto-proxy.o:(.bss+0x4f01b48): first defined here /usr/bin/ld: objs/lib/libkdb.a(net-rpc-targets.o):(.bss+0x820): multiple definition of
total_vv_tree_nodes'; objs/lib/libkdb.a(net-connections.o):(.bss+0xc34a8): first defined here /usr/bin/ld: objs/lib/libkdb.a(net-http-server.o):(.bss+0x18): multiple definition ofhttp_queries'; objs/mtproto/mtproto-proxy.o:(.bss+0x488): first defined here /usr/bin/ld: objs/lib/libkdb.a(engine-rpc.o):(.bss+0x0): multiple definition of
total_vv_tree_nodes'; objs/lib/libkdb.a(net-connections.o):(.bss+0xc34a8): first defined here /usr/bin/ld: objs/lib/libkdb.a(net-stats.o):(.bss+0x8): multiple definition oftotal_vv_tree_nodes'; objs/lib/libkdb.a(net-connections.o):(.bss+0xc34a8): first defined here /usr/bin/ld: objs/lib/libkdb.a(pid.o):(.bss+0x0): multiple definition of
PID'; objs/lib/libkdb.a(net-stats.o):(.bss+0x30): first defined here collect2: error: ld returned 1 exit status make: *** [Makefile:94: objs/bin/mtproto-proxy] Error 1 root@localhost:~/MTProxy# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.10 Release: 20.10 Codename: groovy root@localhost:~/MTProxy# uname -a Linux localhost.localdomain 5.8.0-26-generic #27-Ubuntu SMP Wed Oct 21 22:29:16 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux root@localhost:~/MTProxy# openssl version OpenSSL 1.1.1f 31 Mar 2020 root@localhost:~/MTProxy#`