Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Dec 2023 16:29:46 +0100
From:      Andrea Venturoli <ml@netfence.it>
To:        Rodrigo Osorio <ros@bebik.net>
Cc:        ports@freebsd.org
Subject:   Re: signal-cli not working anymore (help porting)
Message-ID:  <cca95ea9-f4a1-4fb8-993f-2f8bfbaf18d0@netfence.it>
In-Reply-To: <c97cdf2a-4ab4-4a41-a97f-81504bbcb372@bebik.net>
References:  <e3c9422d-268b-439c-b576-3bd3b75a7361@netfence.it> <447588a2-38b9-4644-ad38-c2822577c9f5@netfence.it> <baa9819c-6e6c-47d9-8011-5e39736ea54c@bebik.net> <c97cdf2a-4ab4-4a41-a97f-81504bbcb372@bebik.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cca95ea9-f4a1-4fb8-993f-2f8bfbaf18d0>