=> Bootstrap dependency digest>=20010302: found digest-20121220 ===> Building for scm-5.5.3nb2 echo "#ifndef IMPLINIT" > newflags.h echo "#define IMPLINIT \"Init5e3.scm\"" >> newflags.h echo "#endif" >> newflags.h echo "#define CHEAP_CONTINUATIONS" >> newflags.h echo "#define CAUTIOUS" >> newflags.h if (cmp -s newflags.h scmflags.h) then rm newflags.h; else mv newflags.h scmflags.h; fi cc -c -O2 -march=i586 -DX11 -I/usr/X11R7/include -I/usr/include scm.c -o scm.o scm.c:345:15: warning: implicit declaration of function 'alarm' is invalid in C99 [-Wimplicit-function-declaration] SYSCALL(j = alarm(INUM(i));); ^ ./scmfig.h:800:37: note: expanded from macro 'SYSCALL' # define SYSCALL(line) do{errno = 0;line}while(SCM_INTERRUPTED(errno)) ^ scm.c:390:3: warning: implicit declaration of function 'pause' is invalid in C99 [-Wimplicit-function-declaration] pause(); ^ scm.c:419:15: warning: implicit declaration of function 'sleep' is invalid in C99 [-Wimplicit-function-declaration] SYSCALL(j = sleep(INUM(i));); ^ ./scmfig.h:800:37: note: expanded from macro 'SYSCALL' # define SYSCALL(line) do{errno = 0;line}while(SCM_INTERRUPTED(errno)) ^ scm.c:475:15: warning: implicit declaration of function 'getpid' is invalid in C99 [-Wimplicit-function-declaration] return kill(getpid (), (int)INUM(sig)) ? BOOL_F : BOOL_T; ^ scm.c:842:7: warning: implicit declaration of function 'isatty' is invalid in C99 [-Wimplicit-function-declaration] if (isatty(fileno(inport))) { ^ 5 warnings generated. cc -c -O2 -march=i586 -DX11 -I/usr/X11R7/include -I/usr/include time.c -o time.o cc -c -O2 -march=i586 -DX11 -I/usr/X11R7/include -I/usr/include repl.c -o repl.o repl.c:1392:8: warning: implicit declaration of function 'isspace' is invalid in C99 [-Wimplicit-function-declaration] (isspace(initpath[0]) || ';'==initpath[0] || '('==initpath[0])) ^ repl.c:1623:37: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] scm_dumped_brk = (unsigned long)sbrk(0); ^ repl.c:1644:16: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] lputs(dif2 < 0 ? " - " : " + ", cur_errp); ~~~~ ^ ~ repl.c:1645:19: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] intprint(dif2 < 0 ? -dif2 : dif2, 10, cur_errp); ~~~~ ^ ~ repl.c:2110:11: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] err_pos = pos; ^ ~~~ repl.c:2111:14: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] err_s_subr = s_subr; ^ ~~~~~~ repl.c:2193:10: warning: implicit declaration of function 'isatty' is invalid in C99 [-Wimplicit-function-declaration] return isatty(fileno(STREAM(port)))?BOOL_T:BOOL_F; ^ 7 warnings generated. cc -c -O2 -march=i586 -DX11 -I/usr/X11R7/include -I/usr/include scl.c -o scl.o scl.c:1665:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ scl.c:1797:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ scl.c:2148:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ scl.c:2179:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] else goto overflow; ^ 4 warnings generated. cc -c -O2 -march=i586 -DX11 -I/usr/X11R7/include -I/usr/include sys.c -o sys.o sys.c:369:47: warning: implicit declaration of function 'isatty' is invalid in C99 [-Wimplicit-function-declaration] if (OPENP(exp) && tc16_fport==TYP16(exp) && isatty(fileno(STREAM(exp)))) ^ sys.c:370:11: warning: implicit declaration of function 'ttyname' is invalid in C99 [-Wimplicit-function-declaration] lputs(ttyname(fileno(STREAM(exp))), port); ^ sys.c:370:11: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion] lputs(ttyname(fileno(STREAM(exp))), port); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./scm.h:777:38: note: passing argument to parameter 's' here SCM_EXPORT void lputs P((const char *s, SCM port)); ^ ./scm.h:105:15: note: expanded from macro 'P' # define P(s) s ^ sys.c:1398:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ 4 warnings generated. cc -c -O2 -march=i586 -DX11 -I/usr/X11R7/include -I/usr/include eval.c -o eval.o cc -c -O2 -march=i586 -DX11 -I/usr/X11R7/include -I/usr/include subr.c -o subr.o cc -c -O2 -march=i586 -DX11 -I/usr/X11R7/include -I/usr/include unif.c -o unif.o cc -c -O2 -march=i586 -DX11 -I/usr/X11R7/include -I/usr/include rope.c -o rope.o rope.c:129:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ rope.c:161:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ rope.c:170:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ rope.c:179:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ rope.c:253:15: warning: passing 'const char *const' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] must_free(argv[i], 1+strlen(argv[i])); ^~~~~~~ ./scm.h:720:36: note: passing argument to parameter 'obj' here SCM_EXPORT void must_free P((char *obj, sizet len)); ^ ./scm.h:105:15: note: expanded from macro 'P' # define P(s) s ^ 5 warnings generated. cc -c -O2 -march=i586 -DX11 -I/usr/X11R7/include -I/usr/include continue.c -o continue.o cc -c -O2 -march=i586 -DX11 -I/usr/X11R7/include -I/usr/include findexec.c -o findexec.o cc -c -O2 -march=i586 -DX11 -I/usr/X11R7/include -I/usr/include script.c -o script.o script.c:143:7: warning: implicit declaration of function 'access' is invalid in C99 [-Wimplicit-function-declaration] if (access(name, X_OK)) return 0L; ^ script.c:173:9: warning: initializing 'char *' with an expression of type 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] char *extptr = exec_path + strlen(exec_path); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ script.c:189:10: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] extptr = exec_path + strlen(exec_path); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ script.c:386:12: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] nargv[0] = argv[0]; ^ ~~~~~~~ script.c:401:22: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] nargv[nargi++] = argv[argi++]; ^ ~~~~~~~~~~~~ script.c:404:39: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] while (argi <= argc) nargv[nargi++] = argv[argi++]; ^ ~~~~~~~~~~~~ 6 warnings generated. cc -c -O2 -march=i586 -DX11 -I/usr/X11R7/include -I/usr/include debug.c -o debug.o cc -c -O2 -march=i586 -DX11 -I/usr/X11R7/include -I/usr/include scmmain.c -o scmmain.o scmmain.c:133:32: warning: assigning to 'const char **' from 'const char *const [1]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] if (0==argc) {argc = 1; argv = generic_name;} /* for macintosh */ ^ ~~~~~~~~~~~~ scmmain.c:143:16: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] script_arg = argv[2]; /* Save for scm_find_execpath() call */ ^ ~~~~~~~ scmmain.c:144:31: warning: passing 'char **' to parameter of type 'const char **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers] nargc = script_count_argv(nargv); ^~~~~ ./scm.h:1092:51: note: passing argument to parameter 'argv' here SCM_EXPORT int script_count_argv P((const char **argv)); ^ ./scm.h:105:15: note: expanded from macro 'P' # define P(s) s ^ scmmain.c:146:15: warning: assigning to 'char **' from 'const char **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers] else {nargv = argv; nargc = argc;} ^ ~~~~ scmmain.c:148:39: warning: passing 'char **' to parameter of type 'const char *const *' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers] execpath = scm_find_execpath(nargc, nargv, script_arg); ^~~~~ ./scm.h:798:69: note: passing argument to parameter 'argv' here SCM_EXPORT char *scm_find_execpath P((int argc, const char * const *argv, const char *script_arg)); ^ ./scm.h:105:15: note: expanded from macro 'P' # define P(s) s ^ scmmain.c:150:7: warning: implicit declaration of function 'isatty' is invalid in C99 [-Wimplicit-function-declaration] if (isatty(fileno(stdin)) && isatty(fileno(stdout))) ^ scmmain.c:155:31: warning: passing 'char **' to parameter of type 'const char *const *' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers] scm_init_from_argv(nargc, nargv, script_arg, iverbose, buf0stdin); ^~~~~ ./scm.h:791:69: note: passing argument to parameter 'argv' here SCM_EXPORT void scm_init_from_argv P((int argc, const char * const *argv, char *script_arg, ^ ./scm.h:105:15: note: expanded from macro 'P' # define P(s) s ^ 7 warnings generated. cc -o scmlit scm.o time.o repl.o scl.o sys.o eval.o subr.o unif.o rope.o continue.o findexec.o script.o debug.o scmmain.o -lm time.o: In function `your_time': time.c:(.text+0x14): undefined reference to `ftime' time.c:(.text+0x20): undefined reference to `ftime' time.c:(.text+0x5e): undefined reference to `ftime' time.c:(.text+0x6a): undefined reference to `ftime' time.c:(.text+0xa8): undefined reference to `ftime' time.o:time.c:(.text+0xb4): more undefined references to `ftime' follow clang: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/work/lang/scm/work/scm *** Error code 1 Stop. bmake[1]: stopped in /usr/pkgsrc/lang/scm *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/lang/scm