嗨,我想在我的raspberry设置上使用stubby,它已经运行了一个PiHole实例(hw是一个pi3,当前的Raspbian Stretch Lite发布日期:2018-11-13)。
我找到的关于该主题的所有how_to都建议使用以下方法:
sudo apt-get install libtool autoconf m4 libssl-dev libyaml-dev
git clone https://github.com/getdnsapi/getdns.git
cd getdns
git checkout develop
git submodule update --init
libtoolize -ci
autoreconf -fi
mkdir -v build && cd build
../configure --prefix=/usr/local --without-libidn --without-libidn2 --enable-stub-only --with-ssl --with-stubby
make
sudo make install但无论我遵循哪种方法,当我到达make部分时,我都会得到:
pi@PiHole:~/getdns/build $ make
cd src && make default
make[1]: Entering directory '/home/pi/getdns/build/src'
../libtool --quiet --tag=CC --mode=compile gcc -I../../src -I. -I../../src/util/auxiliary -I../../src/../stubby/src -g -O2 -Wall -Wextra -D_BSD_SOURCE -D_DEFAULT_SOURCE -Wpedantic -c ../../src/convert.c -o convert.lo
In file included from ../../src/convert.c:50:0:
../../src/util-internal.h: In function ‘_getdns_tls_version2openssl_version’:
../../src/util-internal.h:229:29: error: ‘TLS1_3_VERSION’ undeclared (first use in this function)
case GETDNS_TLS1_3: return TLS1_3_VERSION;
^~~~~~~~~~~~~~
../../src/util-internal.h:229:29: note: each undeclared identifier is reported only once for each function it appears in
Makefile:122: recipe for target 'convert.lo' failed
make[1]: *** [convert.lo] Error 1
make[1]: Leaving directory '/home/pi/getdns/build/src'
Makefile:53: recipe for target 'default' failed
make: *** [default] Error 2你怎么了?当我检查被引用的文件时,我可以确认带有"TLS1_3_VERSION“的行是整个文件中唯一出现的行,但是编译器想用这个告诉我什么呢?
我可以自己做些什么来修复它吗,或者是github的存根文件中有一个bug?
发布于 2018-12-14 18:17:35
好的,我已经从github上的一个维护者那里得到了答案。
解决方案是使用主分支,而不是开发分支(由我在HowTo中找到的所有说明建议)
所以,如果其他任何人被这个错误所困扰:
git checkout master应该能修好它。
https://stackoverflow.com/questions/53776704
复制相似问题