Created
February 9, 2017 21:34
-
-
Save Subzidion/6d5686ff52b84ee91f4b92b94c507d59 to your computer and use it in GitHub Desktop.
Debian librosie error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [subzidion@lodestone ~]$ docker run -i -t --entrypoint /bin/bash rpl-debian | |
| root@cf176649766e:/# cd /opt/rosie/ffi/librosie/ | |
| root@cf176649766e:/opt/rosie/ffi/librosie# make | |
| make librosie.so librosie.a SYSCFLAGS="-DLUA_USE_LINUX -D_GNU_SOURCE=1 -fPIC" SYSLIBS="-Wl,-E -ldl -lreadline" | |
| make[1]: Entering directory '/opt/rosie/ffi/librosie' | |
| Generating librosie C functions and headers | |
| echo 'api = require "api"; api.write_C_FILES();' | "/opt/rosie/bin/rosie" -D >/dev/null | |
| This is Rosie v0.99k | |
| gcc -o librosie.o -c librosie.c -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -D_GNU_SOURCE=1 -fPIC -I/opt/rosie/submodules/lua/include | |
| librosie.c: In function 'print_stringArray': | |
| librosie.c:156:6: error: 'for' loop initial declarations are only allowed in C99 or C11 mode | |
| for (uint32_t i=0; i<sa.n; i++) { | |
| ^ | |
| librosie.c:156:6: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code | |
| librosie.c: In function 'construct_retvals': | |
| librosie.c:249:6: error: 'for' loop initial declarations are only allowed in C99 or C11 mode | |
| for (size_t i=0; i<nretvals; i++) { | |
| ^ | |
| librosie.c: In function 'rosieL_free_stringArray': | |
| librosie.c:305:6: error: 'for' loop initial declarations are only allowed in C99 or C11 mode | |
| for (uint32_t i=0; i<r.n; i++) { | |
| ^ | |
| Makefile:81: recipe for target 'librosie.o' failed | |
| make[1]: *** [librosie.o] Error 1 | |
| make[1]: Leaving directory '/opt/rosie/ffi/librosie' | |
| Makefile:109: recipe for target 'linux' failed | |
| make: *** [linux] Error 2 | |
| root@cf176649766e:/opt/rosie/ffi/librosie# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment