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
[compilation error] aead.c:220:43: error: passing argument 9 of ‘crypto_aead_aes256gcm_decrypt_afternm’ from incompatible pointer type #2179
Comments
我在debian9 下编译成功,在debian8下报错 aead.c: In function 'aead_cipher_encrypt': |
I had the same error on CentOS 7
I made |
又在一台新的debian 9 上测试,升级libsodium23,编译成功。 `dpkg -i shadowsocks-libev_3.2.0-1_amd64.deb ` |
same here: CentOS 7.5, kernel 4.18.7-1.el7.elrepo.x86_64 |
@madeye According to my test, this regression is cause by bug in GCC version < 5. It does not recognize It can be fixed by:
Which do you prefer? |
@fsgmhoward @triaqu @XOlegator @manjuprajna Here is temporary solution for you to use on older distro.
Alternatively you can install newer GCC, any version newer than >=5.0 should be fine. |
@edsgerlin Anyway I am also not using Ubuntu 12/14 at the moment so I will wait for the final decision on this matter. |
echo "deb http://ftp.us.debian.org/debian unstable main contrib non-free" >> /etc/apt/sources.list.d/unstable.list 安装的版本是gcc 8.2.0,编译成功。 |
@edsgerlin there are many people using CentOS, now you want people change their OS only for one encryption method that is not so widely used? |
@manjuprajna I only propose to add something to README to guide user using older GCC to use newer one or clang. |
What version of shadowsocks-libev are you using?
Latest commit (3.2.0-44-ga7877c5)
What operating system are you using?
Ubuntu Trusty/Precise (Xenial/Bionic don't have such a problem, using libsodium of the same version (1.0.16-119-g04a7ab9 for amd64/arm64/ppc64el, 1.0.16-116-g9c86285 for armhf/i386))
What did you do?
Build deb package from the source through Launchpad.net
What did you expect to see?
Successful build
What did you see instead?
Build failure for all architecture of Trusty & Precise.
(see https://launchpad.net/~fsgmhoward/+archive/ubuntu/shadowsocks-libev/+packages, full log can be downloaded here as well).
What is your config in detail (with all sensitive info masked)?
N/A
The text was updated successfully, but these errors were encountered: