?>/script>'; } ?> Compilar telegram en OpenWRT Widgets Magazine

Autor Tema: Compilar telegram en OpenWRT  (Leído 19053 veces)

0 Usuarios y 1 Visitante están viendo este tema.

vk496

  • Visitante
Re: Re: Compilar telegram en OpenWRT
« Respuesta #20 en: 31-08-2015, 21:05 (Lunes) »
Por lo que parece, el error aparece al verificarse la condición
Código: [Seleccionar]
if (skip_type_any (TYPE_TO_PARAM (binlog_update)) < 0) {(línea 932 del fuente https://github.com/vysheng/tgl/blob/master/binlog.c)



Me descargo el código (1745 líneas, brrr) y le echo un vistazo, a ver de qué va.

Saludos.
Yo esta tarde abro un issue en el github... A ver si cae un rayo de luz

Por mi parte... Espero que no sea lo que dice @dolfet15.

Se me hace raro pensar que en MIPS no se pueda usar malloc()...

Yo tengo el telegram-cli en la Raspberry... Y es una gozada lo que ofrece...

Salu2


raphik

  • Visitante
Re: Compilar telegram en OpenWRT
« Respuesta #21 en: 31-08-2015, 21:37 (Lunes) »
En https://github.com/vysheng/tg/issues/213, pone  
Citar
I've made OpenWrt package and it's works as expected on Asus RT-N66U (256MB RAM). GCC 4.6.4, uClibc 0.9.32, MIPSEL.

Y la arquitectura del Asus RT-N66U es MIPS (http://wiki.openwrt.org/toh/asus/rt-n66u), así que por ahí tranquilo.

Saludos.

« Última modificación: 10-09-2015, 10:12 (Jueves) por raphik »

Desconectado jar229

  • Moderador
  • *
  • Mensajes: 4607
Re: Compilar telegram en OpenWRT
« Respuesta #22 en: 02-09-2015, 13:29 (Miércoles) »
Ánimo que seguro que lo conseguís  >:(


vk496

  • Visitante
Re: Compilar telegram en OpenWRT
« Respuesta #23 en: 03-09-2015, 18:47 (Jueves) »
He intentado hacer el mismo proceso sobre un buildroot de Barrier Braker, pero el resultado es el mismo.

Por lo visto, habrá que debugear la aplicación para ver que es lo que falla...

Salu2


Desconectado jar229

  • Moderador
  • *
  • Mensajes: 4607
Re: Compilar telegram en OpenWRT
« Respuesta #24 en: 03-09-2015, 20:49 (Jueves) »
Igual digo una tontería pero ... y si la compilación la hicieráis directamente en una máquina mips (https://foro.seguridadwireless.net/openwrt/%28nuevo%29-mldonkey-3-1-5-%28mips%29/) ??  ^-^

Si necesitáis la máquina virtual, busco mis notas y os digo de dónde la baje  ;)


raphik

  • Visitante
Re: Compilar telegram en OpenWRT
« Respuesta #25 en: 04-09-2015, 15:02 (Viernes) »
Strace detecta algunas inconsistencias en nombres de bibliotecas compartidas, que se corrigen fácil y automáticamente desde la línea de comandos con la herramienta "ldconfig" (hay que instalar el paquete del mismo nombre). Una vez arreglado, le he vuelto a pasar el depurador y no consigo encontrar más errores. Sin embargo, el telegram-cli continúa fallando igual. Para quien quiera echarle un vistazo, éste es el resultado de la segunda pasada del strace.

strace -ttT -o debug.txt telegram-cli -U root -k /etc/telegram-cli/tg-server.pub
Citar
07:55:48.216416 execve("/usr/bin/telegram-cli", ["telegram-cli", "-U", "root", "-k", "/etc/telegram-cli/tg-server.pub"], [/* 12 vars */]) = 0 <0.003362>
07:55:48.250918 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0x77604000 <0.000115>
07:55:48.280046 stat("/etc/ld.so.cache", {st_mode=S_IFREG|0644, st_size=2927, ...}) = 0 <0.000118>
07:55:48.308963 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 <0.000133>
07:55:48.335077 mmap(NULL, 2927, PROT_READ, MAP_SHARED, 3, 0) = 0x77600000 <0.000358>
07:55:48.360281 close(3)                = 0 <0.000081>
07:55:48.385712 open("/usr/lib/libevent-2.0.so.5", O_RDONLY) = 3 <0.000164>
07:55:48.411464 fstat(3, {st_mode=S_IFREG|0755, st_size=243896, ...}) = 0 <0.000084>
07:55:48.438236 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0x77601000 <0.000105>
07:55:48.464915 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0u\20\0\0\0004"..., 4096) = 4096 <0.000327>
07:55:48.492055 mmap(NULL, 311296, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x775a0000 <0.000174>
07:55:48.518591 mmap(0x775a0000, 238388, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x775a0000 <0.000625>
07:55:48.545912 mmap(0x775eb000, 2232, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x3b000) = 0x775eb000 <0.000299>
07:55:48.570871 close(3)                = 0 <0.000323>
07:55:48.597368 munmap(0x77601000, 4096) = 0 <0.000283>
07:55:48.622508 open("/usr/lib/libjansson.so.4", O_RDONLY) = 3 <0.000165>
07:55:48.648980 fstat(3, {st_mode=S_IFREG|0755, st_size=41696, ...}) = 0 <0.000085>
07:55:48.676078 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0x77601000 <0.000104>
07:55:48.703052 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0\24\220\0\0\0004"..., 4096) = 4096 <0.000320>
07:55:48.729874 mmap(NULL, 110592, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x77585000 <0.000104>
07:55:48.755954 mmap(0x77585000, 41076, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x77585000 <0.000338>
07:55:48.780892 mmap(0x7759f000, 736, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xa000) = 0x7759f000 <0.000293>
07:55:48.807663 close(3)                = 0 <0.000079>
07:55:48.834273 munmap(0x77601000, 4096) = 0 <0.000277>
07:55:48.861030 open("/usr/lib/libconfig.so.9", O_RDONLY) = 3 <0.000162>
07:55:48.887742 fstat(3, {st_mode=S_IFREG|0755, st_size=38372, ...}) = 0 <0.000088>
07:55:48.915274 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0x77601000 <0.000105>
07:55:48.941393 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0\35`\0\0\0004"..., 4096) = 4096 <0.000325>
07:55:48.966993 mmap(NULL, 106496, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7756b000 <0.000104>
07:55:48.991762 mmap(0x7756b000, 37876, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x7756b000 <0.000311>
07:55:49.018753 mmap(0x77584000, 1508, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x9000) = 0x77584000 <0.000612>
07:55:49.044369 close(3)                = 0 <0.000080>
07:55:49.070987 munmap(0x77601000, 4096) = 0 <0.000274>
07:55:49.099268 open("/usr/lib/libz.so.1", O_RDONLY) = 3 <0.000164>
07:55:49.124818 fstat(3, {st_mode=S_IFREG|0755, st_size=74356, ...}) = 0 <0.000085>
07:55:49.150192 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0x77601000 <0.000105>
07:55:49.177044 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0\23\200\0\0\0004"..., 4096) = 4096 <0.000658>
07:55:49.203778 mmap(NULL, 143360, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x77548000 <0.000106>
07:55:49.228518 mmap(0x77548000, 73816, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x77548000 <0.000405>
07:55:49.255147 mmap(0x7756a000, 628, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x12000) = 0x7756a000 <0.000312>
07:55:49.283144 close(3)                = 0 <0.000080>
07:55:49.310237 munmap(0x77601000, 4096) = 0 <0.000278>
07:55:49.336236 open("/lib/libm.so.0", O_RDONLY) = 3 <0.000157>
07:55:49.361965 fstat(3, {st_mode=S_IFREG|0755, st_size=90048, ...}) = 0 <0.000084>
07:55:49.438990 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0x77601000 <0.000106>
07:55:49.465361 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0\22\360\0\0\0004"..., 4096) = 4096 <0.000321>
07:55:49.493563 mmap(NULL, 155648, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x77522000 <0.000106>
07:55:49.520902 mmap(0x77522000, 89560, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x77522000 <0.000314>
07:55:49.548373 mmap(0x77547000, 4032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x15000) = 0x77547000 <0.000399>
07:55:49.573458 close(3)                = 0 <0.000076>
07:55:49.596633 munmap(0x77601000, 4096) = 0 <0.000574>
07:55:49.624216 open("/usr/lib/libncursesw.so.5", O_RDONLY) = 3 <0.000166>
07:55:49.650435 fstat(3, {st_mode=S_IFREG|0755, st_size=237712, ...}) = 0 <0.000087>
07:55:49.678392 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0x77601000 <0.000107>
07:55:49.704971 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0\215\240\0\0\0004"..., 4096) = 4096 <0.000321>
07:55:49.732688 mmap(NULL, 307200, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x774d7000 <0.000106>
07:55:49.759082 mmap(0x774d7000, 229424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x774d7000 <0.000345>
07:55:49.782855 mmap(0x7751f000, 8336, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x38000) = 0x7751f000 <0.000297>
07:55:49.809386 close(3)                = 0 <0.000082>
07:55:49.834548 munmap(0x77601000, 4096) = 0 <0.000280>
07:55:49.860748 open("/usr/lib/libreadline.so.6", O_RDONLY) = 3 <0.000164>
07:55:49.887322 fstat(3, {st_mode=S_IFREG|0755, st_size=224728, ...}) = 0 <0.000086>
07:55:49.914478 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0x77601000 <0.000113>
07:55:49.941281 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0\246`\0\0\0004"..., 4096) = 4096 <0.000335>
07:55:49.967375 mmap(NULL, 294912, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7748f000 <0.000112>
07:55:49.992299 mmap(0x7748f000, 207624, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x7748f000 <0.000309>
07:55:50.017925 mmap(0x774d2000, 15832, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x33000) = 0x774d2000 <0.000604>
07:55:50.045104 mmap(0x774d6000, 2416, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x774d6000 <0.000281>
07:55:50.072055 close(3)                = 0 <0.000080>
07:55:50.098007 munmap(0x77601000, 4096) = 0 <0.000684>
07:55:50.124688 open("/usr/lib/liblua.so.5.1.5", O_RDONLY) = 3 <0.000138>
07:55:50.152587 fstat(3, {st_mode=S_IFREG|0644, st_size=175492, ...}) = 0 <0.000085>
07:55:50.178030 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0x77601000 <0.000105>
07:55:50.203468 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0007P\0\0\0004"..., 4096) = 4096 <0.000588>
07:55:50.230620 mmap(NULL, 241664, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x77454000 <0.000109>
07:55:50.257240 mmap(0x77454000, 171332, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x77454000 <0.000323>
07:55:50.284434 mmap(0x7748e000, 3460, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2a000) = 0x7748e000 <0.000306>
07:55:50.311396 close(3)                = 0 <0.000080>
07:55:50.338257 munmap(0x77601000, 4096) = 0 <0.000280>
07:55:50.363978 open("/usr/lib/libssl.so.1.0.0", O_RDONLY) = 3 <0.000139>
07:55:50.390018 fstat(3, {st_mode=S_IFREG|0644, st_size=316419, ...}) = 0 <0.000086>
07:55:50.415715 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0x77601000 <0.000105>
07:55:50.442521 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0\311\0\0\0\0004"..., 4096) = 4096 <0.000322>
07:55:50.469603 mmap(NULL, 385024, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x773f6000 <0.000107>
07:55:50.496059 mmap(0x773f6000, 297916, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x773f6000 <0.000318>
07:55:50.521858 mmap(0x7744f000, 17411, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x49000) = 0x7744f000 <0.000316>
07:55:50.599735 close(3)                = 0 <0.000081>
07:55:50.624680 munmap(0x77601000, 4096) = 0 <0.000272>
07:55:50.652076 open("/usr/lib/libcrypto.so.1.0.0", O_RDONLY) = 3 <0.000137>
07:55:50.678799 fstat(3, {st_mode=S_IFREG|0644, st_size=1400412, ...}) = 0 <0.000085>
07:55:50.705770 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0x77601000 <0.000105>
07:55:50.730246 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\3`\340\0\0\0004"..., 4096) = 4096 <0.000328>
07:55:50.755466 mmap(NULL, 1470464, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7728f000 <0.000110>
07:55:50.782675 mmap(0x7728f000, 1329264, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x7728f000 <0.000344>
07:55:50.809724 mmap(0x773e3000, 73308, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x144000) = 0x773e3000 <0.000304>
07:55:50.837460 mmap(0x773f5000, 4064, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x773f5000 <0.000285>
07:55:50.865156 close(3)                = 0 <0.000079>
07:55:50.893002 munmap(0x77601000, 4096) = 0 <0.000282>
07:55:50.918800 open("/lib/libdl.so.0", O_RDONLY) = 3 <0.000155>
07:55:50.942177 fstat(3, {st_mode=S_IFREG|0755, st_size=12504, ...}) = 0 <0.000084>
07:55:50.969119 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0x77601000 <0.000106>
07:55:50.995495 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0\n\220\0\0\0004"..., 4096) = 4096 <0.000329>
07:55:51.023079 mmap(NULL, 81920, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7727b000 <0.000108>
07:55:51.050310 mmap(0x7727b000, 9392, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x7727b000 <0.000621>
07:55:51.078042 mmap(0x7728d000, 4312, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2000) = 0x7728d000 <0.000302>
07:55:51.105961 close(3)                = 0 <0.000084>
07:55:51.129696 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0x775ff000 <0.000106>
07:55:51.155003 munmap(0x77601000, 4096) = 0 <0.000282>
07:55:51.180724 open("/lib/libpthread.so.0", O_RDONLY) = 3 <0.000160>
07:55:51.207078 fstat(3, {st_mode=S_IFREG|0755, st_size=78652, ...}) = 0 <0.000085>
07:55:51.234356 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0x77601000 <0.000431>
07:55:51.261187 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0?\220\0\0\0004"..., 4096) = 4096 <0.000595>
07:55:51.289941 mmap(NULL, 155648, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x77255000 <0.000110>
07:55:51.316377 mmap(0x77255000, 74548, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x77255000 <0.000342>
07:55:51.340244 mmap(0x77277000, 4924, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x12000) = 0x77277000 <0.000428>
07:55:51.366680 mmap(0x77279000, 5216, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x77279000 <0.000475>
07:55:51.392753 close(3)                = 0 <0.000077>
07:55:51.419265 munmap(0x77601000, 4096) = 0 <0.000273>
07:55:51.445889 open("/lib/libutil.so.0", O_RDONLY) = 3 <0.000267>
07:55:51.472685 fstat(3, {st_mode=S_IFREG|0755, st_size=4044, ...}) = 0 <0.000275>
07:55:51.500160 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0x77601000 <0.000114>
07:55:51.525055 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0\7\0\0\0\0004"..., 4096) = 4044 <0.000326>
07:55:51.551278 mmap(NULL, 69632, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x77244000 <0.000111>
07:55:51.576636 mmap(0x77244000, 3916, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x77244000 <0.000312>
07:55:51.604148 mmap(0x77254000, 4044, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x77254000 <0.000396>
07:55:51.631594 close(3)                = 0 <0.000085>
07:55:51.658457 munmap(0x77601000, 4096) = 0 <0.000289>
07:55:51.685384 open("/lib/libgcc_s.so.1", O_RDONLY) = 3 <0.000250>
07:55:51.711664 fstat(3, {st_mode=S_IFREG|0644, st_size=79096, ...}) = 0 <0.000087>
07:55:51.788169 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0x77601000 <0.000105>
07:55:51.815429 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0006\340\0\0\0004"..., 4096) = 4096 <0.000334>
07:55:51.843084 mmap(NULL, 147456, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x77220000 <0.000110>
07:55:51.870567 mmap(0x77220000, 78716, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x77220000 <0.000316>
07:55:51.898074 mmap(0x77243000, 1272, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x13000) = 0x77243000 <0.000296>
07:55:51.923742 close(3)                = 0 <0.000079>
07:55:51.947143 munmap(0x77601000, 4096) = 0 <0.000276>
07:55:51.973039 open("/lib/libc.so.0", O_RDONLY) = 3 <0.000416>
07:55:52.000230 fstat(3, {st_mode=S_IFREG|0755, st_size=359596, ...}) = 0 <0.000084>
07:55:52.027908 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0x77601000 <0.000104>
07:55:52.055023 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0\235\0\0\0\0004"..., 4096) = 4096 <0.000328>
07:55:52.083077 mmap(NULL, 446464, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x771b3000 <0.000108>
07:55:52.108897 mmap(0x771b3000, 352768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x771b3000 <0.000357>
07:55:52.132849 mmap(0x77219000, 7340, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x56000) = 0x77219000 <0.000322>
07:55:52.159354 mmap(0x7721b000, 17508, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7721b000 <0.000312>
07:55:52.187242 close(3)                = 0 <0.000080>
07:55:52.214014 munmap(0x77601000, 4096) = 0 <0.000587>
07:55:52.241119 open("/lib/libgcc_s.so.1", O_RDONLY) = 3 <0.000134>
07:55:52.267968 fstat(3, {st_mode=S_IFREG|0644, st_size=79096, ...}) = 0 <0.000086>
07:55:52.294977 close(3)                = 0 <0.000105>
07:55:52.319313 open("/lib/libc.so.0", O_RDONLY) = 3 <0.000155>
07:55:52.343532 fstat(3, {st_mode=S_IFREG|0755, st_size=359596, ...}) = 0 <0.000086>
07:55:52.368986 close(3)                = 0 <0.000221>
07:55:52.395780 open("/lib/libm.so.0", O_RDONLY) = 3 <0.000157>
07:55:52.422236 fstat(3, {st_mode=S_IFREG|0755, st_size=90048, ...}) = 0 <0.000086>
07:55:52.450052 close(3)                = 0 <0.000106>
07:55:52.477226 open("/lib/libgcc_s.so.1", O_RDONLY) = 3 <0.000132>
07:55:52.503862 fstat(3, {st_mode=S_IFREG|0644, st_size=79096, ...}) = 0 <0.000086>
07:55:52.528678 close(3)                = 0 <0.000187>
07:55:52.553179 open("/lib/libc.so.0", O_RDONLY) = 3 <0.000418>
07:55:52.580089 fstat(3, {st_mode=S_IFREG|0755, st_size=359596, ...}) = 0 <0.000086>
07:55:52.608107 close(3)                = 0 <0.000106>
07:55:52.638279 open("/lib/libgcc_s.so.1", O_RDONLY) = 3 <0.000133>
07:55:52.664184 fstat(3, {st_mode=S_IFREG|0644, st_size=79096, ...}) = 0 <0.000086>
07:55:52.691451 close(3)                = 0 <0.000106>
07:55:52.716511 open("/lib/libc.so.0", O_RDONLY) = 3 <0.000159>
07:55:52.741858 fstat(3, {st_mode=S_IFREG|0755, st_size=359596, ...}) = 0 <0.000086>
07:55:52.769305 close(3)                = 0 <0.000205>
07:55:52.795108 open("/lib/libc.so.0", O_RDONLY) = 3 <0.000157>
07:55:52.820860 fstat(3, {st_mode=S_IFREG|0755, st_size=359596, ...}) = 0 <0.000085>
07:55:52.848212 close(3)                = 0 <0.000107>
07:55:52.874285 open("/lib/libgcc_s.so.1", O_RDONLY) = 3 <0.000389>
07:55:52.901058 fstat(3, {st_mode=S_IFREG|0644, st_size=79096, ...}) = 0 <0.000084>
07:55:52.928043 close(3)                = 0 <0.000104>
07:55:52.951913 open("/lib/libc.so.0", O_RDONLY) = 3 <0.000159>
07:55:52.978298 fstat(3, {st_mode=S_IFREG|0755, st_size=359596, ...}) = 0 <0.000086>
07:55:53.005907 close(3)                = 0 <0.000215>
07:55:53.032833 open("/lib/libc.so.0", O_RDONLY) = 3 <0.000164>
07:55:53.058910 fstat(3, {st_mode=S_IFREG|0755, st_size=359596, ...}) = 0 <0.000332>
07:55:53.086517 close(3)                = 0 <0.000109>
07:55:53.113054 open("/lib/libgcc_s.so.1", O_RDONLY) = 3 <0.000131>
07:55:53.137645 fstat(3, {st_mode=S_IFREG|0644, st_size=79096, ...}) = 0 <0.000085>
07:55:53.165419 close(3)                = 0 <0.000111>
07:55:53.279195 open("/lib/libgcc_s.so.1", O_RDONLY) = 3 <0.000131>
07:55:53.306485 fstat(3, {st_mode=S_IFREG|0644, st_size=79096, ...}) = 0 <0.000085>
07:55:53.334001 close(3)                = 0 <0.000107>
07:55:53.359339 open("/lib/libc.so.0", O_RDONLY) = 3 <0.000156>
07:55:53.382185 fstat(3, {st_mode=S_IFREG|0755, st_size=359596, ...}) = 0 <0.000086>
07:55:53.408662 close(3)                = 0 <0.000105>
07:55:53.435310 open("/lib/libgcc_s.so.1", O_RDONLY) = 3 <0.000137>
07:55:53.462520 fstat(3, {st_mode=S_IFREG|0644, st_size=79096, ...}) = 0 <0.000084>
07:55:53.490126 close(3)                = 0 <0.000108>
07:55:53.516919 open("/lib/libc.so.0", O_RDONLY) = 3 <0.000272>
07:55:53.543047 fstat(3, {st_mode=S_IFREG|0755, st_size=359596, ...}) = 0 <0.000086>
07:55:53.568903 close(3)                = 0 <0.000108>
07:55:53.594580 open("/usr/lib/libcrypto.so.1.0.0", O_RDONLY) = 3 <0.000255>
07:55:53.621171 fstat(3, {st_mode=S_IFREG|0644, st_size=1400412, ...}) = 0 <0.000086>
07:55:53.648223 close(3)                = 0 <0.000105>
07:55:53.674238 open("/lib/libdl.so.0", O_RDONLY) = 3 <0.000157>
07:55:53.701409 fstat(3, {st_mode=S_IFREG|0755, st_size=12504, ...}) = 0 <0.000085>
07:55:53.729435 close(3)                = 0 <0.000108>
07:55:53.755515 open("/lib/libgcc_s.so.1", O_RDONLY) = 3 <0.000133>
07:55:53.782607 fstat(3, {st_mode=S_IFREG|0644, st_size=79096, ...}) = 0 <0.000085>
07:55:53.808229 close(3)                = 0 <0.000109>
07:55:53.834327 open("/lib/libc.so.0", O_RDONLY) = 3 <0.000246>
07:55:53.860854 fstat(3, {st_mode=S_IFREG|0755, st_size=359596, ...}) = 0 <0.000088>
07:55:53.888319 close(3)                = 0 <0.000107>
07:55:53.915104 open("/lib/libdl.so.0", O_RDONLY) = 3 <0.000271>
07:55:53.941487 fstat(3, {st_mode=S_IFREG|0755, st_size=12504, ...}) = 0 <0.000086>
07:55:53.969358 close(3)                = 0 <0.000108>
07:55:53.996101 open("/lib/libgcc_s.so.1", O_RDONLY) = 3 <0.000134>
07:55:54.023420 fstat(3, {st_mode=S_IFREG|0644, st_size=79096, ...}) = 0 <0.000086>
07:55:54.049610 close(3)                = 0 <0.000109>
07:55:54.076406 open("/lib/libc.so.0", O_RDONLY) = 3 <0.000156>
07:55:54.103137 fstat(3, {st_mode=S_IFREG|0755, st_size=359596, ...}) = 0 <0.000086>
07:55:54.131019 close(3)                = 0 <0.000107>
07:55:54.157633 open("/lib/libc.so.0", O_RDONLY) = 3 <0.000158>
07:55:54.184790 fstat(3, {st_mode=S_IFREG|0755, st_size=359596, ...}) = 0 <0.000086>
07:55:54.212788 close(3)                = 0 <0.000108>
07:55:54.237612 stat("/lib/ld-uClibc.so.0", {st_mode=S_IFREG|0755, st_size=28972, ...}) = 0 <0.000144>
07:55:54.265753 open("/lib/libdl.so.0", O_RDONLY) = 3 <0.000156>
07:55:54.292589 fstat(3, {st_mode=S_IFREG|0755, st_size=12504, ...}) = 0 <0.000086>
07:55:54.320317 close(3)                = 0 <0.000106>
07:55:54.347422 open("/lib/libc.so.0", O_RDONLY) = 3 <0.000156>
07:55:54.374210 fstat(3, {st_mode=S_IFREG|0755, st_size=359596, ...}) = 0 <0.000085>
07:55:54.402151 close(3)                = 0 <0.000108>
07:55:54.429133 open("/lib/libc.so.0", O_RDONLY) = 3 <0.000156>
07:55:54.455374 fstat(3, {st_mode=S_IFREG|0755, st_size=359596, ...}) = 0 <0.000085>
07:55:54.482652 close(3)                = 0 <0.000112>
07:55:54.509208 open("/lib/libc.so.0", O_RDONLY) = 3 <0.000166>
07:55:54.535470 fstat(3, {st_mode=S_IFREG|0755, st_size=359596, ...}) = 0 <0.000094>
07:55:54.563277 close(3)                = 0 <0.000108>
07:55:54.590295 munmap(0x77600000, 2927) = 0 <0.000302>
07:55:54.617278 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0x77601000 <0.000109>
07:55:54.645083 set_thread_area(0x77608440) = 0 <0.000076>
07:55:54.710621 mprotect(0x7728d000, 4096, PROT_READ) = 0 <0.000283>
07:55:54.737019 mprotect(0x77277000, 4096, PROT_READ) = 0 <0.000275>
07:55:54.764618 mprotect(0x77219000, 4096, PROT_READ) = 0 <0.000277>
07:55:54.791400 mprotect(0x77602000, 4096, PROT_READ) = 0 <0.000389>
07:55:54.819167 set_tid_address(0x77601068) = 1071 <0.000081>
07:55:54.845280 set_robust_list(0x77601070, 12) = 0 <0.000080>
07:55:54.871250 rt_sigaction(SIGRT_0, {0x8, [RT_77 RT_78 RT_80 RT_86 RT_87 RT_89 RT_90 RT_91 RT_93 RT_94 RT_95], SA_RESTART|SA_INTERRUPT|SA_NODEFER|SA_NOCLDWAIT|0x724ef64}, NULL, 16) = 0 <0.000081>
07:55:54.957307 rt_sigaction(SIGRT_1, {0x10000008, [RT_77 RT_78 RT_80 RT_86 RT_87 RT_89 RT_90 RT_91 RT_93 RT_94 RT_95], SA_RESTART|SA_INTERRUPT|SA_NODEFER|SA_NOCLDWAIT|0x724ee40}, NULL, 16) = 0 <0.000079>
07:55:54.986259 rt_sigprocmask(SIG_UNBLOCK, [RT_0 RT_1], NULL, 16) = 0 <0.000081>
07:55:55.013381 getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=2147483647}) = 0 <0.000187>
07:55:55.041268 ioctl(0, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0 <0.000093>
07:55:55.068856 ioctl(1, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0 <0.000092>
07:55:55.094870 rt_sigaction(SIGSEGV, {0x10000000, [], SA_NOCLDWAIT|0x44d7c0}, {SIG_DFL, [], 0}, 16) = 0 <0.000079>
07:55:55.122821 rt_sigaction(SIGIOT, {0x10000000, [], SA_NOCLDWAIT|0x44d7c0}, {SIG_DFL, [], 0}, 16) = 0 <0.000080>
07:55:55.151122 rt_sigaction(SIGBUS, {0x10000000, [], SA_NOCLDWAIT|0x44d7c0}, {SIG_DFL, [], 0}, 16) = 0 <0.000081>
07:55:55.179228 rt_sigaction(SIGQUIT, {0x10000000, [], SA_NOCLDWAIT|0x44d7c0}, {SIG_DFL, [], SA_NOCLDSTOP}, 16) = 0 <0.000257>
07:55:55.207790 rt_sigaction(SIGFPE, {0x10000000, [], SA_NOCLDWAIT|0x44d7c0}, {SIG_DFL, [], 0}, 16) = 0 <0.000079>
07:55:55.236483 rt_sigaction(SIGPIPE, {0x10000000, [], SA_NOCLDSTOP}, {SIG_DFL, [], 0}, 16) = 0 <0.000085>
07:55:55.264635 rt_sigaction(SIGTERM, {0x10000000, [], SA_NOCLDWAIT|0x44bcc0}, {SIG_DFL, [], 0}, 16) = 0 <0.000189>
07:55:55.292859 rt_sigaction(SIGINT, {0x10000000, [], SA_NOCLDWAIT|0x44bcc0}, {SIG_DFL, [], 0}, 16) = 0 <0.000078>
07:55:55.322677 brk(0)                  = 0xd0b4000 <0.000079>
07:55:55.347262 brk(0xd0b5000)          = 0xd0b5000 <0.000104>
07:55:55.375914 getuid()                = 0 <0.000075>
07:55:55.402628 open("/etc/passwd", O_RDONLY) = 3 <0.000405>
07:55:55.429067 ioctl(3, TIOCNXCL, 0x7f82bbc8) = -1 ENOTTY (Inappropriate ioctl for device) <0.000080>
07:55:55.455909 brk(0xd0b6000)          = 0xd0b6000 <0.000107>
07:55:55.482870 read(3, "root:x:0:0:root:/root:/bin/ash\nd"..., 4096) = 190 <0.000105>
07:55:55.510376 close(3)                = 0 <0.000107>
07:55:55.537308 setgroups(1,
  • )       = 0 <0.000087>

07:55:55.563519 setgid(0)               = 0 <0.000106>
07:55:55.590827 setuid(0)               = 0 <0.000106>
07:55:55.617258 getuid()                = 0 <0.000075>
07:55:55.644729 open("/etc/passwd", O_RDONLY) = 3 <0.000132>
07:55:55.671295 ioctl(3, TIOCNXCL, 0x7f82bbc8) = -1 ENOTTY (Inappropriate ioctl for device) <0.000079>
07:55:55.698316 read(3, "root:x:0:0:root:/root:/bin/ash\nd"..., 4096) = 190 <0.000101>
07:55:55.724849 close(3)                = 0 <0.000107>
07:55:55.752853 rt_sigaction(SIGUSR1, {0x10000000, [RT_69 RT_72 RT_74 RT_75 RT_76 RT_77 RT_78 RT_80 RT_82 RT_88 RT_89 RT_90 RT_91 RT_92 RT_93 RT_94 RT_95], SA_SIGINFO|SA_NOCLDWAIT|0x44d090}, {SIG_DFL, [RT_69 RT_72 RT_75 RT_76 RT_79 RT_81 RT_82 RT_85 RT_86 RT_87], 0}, 16) = 0 <0.000080>
07:55:55.783521 write(1, "Telegram-cli version 1.3.3, Copy"..., 429) = 429 <0.000590>
07:55:55.811997 write(1, "\n", 1)       = 1 <0.000653>
07:55:55.840608 write(1, "I: config dir=[/root/.telegram-c"..., 36) = 36 <0.000966>
07:55:55.868639 mkdir("/root/.telegram-cli", 0700) = -1 EEXIST (File exists) <0.000120>
07:55:55.896073 access("/root/.telegram-cli/config", R_OK) = 0 <0.000143>
07:55:55.923666 open("/root/.telegram-cli/config", O_RDONLY) = 3 <0.000236>
07:55:55.950002 ioctl(3, TIOCNXCL, 0x7f82bbd0) = -1 ENOTTY (Inappropriate ioctl for device) <0.000080>
07:55:55.978088 brk(0xd0ba000)          = 0xd0ba000 <0.000114>
07:55:56.005646 ioctl(3, TIOCNXCL, 0x7f82bab0) = -1 ENOTTY (Inappropriate ioctl for device) <0.000079>
07:55:56.032480 read(3, "# This is an empty config file\n#"..., 8192) = 65 <0.000101>
07:55:56.059627 read(3, "", 8127)       = 0 <0.000088>
07:55:56.086672 ioctl(3, TIOCNXCL, 0x7f82b228) = -1 ENOTTY (Inappropriate ioctl for device) <0.000080>
07:55:56.114135 close(3)                = 0 <0.000107>
07:55:56.140789 mkdir("/root/.telegram-cli", 0700) = -1 EEXIST (File exists) <0.000203>
07:55:56.218669 mkdir("/root/.telegram-cli/downloads", 0700) = -1 EEXIST (File exists) <0.000234>
07:55:56.246356 ioctl(0, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0 <0.000092>
07:55:56.272954 ioctl(1, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0 <0.000093>
07:55:56.300603 clock_gettime(CLOCK_MONOTONIC, {146, 380350831}) = 0 <0.000078>
07:55:56.326986 clock_gettime(CLOCK_MONOTONIC, {146, 406694951}) = 0 <0.000079>
07:55:56.353675 gettimeofday({1441612556, 366955}, NULL) = 0 <0.000076>
07:55:56.380734 getuid()                = 0 <0.000074>
07:55:56.407652 geteuid()               = 0 <0.000076>
07:55:56.433527 getgid()                = 0 <0.000075>
07:55:56.460239 getegid()               = 0 <0.000074>
07:55:56.487054 epoll_create(32000)     = 3 <0.000099>
07:55:56.513771 fcntl64(3, F_GETFD)     = 0 <0.000078>
07:55:56.539945 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 <0.000146>
07:55:56.566883 getuid()                = 0 <0.000080>
07:55:56.593461 geteuid()               = 0 <0.000075>
07:55:56.620623 getgid()                = 0 <0.000073>
07:55:56.647013 getegid()               = 0 <0.000177>
07:55:56.673352 socketpair(PF_LOCAL, SOCK_STREAM, 0, [4, 5]) = 0 <0.000155>
07:55:56.700314 fcntl64(4, F_GETFD)     = 0 <0.000325>
07:55:56.727761 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 <0.000081>
07:55:56.754718 fcntl64(5, F_GETFD)     = 0 <0.000078>
07:55:56.781566 fcntl64(5, F_SETFD, FD_CLOEXEC) = 0 <0.000079>
07:55:56.808219 fcntl64(4, F_GETFL)     = 0x2 (flags O_RDWR) <0.000079>
07:55:56.835491 fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0 <0.000081>
07:55:56.861954 fcntl64(5, F_GETFL)     = 0x2 (flags O_RDWR) <0.000079>
07:55:56.888410 fcntl64(5, F_SETFL, O_RDWR|O_NONBLOCK) = 0 <0.000079>
07:55:56.915215 getuid()                = 0 <0.000075>
07:55:56.941433 geteuid()               = 0 <0.000073>
07:55:56.967239 getgid()                = 0 <0.000075>
07:55:56.993719 getegid()               = 0 <0.000074>
07:55:57.020603 clock_gettime(CLOCK_REALTIME, {1441612557, 34158380}) = 0 <0.000079>
07:55:57.048698 getppid()               = 1068 <0.000079>
07:55:57.075394 open("/dev/random", O_RDONLY|O_NONBLOCK|O_LARGEFILE) = 6 <0.000134>
07:55:57.102711 read(6, "~J\t\v\240\332\250\34\nN\177\375\256\212\251hh=\371\235\312q\323\"", 32) = 24 <0.000383>
07:55:57.130344 close(6)                = 0 <0.000109>
07:55:57.157187 open("/dev/urandom", O_RDONLY|O_LARGEFILE) = 6 <0.000131>
07:55:57.183621 read(6, "\30q\253\230\214\21\35\203", 8) = 8 <0.000126>
07:55:57.210394 close(6)                = 0 <0.000109>
07:55:57.237590 open("/etc/telegram-cli/tg-server.pub", O_RDONLY|O_LARGEFILE) = 6 <0.000138>
07:55:57.264998 ioctl(6, TIOCNXCL, 0x7f82bbd0) = -1 ENOTTY (Inappropriate ioctl for device) <0.000080>
07:55:57.292302 read(6, "-----BEGIN RSA PUBLIC KEY-----\nM"..., 4096) = 427 <0.000112>
07:55:57.319950 close(6)                = 0 <0.000108>
07:55:57.347811 open("/etc/telegram-cli/server.pub", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) <0.000146>
07:55:57.375063 open("tg-server.pub", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) <0.000134>
07:55:57.402015 open("/root/.telegram-cli/auth", O_RDWR|O_CREAT, 0600) = 6 <0.000155>
07:55:57.428576 read(6, "", 4)          = 0 <0.000097>
07:55:57.455446 close(6)                = 0 <0.000098>
07:55:57.482927 write(1, "\33[37;1m *** Can not replay at 0 "..., 53) = 53 <0.000972>
07:55:57.511281 write(2, "telegram-cli", 12) = 12 <0.000654>
07:55:57.538576 write(2, ": ", 2)       = 2 <0.001100>
07:55:57.566612 write(2, "tgl/binlog.c", 12) = 12 <0.000648>
07:55:57.594571 write(2, ": ", 2)       = 2 <0.001101>
07:55:57.622782 write(2, "934", 3)      = 3 <0.001171>
07:55:57.650423 write(2, ": ", 2)       = 2 <0.000644>
07:55:57.677604 write(2, "replay_log_event", 16) = 16 <0.001587>
07:55:57.704811 write(2, ": Assertion `", 13) = 13 <0.000910>
07:55:57.733163 write(2, "0", 1)        = 1 <0.001128>
07:55:57.761991 write(2, "' failed.\n", 10) = 10 <0.000927>
07:55:57.789045 rt_sigprocmask(SIG_UNBLOCK, [IOT], NULL, 16) = 0 <0.000079>
07:55:57.852289 tgkill(1071, 1071, SIGIOT) = 0 <0.000089>
07:55:57.878609 --- SIGIOT {si_signo=SIGIOT, si_code=SI_TKILL, si_pid=1071, si_uid=0} ---
07:55:57.892941 write(1, "SIGNAL received\n\0\0", 18) = 18 <0.000952>
07:55:57.920944 write(1, "No libexec. Backtrace disabled\n\0", 32) = 32 <0.000693>
07:55:57.949010 write(1, "\33[0m", 4)   = 4 <0.001107>
07:55:57.976389 exit_group(1)           = ?
07:55:57.993578 +++ exited with 1 +++

Saludos.

« Última modificación: 10-09-2015, 10:13 (Jueves) por raphik »

raphik

  • Visitante
Re: Compilar telegram en OpenWRT
« Respuesta #26 en: 07-09-2015, 10:19 (Lunes) »
@vk496 ¿Por qué nuestra compilación tiene dependencias con las bibliotecas compartidas liblua y libgcc?

Citar
root@OpenWrt:~# ldd telegram-cli
   libevent-2.0.so.5 => /usr/lib/libevent-2.0.so.5 (0x77e58000)
   libjansson.so.4 => /usr/lib/libjansson.so.4 (0x77e3d000)
   libconfig.so.9 => /usr/lib/libconfig.so.9 (0x77e23000)
   libz.so.1 => /usr/lib/libz.so.1 (0x77e00000)
   libm.so.0 => /lib/libm.so.0 (0x77dda000)
   libncursesw.so.5 => /usr/lib/libncursesw.so.5 (0x77d8f000)
   libreadline.so.6 => /usr/lib/libreadline.so.6 (0x77d47000)
   liblua.so.5.1.5 => /usr/lib/liblua.so.5.1.5 (0x77d0c000)
   libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0x77cae000)
   libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0x77b47000)
   libdl.so.0 => /lib/libdl.so.0 (0x77b33000)
   libpthread.so.0 => /lib/libpthread.so.0 (0x77b0d000)
   libutil.so.0 => /lib/libutil.so.0 (0x77afc000)
   libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x77ad8000)
   libc.so.0 => /lib/libc.so.0 (0x77a6b000)
   ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x77ea4000)

Saludos.

« Última modificación: 10-09-2015, 10:14 (Jueves) por raphik »

vk496

  • Visitante
Re: Compilar telegram en OpenWRT
« Respuesta #27 en: 01-08-2017, 10:32 (Martes) »
Buenas,

Aunque haya pasado tiempo, me ha dado por ponerme con esto.

El problema principal es que no está pensado para arquitecturas Big Endian, cosa que estoy adaptando ahora mismo entre qemu, Netbeans, Wireshark y la documentación del protocolo MTProto.

https://github.com/vk496/tgl/tree/endian

Llevará un buen tiempo terminarlo, pero granito a grantio creo que puedo hacerlo.

Salu2


Desconectado Tki2000

  • Moderador
  • *
  • Mensajes: 2249
Re: Compilar telegram en OpenWRT
« Respuesta #28 en: 02-08-2017, 20:05 (Miércoles) »
Buenas,

Aunque haya pasado tiempo, me ha dado por ponerme con esto.

El problema principal es que no está pensado para arquitecturas Big Endian, cosa que estoy adaptando ahora mismo entre qemu, Netbeans, Wireshark y la documentación del protocolo MTProto.

https://github.com/vk496/tgl/tree/endian

Llevará un buen tiempo terminarlo, pero granito a grantio creo que puedo hacerlo.

Salu2

Las cosas buenas, siempre se hacen esperar.
Un cliente telegram en openwrt sería una pasada. Yo no utilizo el guasas ése, porque no coincido exactamente con sus políticas de datos, y su no autorización a utilizar sus APIs en PC. Así te pueden decir ellos cuándo tu teléfono se queda 'obsoleto', tras una actualización de su app.

Me congratulo de tus avances.


vk496

  • Visitante
Re: Re: Compilar telegram en OpenWRT
« Respuesta #29 en: 04-08-2017, 14:18 (Viernes) »
Buenas,

Aunque haya pasado tiempo, me ha dado por ponerme con esto.

El problema principal es que no está pensado para arquitecturas Big Endian, cosa que estoy adaptando ahora mismo entre qemu, Netbeans, Wireshark y la documentación del protocolo MTProto.

https://github.com/vk496/tgl/tree/endian

Llevará un buen tiempo terminarlo, pero granito a grantio creo que puedo hacerlo.

Salu2

Las cosas buenas, siempre se hacen esperar.
Un cliente telegram en openwrt sería una pasada. Yo no utilizo el guasas ése, porque no coincido exactamente con sus políticas de datos, y su no autorización a utilizar sus APIs en PC. Así te pueden decir ellos cuándo tu teléfono se queda 'obsoleto', tras una actualización de su app.

Me congratulo de tus avances.
Hace más de un año que tampoco lo uso, la gente con la que hablo tiene Telegram.

Respecto al progreso, por ahora estoy en la parte fácil. El protocolo MTProto no cifra en las primeras fases y es relativamente sencillo debugear.

Veremos qué pasa más adelante...

Salu2

Enviado desde mi Moto G4 Plus mediante Tapatalk



edudi

  • Visitante
Re: Compilar telegram en OpenWRT
« Respuesta #30 en: 30-11-2017, 21:36 (Jueves) »
Buenas, el otro día un compañero me habló de las API de telegram, ....y obviamente, se me despertó la curiosidad para OpenWRT (scripts, GPIO's, etc... envío y recepción en ambos sentidos, el bot desde el router al telegram del móvil como al revés)

Me he creado un bot y estoy empezando a probar, de momento las instrucciones de instalación van bien, me da el id de chat, pero aun no consigo recibir/enviar mensajes y cosas de esas, os dejo el link:

https://github.com/alexwbaule/telegramopenwrt


También he visto que por ssh hay info de que mediante JSON se pueden usar los bots de telegram, lo que va através de jq, lo cual no veo en los repositorios.

Lo típico, me gustaría poder ejecutar comandos que funcionen en ambas direcciones: encender un LED, relé, etc...

Un saludo

« Última modificación: 01-12-2017, 20:42 (Viernes) por edudi »

edudi

  • Visitante
Re: Compilar telegram en OpenWRT
« Respuesta #31 en: 01-12-2017, 20:21 (Viernes) »
Buenas, añado algo a lo anterior de importancia relevante a mi entender.

Les envío el comando por si lo quieren usar por SSH o scripts para notificaciones de un router/servidor/Raspi, etc al Telegram.... hay que hacerse un bot en Telegram e instalar el curl en el router/servidor:

curl -k -s -X POST https://api.telegram.org/bot[EL TOKEN DEL BOT]/sendMessage -d chat_id=[El Id_chat de tu usuario personal, no del bot] -d parse_mode=Markdown —data-urlencode text="Amigo, amigo, amigo"



Ideal para scripts, .....si se activa algo, por ejemplo si se abre una puerta que tenemos controlada por GPIO su apertura, que envíe una notificación al BOT al margen de las otras funciones que le hayamos añadido al propio script.

Seguiré tratando de hacer funcionar el envío de comandos desde Telegram al router, que lo compartí en el anterior mensaje y no consigo que vaya.


Para crear un bot en telegram, abran en Telegram un privado a este bot: BotFather

Para obtener el ID_Chat de usuario abran un privado a este bot: @get_id_bot          ó accedan a: https://api.telegram.org/bot[EL TOKEN DEL BOT]/getUpdates?offset=0

« Última modificación: 01-12-2017, 20:36 (Viernes) por edudi »