Доброго дня! Пытаюсь собрать openvpn-2.1.4 из src.rpm. В spec файл прописываю следующие параметры конфигурации:
%configure \
--enable-pthread \
--enable-password-save \
--enable-iproute2 \
--with-ifconfig-path=/sbin/ifconfig \
--with-iproute-path=/sbin/ip \
--with-route-path=/sbin/route \
--with-ssl-headers=/usr/include/openssl/ \
--with-ssl-lib=/usr/lib/openssl/ \
--with-lzo-headers=/usr/include/lzo \
--with-lzo-lib=/usr/lib/ CFLAGS=-DALLOW_NON_CBC_CIPHERS \
Сборка вылетает со следующей ошибкой:
gcc -DHAVE_CONFIG_H -I. -I/usr/include/openssl/ -I/usr/include/lzo -I. -DALLOW_NON_CBC_CIPHERS -D_REENTRANT -pthread -MT buffer.o -MD -MP -MF .deps/buffer.Tpo -c -o buffer.o buffer.c
mv -f .deps/buffer.Tpo .deps/buffer.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/include/openssl/ -I/usr/include/lzo -I. -DALLOW_NON_CBC_CIPHERS -D_REENTRANT -pthread -MT crypto.o -MD -MP -MF .deps/crypto.Tpo -c -o crypto.o crypto.c
In file included from crypto.c:29:
crypto.h:29:1: warning: "ALLOW_NON_CBC_CIPHERS" redefined
<command-line>: warning: this is the location of the previous definition
crypto.c: In function 'init_key_type':
crypto.c:654: error: 'ASN1_PKEY_MAC' undeclared (first use in this function)
crypto.c:654: error: (Each undeclared identifier is reported only once
crypto.c:654: error: for each function it appears in.)
make[2]: *** [crypto.o] Error 1
make[2]: Leaving directory `/home/paul/rpmbuild/BUILD/openvpn-2.1.4'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/paul/rpmbuild/BUILD/openvpn-2.1.4'
make: *** [all] Error 2
ошибка: Неверный код возврата из /var/tmp/rpm-tmp.rckEem (%build)