Open pishgaman-org opened 8 years ago
I solved it by changing that line to:
M->type = tgl_message_media_unsupported; break;
and recompile telegram-cli.
Have the same problem (Raspberry Pi with Raspbian 8). What exactly did you change?
go to "tgl" directory and open "structures.c" file in a editor. go to line 997 and replace
assert(0);
with
M->type = tgl_message_media_unsupported; break;
and recompile telegram-cli.
So I had the same kind of problem. But I had this error: telegram-cli: interface.c:3446: print_media: Assertion `0' failed.
following pishgaman-org instructions I edited interface.c. And on line 3446 I made the same changed. After recompile, the error was gone.
Yes, I had the same error when someone sent a video.
Yup, also a video in my case.
Still get this error with audio messages... telegram-cli: interface.c:3446: print_media: Assertion `0' failed. SIGNAL received t./tg/bin/telegram-cli(print_backtrace+0x20)[0x46f0f0] ./tg/bin/telegram-cli(termination_signal_handler+0x64)[0x46f174] /lib64/libc.so.6(+0x326a0)[0x7f3b375f36a0] /lib64/libc.so.6(gsignal+0x35)[0x7f3b375f3625] /lib64/libc.so.6(abort+0x175)[0x7f3b375f4e05] /lib64/libc.so.6(+0x2b74e)[0x7f3b375ec74e] /lib64/libc.so.6(__assert_perror_fail+0x0)[0x7f3b375ec810] ./tg/bin/telegram-cli(print_media+0x53)[0x474103] ./tg/bin/telegram-cli(print_message+0x1ed)[0x478fcd] ./tg/bin/telegram-cli(print_message_gw+0xdb)[0x47b20b] ./tg/bin/telegram-cli[0x4aa970] ./tg/bin/telegram-cli[0x4ac630] ./tg/bin/telegram-cli[0x49c777] ./tg/bin/telegram-cli(tglq_query_result+0x10f)[0x4923bf] ./tg/bin/telegram-cli[0x48d4ba] ./tg/bin/telegram-cli[0x4900fe] ./tg/bin/telegram-cli[0x4b262b] /usr/lib64/libevent-1.4.so.2(event_base_loop+0x3e4)[0x7f3b396edb44] ./tg/bin/telegram-cli(net_loop+0xb5)[0x472e15] ./tg/bin/telegram-cli(loop+0x1dc)[0x47315c] ./tg/bin/telegram-cli(main+0x2c6)[0x470856] /lib64/libc.so.6(__libc_start_main+0xfd)[0x7f3b375dfd5d] ./tg/bin/telegram-cli[0x46ee49]
you should modify "interface.c" like "structures.c".
That helped, thx!
Could you make a PR, please?
if I know what PR means, maybe could make it!
Pull request
unfortunately I can't understand how create pull request. it's unclear.
Just clone this repo, make your changes, commit it to your cloned repo and then you can see a button on GitHub "compare your repo" and there you can create a pull request.
I'll do it then, no problem.
Please push these changes if it fixes the problem
I can't, I have no ownership of this repo. If you desperatly need it you can use my fork.
On current master branch this is still an issue with interface.c
file.
No one has merged my PR yet.
Oops, I did not noticed it :expressionless:
Why is the issue closed then?
No idea. The developement process of this project is strange at best.
Ok, now I see... the creator of the issue closed it, and the project owners probably ignore this issue. Someone should reopen it.
the problem solved for structures.c but still exists in other files. OK, I reopen it.
It works for me but on current master branch interface.c not changed yet to fix issue.
Here's a working PKGBUILD for the ones using Arch Linux:
Hi, I had the 'telegram-cli: tgl/structures.c:997: tglf_fetch_message_media_new: Assertion `0' failed.' error. I have also changed the structures.c file. How do i recompile telegram-cli?
bin/telegram-cli -k tg-server.pub -W Telegram-cli version 1.4.1, Copyright (C) 2013-2015 Vitaly Valtman Telegram-cli comes with ABSOLUTELY NO WARRANTY; for details type show_license'. This is free software, and you are welcome to redistribute it under certain conditions; typeshow_license' for details. Telegram-cli uses libtgl version 2.1.0 Telegram-cli includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.openssl.org/) I: config dir=[/home/pi/.telegram-cli] telegram-cli: tgl/mtproto-utils.c:101: BN2ull: Assertion `0' failed. SIGNAL received
I also have a problem, can you can install the older files?
After change, my telegram-cli wont compile:
$ ./launch.sh install
Already up-to-date.
patching file tg/configure.ac
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file tg/configure.ac.rej
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for sqrt in -lm... yes
checking for library containing clock_gettime... none required
checking for library containing backtrace... none required
checking for event_base_new in -levent... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking event2/event.h usability... yes
checking event2/event.h presence... yes
checking for event2/event.h... yes
checking for pkg-config... /usr/bin/pkg-config
checking whether compiling and linking against OpenSSL works... yes
checking if zlib is wanted... yes
checking for inflateEnd in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for rl_save_prompt in -lreadline... yes
checking for libconfig... enabled
checking for config_init in -lconfig... yes
checking for liblua... enabled
checking for lua... /usr/bin/lua
checking if /usr/bin/lua is a Lua interpreter... yes
checking for lua version... 5.2
checking for lua platform... unknown
checking for lua script directory... ${prefix}/share/lua/5.2
checking for lua module directory... ${exec_prefix}/lib/lua/5.2
checking if LUA_VERSION is defined... yes
checking lua.h usability... yes
checking lua.h presence... yes
checking for lua.h... yes
checking lualib.h usability... yes
checking lualib.h presence... yes
checking for lualib.h... yes
checking lauxlib.h usability... yes
checking lauxlib.h presence... yes
checking for lauxlib.h... yes
checking luaconf.h usability... yes
checking luaconf.h presence... yes
checking for luaconf.h... yes
checking for Lua header version... 5.2
checking if Lua header version matches 5.2... yes
checking if LUA_VERSION is defined... yes
checking for library containing exp... none required
checking for library containing dlopen... -ldl
checking for library containing lua_load... -llua5.2
checking for python... checking for python build information...
checking for python3.5... no
checking for python3.4... python3.4
checking for main in -lpython3.4... no
checking for main in -lpython3.4m... yes
results of the Python check:
Binary: python3.4
Library: python3.4m
Include Dir: /usr/include/python3.4m
checking for libjansson... checking for json_array_set_new in -ljansson... yes
enabled
checking progname... default
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking mach/mach.h usability... no
checking mach/mach.h presence... no
checking for mach/mach.h... no
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for inline... inline
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for alarm... yes
checking for endpwent... yes
checking for memset... yes
checking for memmove... yes
checking for mkdir... yes
checking for select... yes
checking for socket... yes
checking for strdup... yes
checking for strndup... yes
checking for uname... yes
checking for __builtin_bswap32... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
gcc -I. -I. -I./tgl -g -O2 -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include/python3.4m -DHAVE_CONFIG_H -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tgl -c -MP -MD -MF dep/structures.d -MQ objs/structures.o -o objs/structures.o tgl/structures.c
gcc -I. -I. -I./tgl -g -O2 -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include/python3.4m -DHAVE_CONFIG_H -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tgl -c -MP -MD -MF dep/binlog.d -MQ objs/binlog.o -o objs/binlog.o tgl/binlog.c
gcc -I. -I. -I./tgl -g -O2 -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include/python3.4m -DHAVE_CONFIG_H -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tgl -c -MP -MD -MF dep/tgl.d -MQ objs/tgl.o -o objs/tgl.o tgl/tgl.c
gcc -I. -I. -I./tgl -g -O2 -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include/python3.4m -DHAVE_CONFIG_H -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tgl -c -MP -MD -MF dep/updates.d -MQ objs/updates.o -o objs/updates.o tgl/updates.c
gcc -I. -I. -I./tgl -g -O2 -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include/python3.4m -DHAVE_CONFIG_H -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tgl -c -MP -MD -MF dep/tgl-net.d -MQ objs/tgl-net.o -o objs/tgl-net.o tgl/tgl-net.c
gcc -I. -I. -I./tgl -g -O2 -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include/python3.4m -DHAVE_CONFIG_H -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tgl -c -MP -MD -MF dep/tgl-timers.d -MQ objs/tgl-timers.o -o objs/tgl-timers.o tgl/tgl-timers.c
gcc -I. -I. -I./tgl -g -O2 -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include/python3.4m -DHAVE_CONFIG_H -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tgl -c -MP -MD -MF dep/tg-mime-types.d -MQ objs/tg-mime-types.o -o objs/tg-mime-types.o tgl/tg-mime-types.c
gcc -I. -I. -I./tgl -g -O2 -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include/python3.4m -DHAVE_CONFIG_H -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tgl -c -MP -MD -MF dep/mtproto-utils.d -MQ objs/mtproto-utils.o -o objs/mtproto-utils.o tgl/mtproto-utils.c
bin/generate -g skip auto/scheme.tlo > auto/auto-skip.c || rm auto/auto-skip.c
gcc -I. -I. -I./tgl -g -O2 -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include/python3.4m -DHAVE_CONFIG_H -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tgl -c -MP -MD -MF dep/auto-skip.d -MQ objs/auto-skip.o -o objs/auto/auto-skip.o auto/auto-skip.c
bin/generate -g fetch auto/scheme.tlo > auto/auto-fetch.c || rm auto/auto-fetch.c
gcc -I. -I. -I./tgl -g -O2 -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include/python3.4m -DHAVE_CONFIG_H -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tgl -c -MP -MD -MF dep/auto-fetch.d -MQ objs/auto-fetch.o -o objs/auto/auto-fetch.o auto/auto-fetch.c
bin/generate -g store auto/scheme.tlo > auto/auto-store.c || rm auto/auto-store.c
gcc -I. -I. -I./tgl -g -O2 -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include/python3.4m -DHAVE_CONFIG_H -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tgl -c -MP -MD -MF dep/auto-store.d -MQ objs/auto-store.o -o objs/auto/auto-store.o auto/auto-store.c
bin/generate -g autocomplete auto/scheme.tlo > auto/auto-autocomplete.c || rm auto/auto-autocomplete.c
gcc -I. -I. -I./tgl -g -O2 -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include/python3.4m -DHAVE_CONFIG_H -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tgl -c -MP -MD -MF dep/auto-autocomplete.d -MQ objs/auto-autocomplete.o -o objs/auto/auto-autocomplete.o auto/auto-autocomplete.c
bin/generate -g types auto/scheme.tlo > auto/auto-types.c || rm auto/auto-types.c
gcc -I. -I. -I./tgl -g -O2 -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include/python3.4m -DHAVE_CONFIG_H -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tgl -c -MP -MD -MF dep/auto-types.d -MQ objs/auto-types.o -o objs/auto/auto-types.o auto/auto-types.c
bin/generate -g fetch-ds auto/scheme.tlo > auto/auto-fetch-ds.c || rm auto/auto-fetch-ds.c
gcc -I. -I. -I./tgl -g -O2 -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include/python3.4m -DHAVE_CONFIG_H -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tgl -c -MP -MD -MF dep/auto-fetch-ds.d -MQ objs/auto-fetch-ds.o -o objs/auto/auto-fetch-ds.o auto/auto-fetch-ds.c
bin/generate -g free-ds auto/scheme.tlo > auto/auto-free-ds.c || rm auto/auto-free-ds.c
gcc -I. -I. -I./tgl -g -O2 -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include/python3.4m -DHAVE_CONFIG_H -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tgl -c -MP -MD -MF dep/auto-free-ds.d -MQ objs/auto-free-ds.o -o objs/auto/auto-free-ds.o auto/auto-free-ds.c
bin/generate -g store-ds auto/scheme.tlo > auto/auto-store-ds.c || rm auto/auto-store-ds.c
gcc -I. -I. -I./tgl -g -O2 -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include/python3.4m -DHAVE_CONFIG_H -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tgl -c -MP -MD -MF dep/auto-store-ds.d -MQ objs/auto-store-ds.o -o objs/auto/auto-store-ds.o auto/auto-store-ds.c
bin/generate -g print-ds auto/scheme.tlo > auto/auto-print-ds.c || rm auto/auto-print-ds.c
gcc -I. -I. -I./tgl -g -O2 -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include/python3.4m -DHAVE_CONFIG_H -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tgl -c -MP -MD -MF dep/auto-print-ds.d -MQ objs/auto-print-ds.o -o objs/auto/auto-print-ds.o auto/auto-print-ds.c
rm -f libs/libtgl.a && ar ruv libs/libtgl.a objs/mtproto-common.o objs/mtproto-client.o objs/queries.o objs/structures.o objs/binlog.o objs/tgl.o objs/updates.o objs/tgl-net.o objs/tgl-timers.o objs/tg-mime-types.o objs/mtproto-utils.o objs/tools.o objs/auto/auto-skip.o objs/auto/auto-fetch.o objs/auto/auto-store.o objs/auto/auto-autocomplete.o objs/auto/auto-types.o objs/auto/auto-fetch-ds.o objs/auto/auto-free-ds.o objs/auto/auto-store-ds.o objs/auto/auto-print-ds.o
ar: creating libs/libtgl.a
a - objs/mtproto-common.o
a - objs/mtproto-client.o
a - objs/queries.o
a - objs/structures.o
a - objs/binlog.o
a - objs/tgl.o
a - objs/updates.o
a - objs/tgl-net.o
a - objs/tgl-timers.o
a - objs/tg-mime-types.o
a - objs/mtproto-utils.o
a - objs/tools.o
a - objs/auto/auto-skip.o
a - objs/auto/auto-fetch.o
a - objs/auto/auto-store.o
a - objs/auto/auto-autocomplete.o
a - objs/auto/auto-types.o
a - objs/auto/auto-fetch-ds.o
a - objs/auto/auto-free-ds.o
a - objs/auto/auto-store-ds.o
a - objs/auto/auto-print-ds.o
gcc objs/main.o objs/loop.o objs/interface.o objs/lua-tg.o objs/json-tg.o objs/python-tg.o objs/python-types.o libs/libtgl.a -L/usr/local/lib -L/usr/lib -L/usr/lib -rdynamic -ggdb -levent -lconfig -lz -levent -lm -lreadline -llua5.2 -ldl -lpython3.4m -lssl -lcrypto -ldl -lpthread -lutil -o bin/telegram-cli
objs/interface.o: In function json_peer_update': /tmp/telegram-bot/tg/interface.c:2649: undefined reference to
json_object'
/tmp/telegram-bot/tg/interface.c:2650: undefined reference to json_string' objs/interface.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/interface.o: In function
json_peer_update':
/tmp/telegram-bot/tg/interface.c:2653: undefined reference to json_dumps' objs/interface.o: In function
json_decref':
/usr/include/jansson.h:112: undefined reference to json_delete' objs/interface.o: In function
print_fail':
/tmp/telegram-bot/tg/interface.c:1907: undefined reference to json_object' /tmp/telegram-bot/tg/interface.c:1908: undefined reference to
json_string'
objs/interface.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/interface.o: In function print_fail': /tmp/telegram-bot/tg/interface.c:1909: undefined reference to
json_integer'
objs/interface.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/interface.o: In function print_fail': /tmp/telegram-bot/tg/interface.c:1910: undefined reference to
json_string'
objs/interface.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/interface.o: In function print_fail': /tmp/telegram-bot/tg/interface.c:1911: undefined reference to
json_dumps'
objs/interface.o: In function json_decref': /usr/include/jansson.h:112: undefined reference to
json_delete'
objs/interface.o: In function fail_interface': /tmp/telegram-bot/tg/interface.c:1935: undefined reference to
json_object'
/tmp/telegram-bot/tg/interface.c:1936: undefined reference to json_string' objs/interface.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/interface.o: In function
fail_interface':
/tmp/telegram-bot/tg/interface.c:1937: undefined reference to json_integer' objs/interface.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/interface.o: In function
fail_interface':
/tmp/telegram-bot/tg/interface.c:1938: undefined reference to json_string' objs/interface.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/interface.o: In function
fail_interface':
/tmp/telegram-bot/tg/interface.c:1939: undefined reference to json_dumps' objs/interface.o: In function
json_decref':
/usr/include/jansson.h:112: undefined reference to json_delete' objs/interface.o: In function
print_success':
/tmp/telegram-bot/tg/interface.c:1955: undefined reference to json_object' /tmp/telegram-bot/tg/interface.c:1956: undefined reference to
json_string'
objs/interface.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/interface.o: In function print_success': /tmp/telegram-bot/tg/interface.c:1957: undefined reference to
json_dumps'
objs/interface.o: In function json_decref': /usr/include/jansson.h:112: undefined reference to
json_delete'
objs/interface.o: In function print_filename_gw': /tmp/telegram-bot/tg/interface.c:2117: undefined reference to
json_object'
/tmp/telegram-bot/tg/interface.c:2118: undefined reference to json_string' objs/interface.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/interface.o: In function
print_filename_gw':
/tmp/telegram-bot/tg/interface.c:2119: undefined reference to json_string' objs/interface.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/interface.o: In function
print_filename_gw':
/tmp/telegram-bot/tg/interface.c:2120: undefined reference to json_dumps' objs/interface.o: In function
json_decref':
/usr/include/jansson.h:112: undefined reference to json_delete' objs/interface.o: In function
print_string_gw':
/tmp/telegram-bot/tg/interface.c:2142: undefined reference to json_object' /tmp/telegram-bot/tg/interface.c:2143: undefined reference to
json_string'
objs/interface.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/interface.o: In function print_string_gw': /tmp/telegram-bot/tg/interface.c:2144: undefined reference to
json_dumps'
objs/interface.o: In function json_decref': /usr/include/jansson.h:112: undefined reference to
json_delete'
objs/interface.o: In function print_card_gw': /tmp/telegram-bot/tg/interface.c:2798: undefined reference to
json_object'
/tmp/telegram-bot/tg/interface.c:2799: undefined reference to json_string' objs/interface.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/interface.o: In function
print_card_gw':
/tmp/telegram-bot/tg/interface.c:2800: undefined reference to json_dumps' objs/interface.o: In function
json_decref':
/usr/include/jansson.h:112: undefined reference to json_delete' objs/interface.o: In function
callback_extf':
/tmp/telegram-bot/tg/interface.c:2821: undefined reference to json_object' /tmp/telegram-bot/tg/interface.c:2822: undefined reference to
json_string'
objs/interface.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/interface.o: In function callback_extf': /tmp/telegram-bot/tg/interface.c:2823: undefined reference to
json_dumps'
objs/interface.o: In function json_decref': /usr/include/jansson.h:112: undefined reference to
json_delete'
objs/interface.o: In function print_user_list_gw': /tmp/telegram-bot/tg/interface.c:2065: undefined reference to
json_array'
objs/interface.o: In function json_array_append': /usr/include/jansson.h:196: undefined reference to
json_array_append_new'
objs/interface.o: In function print_user_list_gw': /tmp/telegram-bot/tg/interface.c:2071: undefined reference to
json_dumps'
objs/interface.o: In function json_decref': /usr/include/jansson.h:112: undefined reference to
json_delete'
objs/interface.o: In function print_user_gw': /tmp/telegram-bot/tg/interface.c:2095: undefined reference to
json_dumps'
objs/interface.o: In function json_decref': /usr/include/jansson.h:112: undefined reference to
json_delete'
objs/interface.o: In function print_user_gw': /tmp/telegram-bot/tg/interface.c:2095: undefined reference to
json_dumps'
objs/interface.o: In function print_dialog_list_gw': /tmp/telegram-bot/tg/interface.c:2345: undefined reference to
json_array'
objs/interface.o: In function json_array_append': /usr/include/jansson.h:196: undefined reference to
json_array_append_new'
objs/interface.o: In function print_dialog_list_gw': /tmp/telegram-bot/tg/interface.c:2351: undefined reference to
json_dumps'
objs/interface.o: In function json_decref': /usr/include/jansson.h:112: undefined reference to
json_delete'
objs/interface.o: In function print_secret_chat_gw': /tmp/telegram-bot/tg/interface.c:2304: undefined reference to
json_dumps'
objs/interface.o: In function json_decref': /usr/include/jansson.h:112: undefined reference to
json_delete'
objs/interface.o: In function print_secret_chat_gw': /tmp/telegram-bot/tg/interface.c:2304: undefined reference to
json_dumps'
objs/interface.o: In function print_read_list': /tmp/telegram-bot/tg/interface.c:2397: undefined reference to
json_dumps'
objs/interface.o: In function json_decref': /usr/include/jansson.h:112: undefined reference to
json_delete'
objs/interface.o: In function print_chat_info_gw': /tmp/telegram-bot/tg/interface.c:2207: undefined reference to
json_dumps'
objs/interface.o: In function json_decref': /usr/include/jansson.h:112: undefined reference to
json_delete'
objs/interface.o: In function print_chat_info_gw': /tmp/telegram-bot/tg/interface.c:2207: undefined reference to
json_dumps'
objs/interface.o: In function print_user_info_gw': /tmp/telegram-bot/tg/interface.c:2277: undefined reference to
json_dumps'
objs/interface.o: In function json_decref': /usr/include/jansson.h:112: undefined reference to
json_delete'
objs/interface.o: In function print_user_info_gw': /tmp/telegram-bot/tg/interface.c:2277: undefined reference to
json_dumps'
objs/interface.o: In function user_status_upd': /tmp/telegram-bot/tg/interface.c:2850: undefined reference to
json_dumps'
objs/interface.o: In function json_decref': /usr/include/jansson.h:112: undefined reference to
json_delete'
objs/interface.o: In function user_status_upd': /tmp/telegram-bot/tg/interface.c:2850: undefined reference to
json_dumps'
objs/interface.o: In function print_msg_list_gw': /tmp/telegram-bot/tg/interface.c:2010: undefined reference to
json_array'
objs/interface.o: In function json_array_append': /usr/include/jansson.h:196: undefined reference to
json_array_append_new'
objs/interface.o: In function print_msg_list_gw': /tmp/telegram-bot/tg/interface.c:2016: undefined reference to
json_dumps'
objs/interface.o: In function json_decref': /usr/include/jansson.h:112: undefined reference to
json_delete'
objs/interface.o: In function print_msg_gw': /tmp/telegram-bot/tg/interface.c:2039: undefined reference to
json_dumps'
objs/interface.o: In function json_decref': /usr/include/jansson.h:112: undefined reference to
json_delete'
objs/interface.o: In function print_msg_gw': /tmp/telegram-bot/tg/interface.c:2039: undefined reference to
json_dumps'
objs/interface.o: In function print_message_gw': /tmp/telegram-bot/tg/interface.c:2583: undefined reference to
json_dumps'
objs/interface.o: In function json_decref': /usr/include/jansson.h:112: undefined reference to
json_delete'
objs/interface.o: In function print_message_gw': /tmp/telegram-bot/tg/interface.c:2583: undefined reference to
json_dumps'
objs/json-tg.o: In function json_pack_peer_type': /tmp/telegram-bot/tg/json-tg.c:22: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_peer_type': /tmp/telegram-bot/tg/json-tg.c:28: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_peer_type': /tmp/telegram-bot/tg/json-tg.c:25: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_user': /tmp/telegram-bot/tg/json-tg.c:38: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_user': /tmp/telegram-bot/tg/json-tg.c:41: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_user': /tmp/telegram-bot/tg/json-tg.c:44: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_user': /tmp/telegram-bot/tg/json-tg.c:47: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_user': /tmp/telegram-bot/tg/json-tg.c:50: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_user': /tmp/telegram-bot/tg/json-tg.c:53: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_peer': /tmp/telegram-bot/tg/json-tg.c:88: undefined reference to
json_object'
/tmp/telegram-bot/tg/json-tg.c:89: undefined reference to json_integer' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_peer':
/tmp/telegram-bot/tg/json-tg.c:115: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_peer':
/tmp/telegram-bot/tg/json-tg.c:119: undefined reference to json_integer' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_peer':
/tmp/telegram-bot/tg/json-tg.c:111: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_peer':
/tmp/telegram-bot/tg/json-tg.c:117: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_chat':
/tmp/telegram-bot/tg/json-tg.c:59: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_chat': /tmp/telegram-bot/tg/json-tg.c:62: undefined reference to
json_integer'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_chat': /tmp/telegram-bot/tg/json-tg.c:64: undefined reference to
json_array'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_array_append': /usr/include/jansson.h:196: undefined reference to
json_array_append_new'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_updates':
/tmp/telegram-bot/tg/json-tg.c:138: undefined reference to json_array' /tmp/telegram-bot/tg/json-tg.c:183: undefined reference to
json_string'
objs/json-tg.o: In function json_array_append': /usr/include/jansson.h:196: undefined reference to
json_array_append_new'
objs/json-tg.o: In function json_pack_updates': /tmp/telegram-bot/tg/json-tg.c:144: undefined reference to
json_string'
objs/json-tg.o: In function json_array_append': /usr/include/jansson.h:196: undefined reference to
json_array_append_new'
objs/json-tg.o: In function json_pack_updates': /tmp/telegram-bot/tg/json-tg.c:141: undefined reference to
json_string'
objs/json-tg.o: In function json_array_append': /usr/include/jansson.h:196: undefined reference to
json_array_append_new'
objs/json-tg.o: In function json_pack_updates': /tmp/telegram-bot/tg/json-tg.c:150: undefined reference to
json_string'
objs/json-tg.o: In function json_array_append': /usr/include/jansson.h:196: undefined reference to
json_array_append_new'
objs/json-tg.o: In function json_pack_updates': /tmp/telegram-bot/tg/json-tg.c:147: undefined reference to
json_string'
objs/json-tg.o: In function json_array_append': /usr/include/jansson.h:196: undefined reference to
json_array_append_new'
objs/json-tg.o: In function json_pack_updates': /tmp/telegram-bot/tg/json-tg.c:153: undefined reference to
json_string'
objs/json-tg.o: In function json_array_append': /usr/include/jansson.h:196: undefined reference to
json_array_append_new'
objs/json-tg.o: In function json_pack_updates': /tmp/telegram-bot/tg/json-tg.c:156: undefined reference to
json_string'
objs/json-tg.o: In function json_array_append': /usr/include/jansson.h:196: undefined reference to
json_array_append_new'
objs/json-tg.o: In function json_pack_updates': /tmp/telegram-bot/tg/json-tg.c:162: undefined reference to
json_string'
objs/json-tg.o: In function json_array_append': /usr/include/jansson.h:196: undefined reference to
json_array_append_new'
objs/json-tg.o: In function json_pack_updates': /tmp/telegram-bot/tg/json-tg.c:159: undefined reference to
json_string'
objs/json-tg.o: In function json_array_append': /usr/include/jansson.h:196: undefined reference to
json_array_append_new'
objs/json-tg.o: In function json_pack_updates': /tmp/telegram-bot/tg/json-tg.c:171: undefined reference to
json_string'
objs/json-tg.o: In function json_array_append': /usr/include/jansson.h:196: undefined reference to
json_array_append_new'
objs/json-tg.o: In function json_pack_updates': /tmp/telegram-bot/tg/json-tg.c:168: undefined reference to
json_string'
objs/json-tg.o: In function json_array_append': /usr/include/jansson.h:196: undefined reference to
json_array_append_new'
objs/json-tg.o: In function json_pack_updates': /tmp/telegram-bot/tg/json-tg.c:165: undefined reference to
json_string'
objs/json-tg.o: In function json_array_append': /usr/include/jansson.h:196: undefined reference to
json_array_append_new'
objs/json-tg.o: In function json_pack_updates': /tmp/telegram-bot/tg/json-tg.c:174: undefined reference to
json_string'
objs/json-tg.o: In function json_array_append': /usr/include/jansson.h:196: undefined reference to
json_array_append_new'
objs/json-tg.o: In function json_pack_updates': /tmp/telegram-bot/tg/json-tg.c:180: undefined reference to
json_string'
objs/json-tg.o: In function json_array_append': /usr/include/jansson.h:196: undefined reference to
json_array_append_new'
objs/json-tg.o: In function json_pack_updates': /tmp/telegram-bot/tg/json-tg.c:177: undefined reference to
json_string'
objs/json-tg.o: In function json_array_append': /usr/include/jansson.h:196: undefined reference to
json_array_append_new'
objs/json-tg.o: In function json_pack_media': /tmp/telegram-bot/tg/json-tg.c:191: undefined reference to
json_object'
/tmp/telegram-bot/tg/json-tg.c:235: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_media':
/tmp/telegram-bot/tg/json-tg.c:236: undefined reference to json_real' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_media':
/tmp/telegram-bot/tg/json-tg.c:237: undefined reference to json_real' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_media':
/tmp/telegram-bot/tg/json-tg.c:239: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_media':
/tmp/telegram-bot/tg/json-tg.c:242: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_media':
/tmp/telegram-bot/tg/json-tg.c:245: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_media':
/tmp/telegram-bot/tg/json-tg.c:248: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_media':
/tmp/telegram-bot/tg/json-tg.c:195: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_media':
/tmp/telegram-bot/tg/json-tg.c:197: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_media':
/tmp/telegram-bot/tg/json-tg.c:202: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_media':
/tmp/telegram-bot/tg/json-tg.c:208: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_media':
/tmp/telegram-bot/tg/json-tg.c:209: undefined reference to json_real' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_media':
/tmp/telegram-bot/tg/json-tg.c:210: undefined reference to json_real' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_media':
/tmp/telegram-bot/tg/json-tg.c:213: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_media':
/tmp/telegram-bot/tg/json-tg.c:214: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_media':
/tmp/telegram-bot/tg/json-tg.c:215: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_media':
/tmp/telegram-bot/tg/json-tg.c:216: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_media':
/tmp/telegram-bot/tg/json-tg.c:217: undefined reference to json_integer' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_media':
/tmp/telegram-bot/tg/json-tg.c:205: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_media':
/tmp/telegram-bot/tg/json-tg.c:220: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_media':
/tmp/telegram-bot/tg/json-tg.c:222: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_media':
/tmp/telegram-bot/tg/json-tg.c:225: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_media':
/tmp/telegram-bot/tg/json-tg.c:228: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_media':
/tmp/telegram-bot/tg/json-tg.c:231: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_media':
/tmp/telegram-bot/tg/json-tg.c:252: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_typing':
/tmp/telegram-bot/tg/json-tg.c:258: undefined reference to json_object' /tmp/telegram-bot/tg/json-tg.c:288: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_typing': /tmp/telegram-bot/tg/json-tg.c:291: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_typing': /tmp/telegram-bot/tg/json-tg.c:261: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_typing': /tmp/telegram-bot/tg/json-tg.c:264: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_typing': /tmp/telegram-bot/tg/json-tg.c:267: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_typing': /tmp/telegram-bot/tg/json-tg.c:270: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_typing': /tmp/telegram-bot/tg/json-tg.c:273: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_typing': /tmp/telegram-bot/tg/json-tg.c:276: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_typing': /tmp/telegram-bot/tg/json-tg.c:279: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_typing': /tmp/telegram-bot/tg/json-tg.c:282: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_typing': /tmp/telegram-bot/tg/json-tg.c:285: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_typing': /tmp/telegram-bot/tg/json-tg.c:294: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_service': /tmp/telegram-bot/tg/json-tg.c:301: undefined reference to
json_object'
/tmp/telegram-bot/tg/json-tg.c:372: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_service':
/tmp/telegram-bot/tg/json-tg.c:369: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_service':
/tmp/telegram-bot/tg/json-tg.c:378: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_service':
/tmp/telegram-bot/tg/json-tg.c:375: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_service':
/tmp/telegram-bot/tg/json-tg.c:366: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_service':
/tmp/telegram-bot/tg/json-tg.c:362: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_array_append':
/usr/include/jansson.h:196: undefined reference to json_array_append_new' objs/json-tg.o: In function
json_pack_service':
/tmp/telegram-bot/tg/json-tg.c:358: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_service':
/tmp/telegram-bot/tg/json-tg.c:359: undefined reference to json_integer' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_service':
/tmp/telegram-bot/tg/json-tg.c:355: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_service':
/tmp/telegram-bot/tg/json-tg.c:352: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_service':
/tmp/telegram-bot/tg/json-tg.c:348: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_service':
/tmp/telegram-bot/tg/json-tg.c:349: undefined reference to json_integer' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_service':
/tmp/telegram-bot/tg/json-tg.c:344: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_service':
/tmp/telegram-bot/tg/json-tg.c:345: undefined reference to json_integer' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_service':
/tmp/telegram-bot/tg/json-tg.c:340: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_service':
/tmp/telegram-bot/tg/json-tg.c:341: undefined reference to json_integer' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_service':
/tmp/telegram-bot/tg/json-tg.c:336: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_service':
/tmp/telegram-bot/tg/json-tg.c:337: undefined reference to json_integer' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_service':
/tmp/telegram-bot/tg/json-tg.c:332: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_service': /tmp/telegram-bot/tg/json-tg.c:328: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_service':
/tmp/telegram-bot/tg/json-tg.c:324: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_service': /tmp/telegram-bot/tg/json-tg.c:321: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_service': /tmp/telegram-bot/tg/json-tg.c:318: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_service': /tmp/telegram-bot/tg/json-tg.c:314: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_service': /tmp/telegram-bot/tg/json-tg.c:315: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_service': /tmp/telegram-bot/tg/json-tg.c:310: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_service': /tmp/telegram-bot/tg/json-tg.c:311: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_service': /tmp/telegram-bot/tg/json-tg.c:307: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_service': /tmp/telegram-bot/tg/json-tg.c:304: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_service': /tmp/telegram-bot/tg/json-tg.c:381: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_message': /tmp/telegram-bot/tg/json-tg.c:388: undefined reference to
json_object'
/tmp/telegram-bot/tg/json-tg.c:389: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_message':
/tmp/telegram-bot/tg/json-tg.c:392: undefined reference to json_integer' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_message':
/tmp/telegram-bot/tg/json-tg.c:395: undefined reference to json_integer' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_message':
/tmp/telegram-bot/tg/json-tg.c:413: undefined reference to json_false' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_message':
/tmp/telegram-bot/tg/json-tg.c:414: undefined reference to json_true' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_message':
/tmp/telegram-bot/tg/json-tg.c:415: undefined reference to json_true' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_message':
/tmp/telegram-bot/tg/json-tg.c:416: undefined reference to json_integer' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_message':
/tmp/telegram-bot/tg/json-tg.c:420: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_message': /tmp/telegram-bot/tg/json-tg.c:407: undefined reference to
json_true'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_message': /tmp/telegram-bot/tg/json-tg.c:413: undefined reference to
json_true'
/tmp/telegram-bot/tg/json-tg.c:414: undefined reference to json_false' /tmp/telegram-bot/tg/json-tg.c:415: undefined reference to
json_false'
/tmp/telegram-bot/tg/json-tg.c:403: undefined reference to json_integer' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_message': /tmp/telegram-bot/tg/json-tg.c:399: undefined reference to
json_integer'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_message': /tmp/telegram-bot/tg/json-tg.c:426: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_read':
/tmp/telegram-bot/tg/json-tg.c:434: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_user_status':
/tmp/telegram-bot/tg/json-tg.c:446: undefined reference to json_object' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_user_status':
/tmp/telegram-bot/tg/json-tg.c:449: undefined reference to json_false' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_user_status':
/tmp/telegram-bot/tg/json-tg.c:450: undefined reference to json_integer' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_user_status':
/tmp/telegram-bot/tg/json-tg.c:464: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_user_status':
/tmp/telegram-bot/tg/json-tg.c:454: undefined reference to json_string' objs/json-tg.o: In function
json_object_set':
/usr/include/jansson.h:163: undefined reference to json_object_set_new' objs/json-tg.o: In function
json_pack_user_status':
/tmp/telegram-bot/tg/json-tg.c:449: undefined reference to json_true' /tmp/telegram-bot/tg/json-tg.c:456: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_user_status': /tmp/telegram-bot/tg/json-tg.c:458: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_user_status': /tmp/telegram-bot/tg/json-tg.c:460: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
objs/json-tg.o: In function json_pack_user_status': /tmp/telegram-bot/tg/json-tg.c:462: undefined reference to
json_string'
objs/json-tg.o: In function json_object_set': /usr/include/jansson.h:163: undefined reference to
json_object_set_new'
collect2: error: ld returned 1 exit status
Makefile:51: recipe for target 'bin/telegram-cli' failed
make: *\ [bin/telegram-cli] Error 1
Error. Exiting.
I run 'make' for cygwin result error: collect2: error: ld returned 1 exit status Makefile:51: recipe for target 'bin/telegram-cli' failed make: *\ [bin/telegram-cli] Error 1 Error. Exiting. before going without problems
@coffnix you need manually execute
cd tg
gcc objs/main.o objs/loop.o objs/interface.o objs/lua-tg.o objs/json-tg.o objs/python-tg.o objs/python-types.o libs/libtgl.a -L/usr/local/lib -L/usr/lib -L/usr/lib -rdynamic -ggdb -levent -lconfig -lz -levent -lm -lreadline -llua5.2 -ldl -lpython3.4m -lssl -lcrypto -ldl -lpthread -lutil -ljansson -o bin/telegram-cli
this caused by -ljansson
is missing
khsing, same error.... Take a look:
Data loaded from file data/google.lua
[warn] Epoll ADD(1) on fd 0 failed. Old events were 0; read change was 1 (add); write change was 0 (none): Operation not permitted telegram-cli: tgl/structures.c:997: tglf_fetch_message_media_new: Assertion `0' failed. SIGNAL received h./tg/bin/telegram-cli(print_backtrace+0x20)[0x46dbb0] ./tg/bin/telegram-cli(termination_signal_handler+0x64)[0x46dc34] /lib64/libc.so.6(+0x32a90)[0x7f7691c99a90] /lib64/libc.so.6(gsignal+0x37)[0x7f7691c99a17] /lib64/libc.so.6(abort+0x16a)[0x7f7691c9ae6a] /lib64/libc.so.6(+0x2ba8d)[0x7f7691c92a8d] /lib64/libc.so.6(+0x2bb42)[0x7f7691c92b42] ./tg/bin/telegram-cli(tglf_fetch_message_media_new+0x266)[0x4a6326] ./tg/bin/telegram-cli[0x4aae40] ./tg/bin/telegram-cli[0x4ac0ce] ./tg/bin/telegram-cli(bl_do_create_message_new+0x28e)[0x4ad47e] ./tg/bin/telegram-cli(tglf_fetch_message_new+0x155)[0x4a6ba5] ./tg/bin/telegram-cli(tglf_fetch_alloc_message_new+0x3d)[0x4a84bd] ./tg/bin/telegram-cli[0x49da35] ./tg/bin/telegram-cli(tglq_query_result+0x10f)[0x49729f] ./tg/bin/telegram-cli[0x49119e] ./tg/bin/telegram-cli[0x4b1deb] /usr/lib64/libevent-2.0.so.5(event_base_loop+0x748)[0x7f7693f17298] ./tg/bin/telegram-cli(net_loop+0xa4)[0x46f0b4] ./tg/bin/telegram-cli(loop+0x195)[0x470375] ./tg/bin/telegram-cli(main+0x2c4)[0x46c474] /lib64/libc.so.6(__libc_start_main+0xf0)[0x7f7691c86e20] ./tg/bin/telegram-cli(_start+0x29)[0x46c579]
@khsing After change line 997 on tgl/structures.c work fine here, Thanks :D
I'm getting the same error, from tgl/mtproto-utils.c:101: BN2ull: Assertion `0' failed
.. I'll try and make some edits and publish my results, but I'm not good at C :x
go to "tgl" directory and open "structures.c" file in a editor. go to line 997 and replace
assert(0);
with
M->type = tgl_message_media_unsupported;
break;
and recompile telegram-cli.
hey, i wanna ask.. how yuu recompile the file??? and i bit dificult to find tgl/structures.c where about.. can you guys give me where to look??
best regard
mayby you should update some of param of this file(sceme.tl). find message type and update scheme of that type.
latest scheme: https://github.com/telegramdesktop/tdesktop/blob/dev/Telegram/Resources/scheme.tl
and run this commands
make clean ./configure make
Hi when I run telegram-cli I receive this message :
assertion "0" failed: file "tgl/structures.c", line 997, function: tglf_fetch_message_media_new
I use telegram-cli with cygwin. what is the problem?