Re: signal-cli not working anymore (help porting)

From: Andrea Venturoli <ml_at_netfence.it>
Date: Wed, 13 Dec 2023 15:29:46 UTC
On 12/12/23 23:13, Rodrigo Osorio wrote:
> Hi Andrea,

Hi.


> Find attached the quick patch if you wanna build it on your own.

Thanks for this.




> Feel free to test it.

However, it does not work.
E.g.
> % signal-cli -u +............. register
> WARN  Manager - Failed to call libsignal-client: /tmp/11770562555259415722libsignal_jni.so: /tmp/11770562555259415722libsignal_jni.so: mmap of data failed: Permission denied
> Missing required native library dependency: libsignal-client


Two things:

I see you put "JAVA_VERSION=   17+" in the makefile, but the project 
page on GitHub says you need "at least Java Runtime Environment (JRE) 21".
It compiles however, so maybe this is not the problem.

The real problem I think is the version mismatch with 
net-im/libsignal-client.
See
> https://github.com/AsamK/signal-cli/wiki/Provide-native-lib-for-libsignal

It says "Every signal-cli release requires a specific version of 
libsignal-client. The version number is a part of a 
libsignal-client-<VERSION>.jar filename in signal-cli's lib directory."

So, for signal-cli 0.12.6, libsignal-client 0.32.1 is needed.
That's why I was trying to upgrade libsignal-client before even 
attempting signal-cli.
(And I didn't succeed yet; see previous message).



You mentioned a patch for libsignal-client, but then posted one for 
signal-cli.
Do you have the one for libsignal-client too? If so, I'm willing to test.

  bye & Thanks
	av.