You are not logged in.

#1 Yesterday 17:37:01

codeDude
Member
Registered: 2024-05-09
Posts: 4

[SOLVED] Conflict to build the OMEMO binary for Jabber.el

I'm following this documentation https://git.thanosapollo.org/emacs-jabber/ to build a binary for the OMEMO support of the jabber.el Emacs pluggin
So I ran

cd

to the plugin directory then I ran

make module

just like the documentation mentioned.

I got this error

make -C src
cc -fPIC -Wall -Wno-pointer-sign -Wno-unused-function -I. -shared -Wl,--no-undefined -o jabber-omemo-core.so jabber-omemo-core.c picomemo/omemo.c picomemo/hacl.c picomemo/mbedtls.c -ltfpsacrypto 
jabber-omemo-core.c:25:10: fatal error: mbedtls/gcm.h: No such file or directory
   25 | #include <mbedtls/gcm.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
picomemo/mbedtls.c:19:10: fatal error: mbedtls/aes.h: No such file or directory
   19 | #include <mbedtls/aes.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:46: jabber-omemo-core.so] Error 1
make[1]: *** [Makefile:57: do-module] Error 2
make: *** [Makefile:54: module] Error 2

FYI I ran the command.

pacman -Ql mbedtls | grep -E "gcm\.h|aes\.h"

the output is

mbedtls /usr/include/mbedtls/private/aes.h
mbedtls /usr/include/mbedtls/private/gcm.h

It seems the C headers are located in a place which is not expected for the jabber plugin.

What should I do?

Last edited by codeDude (Yesterday 18:55:34)

Offline

#2 Yesterday 17:48:39

loqs
Member
Registered: 2014-03-06
Posts: 19,154

Re: [SOLVED] Conflict to build the OMEMO binary for Jabber.el

codeDude wrote:

It seems the C headers are located in a place which is not expected for the jabber plugin.

Replace mbedtls with mbedtls3 which has the headers in the location the build expects or port the project to mebtls version 4 from version 3.

Offline

#3 Yesterday 18:54:49

codeDude
Member
Registered: 2024-05-09
Posts: 4

Re: [SOLVED] Conflict to build the OMEMO binary for Jabber.el

I've replaced mbedtls with mbedtls3
then I ran

make module

But a new error appear about it doesn't found some dependencies.
So I check where are the libs of mbedtls3 and I found the config path
So I ran

PKG_CONFIG_PATH=/usr/lib/mbedtls3/pkgconfig make module

The jabber-omemo-core.so file is present now and I jabber.el on emacs support OMEMO now.

Last edited by codeDude (Yesterday 18:56:17)

Offline

Board footer

Powered by FluxBB