-
Notifications
You must be signed in to change notification settings - Fork 3
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 build smtp module on CentOS 7 #39
Comments
olegrok
added a commit
that referenced
this issue
Apr 28, 2021
This patch adds "-std=gnu99" flag to fix following error when user tries to build on CentOS 7: ``` [ 66%] Building C object smtp/CMakeFiles/lib.dir/smtpc.c.o /tmp/luarocks_smtp-0.0.5-1-kgB1u4/smtp/smtp/smtpc.c: In function ‘check_libcurl_protocol’: /tmp/luarocks_smtp-0.0.5-1-kgB1u4/smtp/smtp/smtpc.c:103:2: error: ‘for’ loop initial declarations are only allowed in C99 mode for (const char * const *p = info->protocols; *p != NULL; ++p) { ^ /tmp/luarocks_smtp-0.0.5-1-kgB1u4/smtp/smtp/smtpc.c:103:2: note: use option -std=c99 or -std=gnu99 to compile your code gmake[2]: *** [smtp/CMakeFiles/lib.dir/smtpc.c.o] Error 1 gmake[1]: *** [smtp/CMakeFiles/lib.dir/all] Error 2 gmake: *** [all] Error 2 Error: Failed installing dependency: http://rocks.tarantool.org/smtp-0.0.5-1.rockspec - Build error: Failed building. ``` Closes #39
Merged
The problem is quite similar to tarantool/small#25. |
And there was the same problem in tuple-merger tarantool/tuple-merger@489ac0e |
I have the same problem. |
I'll merge Oleg's PR and make release 0.0.6 a bit sooner today. |
Totktonada
pushed a commit
that referenced
this issue
Apr 28, 2021
This patch adds "-std=gnu99" flag to fix following error when user tries to build on CentOS 7: ``` [ 66%] Building C object smtp/CMakeFiles/lib.dir/smtpc.c.o /tmp/luarocks_smtp-0.0.5-1-kgB1u4/smtp/smtp/smtpc.c: In function ‘check_libcurl_protocol’: /tmp/luarocks_smtp-0.0.5-1-kgB1u4/smtp/smtp/smtpc.c:103:2: error: ‘for’ loop initial declarations are only allowed in C99 mode for (const char * const *p = info->protocols; *p != NULL; ++p) { ^ /tmp/luarocks_smtp-0.0.5-1-kgB1u4/smtp/smtp/smtpc.c:103:2: note: use option -std=c99 or -std=gnu99 to compile your code gmake[2]: *** [smtp/CMakeFiles/lib.dir/smtpc.c.o] Error 1 gmake[1]: *** [smtp/CMakeFiles/lib.dir/all] Error 2 gmake: *** [all] Error 2 Error: Failed installing dependency: http://rocks.tarantool.org/smtp-0.0.5-1.rockspec - Build error: Failed building. ``` Closes #39
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: