threerings / openvpn-auth-ldap

Implements username/password authentication via LDAP for OpenVPN 2.x.
Other
135 stars 62 forks source link

Compiling on Rhel8 - no Objective-C Compiler support ? #79

Open morgancoxuk opened 4 years ago

morgancoxuk commented 4 years ago

Hi.

Any way of compiling this on a rhel8 system ? As they dropped Objective-C Compiler support, there are no gcc Objective-C packages available.

zt-sv commented 3 years ago

Hi, You could add this repo:

[csi-gcc]
name=csi-gcc
baseurl=https://dl.cloudsmith.io/public/csi/gcc/rpm/el/8/$basearch
enabled=1
gpgkey=https://dl.cloudsmith.io/public/csi/gcc/cfg/gpg/gpg.7E04A007BA668C3C.key
gpgcheck=1

install gcc-objc package, which add Objective-C support for GCC. And compile :)

But, first you have to compile re2c package, which also missed on RHEL8.

I added a full solution into this Ansible role: https://github.com/kyl191/ansible-role-openvpn/pull/123

robert-scheck commented 3 years ago

I started working on getting openvpn-auth-ldap directly into EPEL 8, this also avoids the usage of (untrusted) third-party repositories.

robert-scheck commented 2 years ago

Meanwhile the openvpn-auth-ldap RPM package landed in EPEL 8 (including its build chain for those who would like to build the package on their own, however this needs #85 to be manually applied until it's merged).