TelegramMessenger / MTProxy

5.02k stars 831 forks source link

make: *** [Makefile:94: objs/bin/mtproto-proxy] Error 1 #593

Open phpll opened 3 months ago

phpll commented 3 months ago

collect2: error: ld returned 1 exit status make: *** [Makefile:94: objs/bin/mtproto-proxy] Error 1

phpll commented 3 months ago

cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -iquote common -iquote . -c -MP -MD -MF dep/mtproto/mtproto-proxy.d -MQ objs/mtproto/mtproto-proxy.o -o objs/mtproto/mtproto-proxy.o mtproto/mtproto-proxy.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -iquote common -iquote . -c -MP -MD -MF dep/mtproto/mtproto-config.d -MQ objs/mtproto/mtproto-config.o -o objs/mtproto/mtproto-config.o mtproto/mtproto-config.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -iquote common -iquote . -c -MP -MD -MF dep/net/net-tcp-rpc-ext-server.d -MQ objs/net/net-tcp-rpc-ext-server.o -o objs/net/net-tcp-rpc-ext-server.o net/net-tcp-rpc-ext-server.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/common/crc32c.d -MQ objs/common/crc32c.o -o objs/common/crc32c.o common/crc32c.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/common/pid.d -MQ objs/common/pid.o -o objs/common/pid.o common/pid.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/common/sha1.d -MQ objs/common/sha1.o -o objs/common/sha1.o common/sha1.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/common/sha256.d -MQ objs/common/sha256.o -o objs/common/sha256.o common/sha256.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/common/md5.d -MQ objs/common/md5.o -o objs/common/md5.o common/md5.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/common/resolver.d -MQ objs/common/resolver.o -o objs/common/resolver.o common/resolver.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/common/parse-config.d -MQ objs/common/parse-config.o -o objs/common/parse-config.o common/parse-config.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/crypto/aesni256.d -MQ objs/crypto/aesni256.o -o objs/crypto/aesni256.o crypto/aesni256.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/jobs/jobs.d -MQ objs/jobs/jobs.o -o objs/jobs/jobs.o jobs/jobs.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/common/mp-queue.d -MQ objs/common/mp-queue.o -o objs/common/mp-queue.o common/mp-queue.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/net/net-events.d -MQ objs/net/net-events.o -o objs/net/net-events.o net/net-events.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/net/net-msg.d -MQ objs/net/net-msg.o -o objs/net/net-msg.o net/net-msg.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/net/net-msg-buffers.d -MQ objs/net/net-msg-buffers.o -o objs/net/net-msg-buffers.o net/net-msg-buffers.c net/net-msg-buffers.c: In function ‘free_msg_buffers_chunk_internal’: net/net-msg-buffers.c:306:3: warning: pointer ‘C’ may be used after ‘free’ [-Wuse-after-free] 306 | free_mp_queue (C->free_block_queue); | ^~~~~~~~~~~ net/net-msg-buffers.c:294:3: note: call to ‘free’ here 294 | free (C); | ^~~~ net/net-msg-buffers.c:307:23: warning: pointer ‘C’ may be used after ‘free’ [-Wuse-after-free] 307 | C->free_block_queue = NULL; | ^ net/net-msg-buffers.c:294:3: note: call to ‘free’ here 294 | free (C); | ^~~~ cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/net/net-config.d -MQ objs/net/net-config.o -o objs/net/net-config.o net/net-config.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/net/net-crypto-aes.d -MQ objs/net/net-crypto-aes.o -o objs/net/net-crypto-aes.o net/net-crypto-aes.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/net/net-crypto-dh.d -MQ objs/net/net-crypto-dh.o -o objs/net/net-crypto-dh.o net/net-crypto-dh.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/net/net-timers.d -MQ objs/net/net-timers.o -o objs/net/net-timers.o net/net-timers.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/net/net-connections.d -MQ objs/net/net-connections.o -o objs/net/net-connections.o net/net-connections.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/net/net-rpc-targets.d -MQ objs/net/net-rpc-targets.o -o objs/net/net-rpc-targets.o net/net-rpc-targets.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/net/net-tcp-connections.d -MQ objs/net/net-tcp-connections.o -o objs/net/net-tcp-connections.o net/net-tcp-connections.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/net/net-tcp-rpc-common.d -MQ objs/net/net-tcp-rpc-common.o -o objs/net/net-tcp-rpc-common.o net/net-tcp-rpc-common.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/net/net-tcp-rpc-client.d -MQ objs/net/net-tcp-rpc-client.o -o objs/net/net-tcp-rpc-client.o net/net-tcp-rpc-client.c net/net-tcp-rpc-client.c: In function ‘tcp_rpcc_init_crypto.part.0’: net/net-tcp-rpc-client.c:634:26: warning: array subscript 0 is outside array bounds of ‘union [1]’ [-Warray-bounds] 634 | dh->dh_params_select = dh_params_select; | ~~~~~^~~~~~ net/net-tcp-rpc-client.c:618:5: note: at offset -32 into object ‘buf’ of size 328 618 | } buf; | ^~~ net/net-tcp-rpc-client.c:638:23: warning: array subscript 0 is outside array bounds of ‘union [1]’ [-Warray-bounds] 638 | dh_first_round (dh->g_a, c->crypto_temp); | ^~~ net/net-tcp-rpc-client.c:618:5: note: at offset -32 into object ‘buf’ of size 328 618 | } buf; | ^~~ cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/net/net-tcp-rpc-server.d -MQ objs/net/net-tcp-rpc-server.o -o objs/net/net-tcp-rpc-server.o net/net-tcp-rpc-server.c net/net-tcp-rpc-server.c: In function ‘tcp_rpcs_init_crypto’: net/net-tcp-rpc-server.c:602:51: warning: array subscript 0 is outside array bounds of ‘union [1]’ [-Warray-bounds] 602 | temp_dh_len = dh_second_round (temp_dh, new_dh->g_a, old_dh->g_a); | ~~^~~~~ net/net-tcp-rpc-server.c:582:5: note: at offset -32 into object ‘buf’ of size 328 582 | } buf; | ^~~ net/net-tcp-rpc-server.c:633:11: warning: array subscript 0 is outside array bounds of ‘struct tcp_rpc_nonce_dh_packet[1]’ [-Warray-bounds] 633 | new_dh->dh_params_select = dh_params_select; | ^~ net/net-tcp-rpc-server.c:582:5: note: at offset -32 into object ‘buf’ of size 328 582 | } buf; | ^~~ cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/net/net-http-server.d -MQ objs/net/net-http-server.o -o objs/net/net-http-server.o net/net-http-server.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/common/tl-parse.d -MQ objs/common/tl-parse.o -o objs/common/tl-parse.o common/tl-parse.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/common/common-stats.d -MQ objs/common/common-stats.o -o objs/common/common-stats.o common/common-stats.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/engine/engine.d -MQ objs/engine/engine.o -o objs/engine/engine.o engine/engine.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/engine/engine-signals.d -MQ objs/engine/engine-signals.o -o objs/engine/engine-signals.o engine/engine-signals.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/engine/engine-net.d -MQ objs/engine/engine-net.o -o objs/engine/engine-net.o engine/engine-net.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/engine/engine-rpc.d -MQ objs/engine/engine-rpc.o -o objs/engine/engine-rpc.o engine/engine-rpc.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/engine/engine-rpc-common.d -MQ objs/engine/engine-rpc-common.o -o objs/engine/engine-rpc-common.o engine/engine-rpc-common.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/net/net-thread.d -MQ objs/net/net-thread.o -o objs/net/net-thread.o net/net-thread.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/net/net-stats.d -MQ objs/net/net-stats.o -o objs/net/net-stats.o net/net-stats.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/common/proc-stat.d -MQ objs/common/proc-stat.o -o objs/common/proc-stat.o common/proc-stat.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/common/kprintf.d -MQ objs/common/kprintf.o -o objs/common/kprintf.o common/kprintf.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/common/precise-time.d -MQ objs/common/precise-time.o -o objs/common/precise-time.o common/precise-time.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/common/cpuid.d -MQ objs/common/cpuid.o -o objs/common/cpuid.o common/cpuid.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/common/server-functions.d -MQ objs/common/server-functions.o -o objs/common/server-functions.o common/server-functions.c cc -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"dc0c7f3de40530053189c572936ae4fd1567269b\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fpic -iquote common -iquote . -c -MP -MD -MF dep/common/crc32.d -MQ objs/common/crc32.o -o objs/common/crc32.o common/crc32.c rm -f objs/lib/libkdb.a && ar rcs objs/lib/libkdb.a objs/common/crc32c.o objs/common/pid.o objs/common/sha1.o objs/common/sha256.o objs/common/md5.o objs/common/resolver.o objs/common/parse-config.o objs/crypto/aesni256.o objs/jobs/jobs.o objs/common/mp-queue.o objs/net/net-events.o objs/net/net-msg.o objs/net/net-msg-buffers.o objs/net/net-config.o objs/net/net-crypto-aes.o objs/net/net-crypto-dh.o objs/net/net-timers.o objs/net/net-connections.o objs/net/net-rpc-targets.o objs/net/net-tcp-connections.o objs/net/net-tcp-rpc-common.o objs/net/net-tcp-rpc-client.o objs/net/net-tcp-rpc-server.o objs/net/net-http-server.o objs/common/tl-parse.o objs/common/common-stats.o objs/engine/engine.o objs/engine/engine-signals.o objs/engine/engine-net.o objs/engine/engine-rpc.o objs/engine/engine-rpc-common.o objs/net/net-thread.o objs/net/net-stats.o objs/common/proc-stat.o objs/common/kprintf.o objs/common/precise-time.o objs/common/cpuid.o objs/common/server-functions.o objs/common/crc32.o 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

jiahong19887 commented 3 months ago

Klcov