Saluton!

On Сб, 2022-02-12 at 04:54 +0100, Alexandre François Garreau wrote:
> /usr/bin/ld: 
> CMakeFiles/Telegram.dir/SourceFiles/media/view/media_view_playback_progress.cpp.o:
>  error adding symbols: Eraro de en-eligo
> collect2: error: ld returned 1 exit status
This means in Esperanto "Input/output error". You might have ran into
hardware troubles. Check dmesg output.

I would recommend you to rebuild the package with no debug info if you
are not going to run Telegram Desktop under GDB. For this define the
following environment variable before running builder.

   export DEB_CXXFLAGS_STRIP="-g"

Or you can do the opposite and override ApiId and ApiHash in already
built app. Here is an example of debugging session.

   $ gdb -silent telegram-desktop
   (gdb) break MTPauth_sendCode
   (gdb) run
   (gdb) set api_id_.v = 12834
   (gdb) call (void)strcpy((char*)api_hash_.v.d + api_hash_.v.d.offset, 
"c84d9229db1d6be95c067b02b126352c")
   (gdb) detach

To check what api_hash_.v.d stands for, see at QArrayData sources.

   
https://sources.debian.org/src/qtbase-opensource-src/5.15.2%2Bdfsg-9/src/corelib/tools/qarraydata.h/#L61

This is a rather tough way to override keys. Maybe some more convenient
way is needed.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to