Seams to be a duplicate of https://sourceforge.net/p/mod-csrf/discussion/general/thread/17db72b6d4/ apxs -i -c mod_csrf.c -lcrypt Gives me: /usr/share/apr-1.0/build/libtool --mode=compile --tag=disable-static x86_64-linux-gnu-gcc -prefer-pic -pipe -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include -c -o mod_csrf.lo mod_csrf.c...
I figured out how to patch this according to this post (https://stackoverflow.com/questions/26345175/correct-way-to-free-allocate-the-context-in-the-openssl) Now I can compile the module but it don't seam to be installed. Anyways I attached the patched c file maybe you know how to continue with this.
apxs -i -c mod_csrf.c -lcrypt Gives me: /usr/share/apr-1.0/build/libtool --mode=compile --tag=disable-static x86_64-linux-gnu-gcc -prefer-pic -pipe -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include -c -o mod_csrf.lo mod_csrf.c && touch mod_csrf.slo libtool: compile: x86_64-linux-gnu-gcc -pipe -g -O2 -fstack-protector-strong...