Rss

Erro ao instalar o port security/openvpn-auth-ldap no FreeBSD 9

Buenas;

No FreeBSD 9 o port security/openvpn-auth-ldap está marcado como BROKEN devido ao seguinte erro na fase de configure do port.

configure: WARNING: Check library not found. Unit tests will not be built or run.
checking for openvpn-plugin.h... no
configure: error: Could not locate a working openvpn source tree.
See `config.log' for more details.
===> Script "configure" failed unexpectedly.
Please report the problem to snb@FreeBSD.org [maintainer] and attach the
"/usr/ports/security/openvpn-auth-ldap/work/auth-ldap-2.0.3/config.log"
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. a /usr/sbin/pkg_info -Ea).
*** Error code 1

Olhando no config.log temos:

configure:5511: checking for openvpn-plugin.h
configure:5544: cc -o conftest -O2 -pipe -DLDAP_DEPRECATED -fno-strict-aliasing -I/usr/ports/security/openvpn/work/openvpn-2.3.0 -export-dynamic conftest.c >&5
conftest.c:15:34: error: openvpn-plugin.h: No such file or directory

Outro erro que também pode acontecer é o seguinte:

checking how to run the Objective C preprocessor... /lib/cpp
configure: error: Objective C preprocessor "/lib/cpp" fails sanity check

Para resolver essa questão, basta aplicarmos um patch no port para que o mesmo funcione corretamente.

# cd /usr/ports/security/openvpn-auth-ldap
# wget http://conceicao.eti.br/pub/openvpn-auth-ldap.patch
# patch -p0 < openvpn-auth-ldap.patch
# make && make install

Leave a Reply

Your email address will not be published. Required fields are marked *