[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FreeBSD 10.3 ZXID 1.42 mod_auth_saml.so quick and easy



Dear list,

The version 1.42 Apache Httpd ZXID module installs easily from the 
command line like this.

[root@]# pkg install gmake # needed
[root@]# pkg install swig # may not be needed
alias swig=/usr/local/bin/swig2.0
alias make=/usr/local/bin/gmake
CC=" clang "; export CC
make TARGET=freebsd apachezxid
make TARGET=freebsd apachezxid_install

And the attached two patch files was created from zxidconf.c and 
platform.h. I have not tested the ports tree.

Best regards,

Jouni L.
--- zxidconf.c_orig	2017-03-26 17:31:50.438168000 +0300
+++ zxidconf.c	2017-03-26 17:32:11.568399000 +0300
@@ -37,7 +37,11 @@
 
 #include "platform.h"  /* needed on Win32 for pthread_mutex_lock() et al. */
 
+#ifndef __FreeBSD__
 #include <malloc.h>
+#else
+#include <stdlib.h>
+#endif
 #include <memory.h>
 #include <string.h>
 #include <stdlib.h>
--- platform.h_orig	2017-03-26 17:25:46.914468000 +0300
+++ platform.h	2017-03-26 17:26:00.836375000 +0300
@@ -8,6 +8,10 @@
 
 #include <stdlib.h>
 
+#ifdef __FreeBSD__
+#include <unistd.h>
+#endif
+
 #ifdef MINGW
 
 #include <winsock2.h>