You are not logged in.
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
cdto the plugin directory then I ran
make modulejust 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 2FYI 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.hIt 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
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
I've replaced mbedtls with mbedtls3
then I ran
make moduleBut 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 moduleThe 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