imapfilter icon indicating copy to clipboard operation
imapfilter copied to clipboard

cannot compile imapfilter

Open Richie1710 opened this issue 3 years ago • 4 comments

I'm getting following error when I try to compile imapfilter with

openssl-devel-3.0.3-1.fc36.x86_64 lua-devel-5.4.4-1.fc36.x86_64 pcre2-devel-10.40-1.fc36.x86_64

[imapfilter@localhost imapfilter]$  make -j all
cd src && make all
make[1]: Verzeichnis „/home/imapfilter/imapfilter/src“ wird betreten
cc -o imapfilter   auth.o buffer.o cert.o core.o file.o imapfilter.o list.o log.o lua.o memory.o misc.o namespace.o pcre.o regexp.o request.o response.o session.o signal.o socket.o system.o -lm -ldl -llua -lpcre2-8 -lssl -lcrypto
/usr/bin/ld: cert.o: in function `get_cert':
cert.c:(.text+0x4a0): undefined reference to `SSL_get_peer_certificate'
/usr/bin/ld: pcre.o: in function `ifre_compile':
pcre.c:(.text+0x25c): undefined reference to `lua_newuserdata'
/usr/bin/ld: system.o: in function `ifsys_popen':
system.c:(.text+0x4da): undefined reference to `lua_newuserdata'
collect2: Fehler: ld gab 1 als Ende-Status zurück
make[1]: *** [Makefile:44: imapfilter] Fehler 1
make[1]: Verzeichnis „/home/imapfilter/imapfilter/src“ wird verlassen
make: *** [Makefile:2: all] Fehler 2

Richie1710 avatar Jun 15 '22 11:06 Richie1710

Seems that some functions were deprecated since OpenSSL 3.0.0, so I'll have a look and get the code up-to-date.

lefcha avatar Jun 23 '22 13:06 lefcha

@Richie1710 Can you try with the latest code from GitHub? https://github.com/lefcha/imapfilter/commit/e7a0b3ea466cee5967600ce6ef0f3811b1cd8eb6

lefcha avatar Jul 09 '22 19:07 lefcha

Ran into the same issue. Not working with this commit on alpine/openssl-dev-1.1.1q-r0

simbelmas avatar Jul 10 '22 00:07 simbelmas

Can you try again with the latest code? https://github.com/lefcha/imapfilter/commit/3194ae715977079542274b801b7cb3a11cbea4a8

lefcha avatar Jul 10 '22 07:07 lefcha