Package Details: telegram-cli-git r1357.3da0e4a-1

Git Clone URL: https://aur.archlinux.org/telegram-cli-git.git (read-only, click to copy)
Package Base: telegram-cli-git
Description: Telegram messenger CLI
Upstream URL: https://github.com/kenorb-contrib/tg
Licenses: GPL2
Conflicts: telegram-cli
Provides: telegram-cli
Submitter: dywedir
Maintainer: drrossum
Last Packager: drrossum
Votes: 147
Popularity: 0.78
First Submitted: 2015-08-18 12:14
Last Updated: 2020-06-18 11:23

Latest Comments

1 2 3 4 5 6 ... Next › Last »

doragasu commented on 2020-06-14 16:51

@annmuor: Worked like a charm, thanks!

annmuor commented on 2020-06-08 22:12

@doragasu just add

LDFLAGS="-Wl,--allow-multiple-definition"

to configure line in PKGBUILD

doragasu commented on 2020-06-06 18:27

Doesn't build:

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 -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -L/usr/local/lib -L/usr/lib -L/usr/lib -rdynamic -ggdb -levent -ljansson -lconfig -lz -levent -lreadline -llua5.3 -lm -ldl -lssl -lcrypto -lpthread -lutil -ldl -o bin/telegram-cli /usr/bin/ld: objs/loop.o:/tmp/makepkg/telegram-cli-git/src/telegram-cli-git/loop.c:77: multiple definition of `verbosity'; objs/main.o:/tmp/makepkg/telegram-cli-git/src/telegram-cli-git/main.c:93: first defined here /usr/bin/ld: objs/loop.o:/tmp/makepkg/telegram-cli-git/src/telegram-cli-git/loop.c:90: multiple definition of `register_mode'; objs/main.o:/tmp/makepkg/telegram-cli-git/src/telegram-cli-git/main.c:520: first defined here /usr/bin/ld: objs/loop.o:/tmp/makepkg/telegram-cli-git/src/telegram-cli-git/loop.c:392: multiple definition of `wait_dialog_list'; objs/main.o:/tmp/makepkg/telegram-cli-git/src/telegram-cli-git/main.c:522: first defined here /usr/bin/ld: objs/interface.o:/tmp/makepkg/telegram-cli-git/src/telegram-cli-git/interface.c:121: multiple definition of `disable_auto_accept'; objs/main.o:/tmp/makepkg/telegram-cli-git/src/telegram-cli-git/main.c:521: first defined here /usr/bin/ld: objs/interface.o:/tmp/makepkg/telegram-cli-git/src/telegram-cli-git/interface.c:122: multiple definition of `msg_num_mode'; objs/main.o:/tmp/makepkg/telegram-cli-git/src/telegram-cli-git/main.c:94: first defined here /usr/bin/ld: objs/interface.o:/tmp/makepkg/telegram-cli-git/src/telegram-cli-git/interface.c:123: multiple definition of `permanent_msg_id_mode'; objs/main.o:/tmp/makepkg/telegram-cli-git/src/telegram-cli-git/main.c:124: first defined here /usr/bin/ld: objs/interface.o:/tmp/makepkg/telegram-cli-git/src/telegram-cli-git/interface.c:124: multiple definition of `permanent_peer_id_mode'; objs/main.o:/tmp/makepkg/telegram-cli-git/src/telegram-cli-git/main.c:125: first defined here /usr/bin/ld: objs/interface.o:/tmp/makepkg/telegram-cli-git/src/telegram-cli-git/interface.c:125: multiple definition of `disable_colors'; objs/main.o:/tmp/makepkg/telegram-cli-git/src/telegram-cli-git/main.c:111: first defined here /usr/bin/ld: objs/interface.o:/tmp/makepkg/telegram-cli-git/src/telegram-cli-git/interface.c:135: multiple definition of `readline_active'; objs/loop.o:/tmp/makepkg/telegram-cli-git/src/telegram-cli-git/loop.c:390: first defined here collect2: error: ld returned 1 exit status make: *** [Makefile:60: bin/telegram-cli] Error 1 ==> ERROR: A failure occurred in build().

drrossum commented on 2020-02-13 11:00

Thanks for the suggestion. I updated the source to the fork by kenorb-contrib.

amo commented on 2020-02-12 21:43

As mentioned in this issue, there is a fork that is more up-to-date than the source used for this package. The sources for this package have not seen any commit in years. Maybe we can use the fork as source?

Quezo commented on 2018-10-19 08:30

In ./cofigure :

checking mach/mach.h usability... no checking mach/mach.h presence... no checking for mach/mach.h... no

In make :

gcc -I. -I. -I./tgl -g -O2 -I/usr/local/include -I/usr/include -I/usr/include -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/queries.d -MQ objs/queries.o -o objs/queries.o tgl/queries.c tgl/queries.c: In the function ‘_tgl_do_send_photo’: tgl/queries.c:2091:10: error: conversion between incompatible function types from ‘void ()(struct tgl_state , void , int, struct tgl_message )’ a ‘void ()(struct tgl_state , void , int)’ [-Werror=cast-function-type] ((void ()(struct tgl_state , void , int))callback) (TLS, callback_extra, 0); ^ tgl/queries.c:2108:10: error: conversion between incompatible function types from ‘void ()(struct tgl_state , void , int, struct tgl_message )’ a ‘void ()(struct tgl_state , void , int)’ [-Werror=cast-function-type] ((void ()(struct tgl_state , void , int))callback) (TLS, callback_extra, 0); ^ tgl/queries.c:2141:10: error: conversion between incompatible function types from ‘void ()(struct tgl_state , void , int, struct tgl_message )’ a ‘void ()(struct tgl_state , void , int)’ [-Werror=cast-function-type] ((void ()(struct tgl_state , void , int))callback) (TLS, callback_extra, 0); ^ cc1: All notices are treated as errors make: *** [Makefile.tgl:20: objs/queries.o] Error 1

figue commented on 2018-10-03 22:16

You should add this patch. Build fails otherwise:

https://github.com/vysheng/tg/pull/1483

Edit: Forgot to mention that I had to build with clang instead of gcc...

minextu commented on 2018-06-20 00:58

I got it working by replacing ./configure with ./configure CFLAGS="-w". Might not be the best solution, since this will ignore all compiler warnings

nobicycle commented on 2018-06-19 02:59

@hamidzr Thanks for your help, but:

Assuming a patch file called 'patch', how do I patch?

$telegram-cli-git/src/telegram-cli-git/tgl

$patch -p1 <patch

??

s13g3lb4um commented on 2018-06-18 20:15

@hamidzr

your solution dont work for me, i cant install this program