Open shakibamoshiri opened 1 year ago
Same problem, but on Ubuntu
Try add "-fcommon" to the end of CFLAGS in Makefile.
@CJYKK It was complied but after running it, failed
[244560][2023-07-13 06:42:44.256158 local] Invoking engine mtproxy-0.01 compiled at Jul 13 2023 06:13:14 by gcc 10.2.1 20210110 64-bit after commit dc0c7f3de40530053189c572936ae4fd1567269b
[244560][2023-07-13 06:42:44.256257 local] config_filename = 'proxy-multi.conf'
[244560][2023-07-13 06:42:44.256449 local] creating 1 workers
mtproto-proxy: common/pid.c:42: init_common_PID: Assertion `!(p & 0xffff0000)' failed.
[pid 244560] [time 1689230564]
------- Stack Backtrace -------
./mtproto-proxy(print_backtrace+0x1a)[0x5610ff61842a]
./mtproto-proxy(extended_debug_handler+0x10)[0x5610ff618570]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x13140)[0x7f499eb08140]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x141)[0x7f499e959ce1]
15 CFLAGS = $(ARCH) -fcommon -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"${COMMIT}\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=
/lib/x86_64-linux-gnu/libc.so.6(abort+0x123)[0x7f499e943537]
/lib/x86_64-linux-gnu/libc.so.6(+0x2240f)[0x7f499e94340f]
/lib/x86_64-linux-gnu/libc.so.6(+0x31662)[0x7f499e952662]
./mtproto-proxy(+0x4c141)[0x5610ff61c141]
./mtproto-proxy(engine_init+0xe4)[0x5610ff612a04]
./mtproto-proxy(default_main+0x10f)[0x5610ff6137ff]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea)[0x7f499e944d0a]
./mtproto-proxy(_start+0x2a)[0x5610ff5e1f2a]
[pid 244560] [time 1689230564] -------------------------------
[pid 244560] [time 1689230564] mtproxy-0.01 compiled at Jul 13 2023 06:13:14 by gcc 10.2.1 20210110 64-bit after commit dc0c7f3de40530053189c572936ae4fd1567269b[pid 244560] [time 1689230564]
mtproto-proxy: common/pid.c:42: init_common_PID: Assertion `!(p & 0xffff0000)' failed.
root@203:/opt/MTProxy/objs/bin# [pid 244561] [time 1689230564]
------- Stack Backtrace -------
./mtproto-proxy(print_backtrace+0x1a)[0x5610ff61842a]
./mtproto-proxy(extended_debug_handler+0x10)[0x5610ff618570]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x13140)[0x7f499eb08140]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x141)[0x7f499e959ce1]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x123)[0x7f499e943537]
/lib/x86_64-linux-gnu/libc.so.6(+0x2240f)[0x7f499e94340f]
/lib/x86_64-linux-gnu/libc.so.6(+0x31662)[0x7f499e952662]
./mtproto-proxy(+0x4c141)[0x5610ff61c141]
./mtproto-proxy(engine_init+0xe4)[0x5610ff612a04]
./mtproto-proxy(default_main+0x10f)[0x5610ff6137ff]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea)[0x7f499e944d0a]
./mtproto-proxy(_start+0x2a)[0x5610ff5e1f2a]
[pid 244561] [time 1689230564] -------------------------------
[pid 244561] [time 1689230564] mtproxy-0.01 compiled at Jul 13 2023 06:13:14 by gcc 10.2.1 20210110 64-bit after commit dc0c7f3de40530053189c572936ae4fd1567269b[pid 244561] [time 1689230564]
opensuse 15.5, opensuse tumbleweed, oracle linux 8, almalinux 8.. same problem..
one year later ... The same issue with Ubuntu 20 no longer the project is active ?
Try add "-fcommon" to the end of CFLAGS in Makefile.
Please put the complete command
@rezaparsad open Makefile, CFLAGS is right at the beginning, add -fcommon at the end
also it works on opensuse 15.5/tumbleweed with that change @13werwolf13
@rezaparsad open Makefile, CFLAGS is right at the beginning, add -fcommon at the end
also it works on opensuse 15.5/tumbleweed with that change @13werwolf13
thanks! it worked!! but I'm not sure if I can return it to the repository since opensuse maintainers, as far as I know, are against adding packages with unmaintained software. but I will definitely try!
and log before error
all solution of #4 were tested but did not solve the issue
any idea ?
Regards