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

Fail to build --with-libnghttp2 with error: 'SSIZE_MAX' undeclared #343

Closed
yvoinov opened this issue Nov 10, 2020 · 2 comments
Closed

Fail to build --with-libnghttp2 with error: 'SSIZE_MAX' undeclared #343

yvoinov opened this issue Nov 10, 2020 · 2 comments

Comments

@yvoinov
Copy link

yvoinov commented Nov 10, 2020

When trying to build with DoH support, got an error:

./libtool --tag=CC --mode=compile gcc -I. -I/usr/local/include -I/opt/csw/include -I/usr/local/include -I/usr/local/include -I/opt/csw/include -I/opt/csw/include -DSRCDIR=. -O3 -m64 -flto -std=c99 -D_REENTRANT -pthreads -o listen_dnsport.lo -c services/listen_dnsport.c
libtool: compile: gcc -I. -I/usr/local/include -I/opt/csw/include -I/usr/local/include -I/usr/local/include -I/opt/csw/include -I/opt/csw/include -DSRCDIR=. -O3 -m64 -flto -std=c99 -D_REENTRANT -pthreads -c services/listen_dnsport.c -fPIC -DPIC -o .libs/listen_dnsport.o
services/listen_dnsport.c: In function 'http2_submit_response_read_callback':
services/listen_dnsport.c:2130:15: error: 'SSIZE_MAX' undeclared (first use in this function)
if(copylen > SSIZE_MAX)
^
services/listen_dnsport.c:2130:15: note: each undeclared identifier is reportedonly once for each function it appears in
gmake: *** [Makefile:308: listen_dnsport.lo] Error 1

To fix require to add #include <limits.h> to services/listen_dnsport.c.

Just this include omitted. After add, issue is gone.

@wcawijngaards
Copy link
Member

Thanks! Implemented the include as you suggested, that should fix the issue.

@yvoinov
Copy link
Author

yvoinov commented Nov 10, 2020 via email

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

2 participants