Package Details: openvpn-auth-ldap 2.0.4-3

Git Clone URL: https://aur.archlinux.org/openvpn-auth-ldap.git (read-only, click to copy)
Package Base: openvpn-auth-ldap
Description: OpenVPN Auth via LDAP/AD plugin. RFC2307 support.
Upstream URL: https://github.com/threerings/openvpn-auth-ldap
Licenses: BSD
Submitter: k0ste
Maintainer: k0ste
Last Packager: k0ste
Votes: 1
Popularity: 0.000000
First Submitted: 2016-05-29 11:26 (UTC)
Last Updated: 2022-01-28 15:42 (UTC)

Latest Comments

k0ste commented on 2022-01-28 15:43 (UTC)

@micwoj92 CFLAG added as suggested in https://github.com/threerings/openvpn-auth-ldap/issues/78

micwoj92 commented on 2021-12-28 19:08 (UTC)

I've seen 2 problems with that PKGBUILD, same as @smoolak

TRObject.m:106:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
  106 |     for (Class superClass = selfClass; superClass != NULL; superClass = class_getSuperclass(superClass)) {
      |     ^~~
TRObject.m:106:5: note: use option ‘-std=c99’, ‘-std=gnu99’, ‘-std=c11’ or ‘-std=gnu11’ to compile your code

Also this compliles using clang if clang is installed which I think shouldnt be the case.

Smoolak commented on 2020-03-18 16:46 (UTC)

Hey, I had the following error:

TRObject.m: In function '-[TRObject isKindOfClass:]':
TRObject.m:106:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  106 |     for (Class superClass = selfClass; superClass != NULL; superClass = class_getSuperclass(superClass)) {
      |     ^~~
# Maintainer: Shalygin Konstantin <k0ste@k0ste.ru>
TRObject.m:106:5: note: use option '-std=c99', '-std=gnu99', '-std=c11' or '-std=gnu11' to compile your code
make[1]: *** [../Mk/compile.mk:6: TRObject.o] Error 1
make[1]: Leaving directory '/home/admin/.cache/yay/openvpn-auth-ldap/src/openvpn-auth-ldap-auth-ldap-2.0.4/src'
make: *** [Mk/subdir.mk:8: all] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

I fixed it by adding CFLAGS='-std=gnu11' before the ./configure in the PKGBUILD file.