Skip to content

Instantly share code, notes, and snippets.

@pink-mist
Created September 14, 2018 00:50
Show Gist options
  • Save pink-mist/b6323d500a3d8d10bd7824f6b864087e to your computer and use it in GitHub Desktop.
Save pink-mist/b6323d500a3d8d10bd7824f6b864087e to your computer and use it in GitHub Desktop.
cc -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter -Os -DHAVE_READLINE -o build/release/libmujs.o -c one.c
cc -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter -Os -DHAVE_READLINE -o build/release/pp.o -c pp.c
pp.c: In function ‘main’:
pp.c:88:6: warning: variable ‘minify’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
int minify = 0;
^
cc -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter -Os -DHAVE_READLINE -o build/release/main.o -c main.c
Creating build/release/mujs.pc
In file included from one.c:3:0:
jsbuiltin.c: In function ‘Encode’:
jsbuiltin.c:100:45: warning: argument ‘str’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
static void Encode(js_State *J, const char *str, const char *unescaped)
^
jsbuiltin.c: In function ‘Decode’:
jsbuiltin.c:128:45: warning: argument ‘str’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
static void Decode(js_State *J, const char *str, const char *reserved)
^
In file included from one.c:16:0:
json.c: In function ‘JSON_stringify’:
json.c:327:18: warning: variable ‘gap’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
const char *s, *gap;
^
cc -Wl,-s -o build/release/mujs-pp build/release/libmujs.o build/release/pp.o -lm
cc -Wl,-s -o build/release/mujs build/release/libmujs.o build/release/main.o -lreadline -lm
/usr/lib64/gcc/x86_64-slackware-linux/5.3.0/../../../../lib64/libreadline.so: undefined reference to `tputs'
/usr/lib64/gcc/x86_64-slackware-linux/5.3.0/../../../../lib64/libreadline.so: undefined reference to `tgoto'
/usr/lib64/gcc/x86_64-slackware-linux/5.3.0/../../../../lib64/libreadline.so: undefined reference to `tgetflag'
/usr/lib64/gcc/x86_64-slackware-linux/5.3.0/../../../../lib64/libreadline.so: undefined reference to `UP'
/usr/lib64/gcc/x86_64-slackware-linux/5.3.0/../../../../lib64/libreadline.so: undefined reference to `tgetent'
/usr/lib64/gcc/x86_64-slackware-linux/5.3.0/../../../../lib64/libreadline.so: undefined reference to `tgetnum'
/usr/lib64/gcc/x86_64-slackware-linux/5.3.0/../../../../lib64/libreadline.so: undefined reference to `PC'
/usr/lib64/gcc/x86_64-slackware-linux/5.3.0/../../../../lib64/libreadline.so: undefined reference to `tgetstr'
/usr/lib64/gcc/x86_64-slackware-linux/5.3.0/../../../../lib64/libreadline.so: undefined reference to `BC'
collect2: error: ld returned 1 exit status
ar cr build/release/libmujs.a build/release/libmujs.o
make: *** [build/release/mujs] Error 1
make: *** Waiting for unfinished jobs....
Makefile:84: recipe for target 'build/release/mujs' failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment