Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to configure: cpp failed sanity check #2795

Open
HowieForrest opened this issue Mar 10, 2021 · 1 comment
Open

Failed to configure: cpp failed sanity check #2795

HowieForrest opened this issue Mar 10, 2021 · 1 comment

Comments

@HowieForrest
Copy link

HowieForrest commented Mar 10, 2021

What version of shadowsocks-libev are you using?

3.2.5

What operating system are you using?

CentOS 7
4.14.129-bbrplus
gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC)
gcc-c++ installed

What did you do?

Tried to update shadowsocks-libev by building it again

yum install gcc gettext autoconf libtool automake make pcre-devel asciidoc xmlto c-ares-devel libev-devel libsodium-devel mbedtls-devel -y
git clone https://github.com/shadowsocks/shadowsocks-libev.git
cd shadowsocks-libev
git submodule update --init --recursive
./autogen.sh
./configure CPP=/usr/bin/cpp --disable-documentation

What did you expect to see?

shadowsocks-libev built successfully and updated to 3.3.5

What did you see instead?

checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... /usr/bin/cpp
configure: error: in `/root/build/shadowsocks-libev':
configure: error: C preprocessor "/usr/bin/cpp" fails sanity check

What is your config in detail (with all sensitive info masked)?

{
"server":["[::0]","0.0.0.0"],
"server_port":2***,
"password":"********",
"timeout":300,
"user":"nobody",
"method":"aes-256-gcm",
"fast_open":false,
"nameserver":"8.8.8.8",
"mode":"tcp_and_udp",
"plugin":"obfs-server",
"plugin_opts":"obfs=http"
}

@HowieForrest
Copy link
Author

Problem solved with sudo yum update -y

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant