Skip to content

Instantly share code, notes, and snippets.

@onlyshk
Created October 31, 2010 12:46
Show Gist options
  • Save onlyshk/656550 to your computer and use it in GitHub Desktop.
Save onlyshk/656550 to your computer and use it in GitHub Desktop.
try make minimacs
[shk@myhost Minimacs]$ make
cc -o mm -Wall -Os -pedantic -std=c99 -lcurses autoexec.c basic.c buffer.c cinfo.c dir.c dired.c display.c echo.c extend.c file.c fileio.c funmap.c help.c kbd.c keymap.c line.c macro.c main.c match.c modes.c paragraph.c random.c re_search.c region.c search.c spawn.c tty.c ttyio.c ttykbd.c undo.c window.c word.c yank.c grep.c util.c messages.c strtonum.c user-messages.c
In file included from def.h:12:0,
from autoexec.c:5:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
autoexec.c: In function ‘add_autoexec’:
autoexec.c:20:2: warning: implicit declaration of function ‘strdup’
autoexec.c:20:11: warning: assignment makes pointer from integer without a cast
In file included from def.h:12:0,
from basic.c:14:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
In file included from def.h:12:0,
from buffer.c:12:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
buffer.c: In function ‘addlinef’:
buffer.c:424:2: warning: implicit declaration of function ‘vasprintf’
buffer.c: In function ‘bnew’:
buffer.c:549:2: warning: implicit declaration of function ‘bzero’
buffer.c:557:2: warning: implicit declaration of function ‘strdup’
buffer.c:557:14: warning: assignment makes pointer from integer without a cast
buffer.c: In function ‘augbname’:
buffer.c:675:2: warning: implicit declaration of function ‘strlcpy’
In file included from def.h:12:0,
from cinfo.c:12:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
cinfo.c: In function ‘getkeyname’:
cinfo.c:144:2: warning: implicit declaration of function ‘strlcpy’
In file included from def.h:12:0,
from dir.c:12:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
dir.c: In function ‘dirinit’:
dir.c:30:3: warning: implicit declaration of function ‘strlcat’
dir.c: In function ‘changedir’:
dir.c:42:2: warning: implicit declaration of function ‘strlcpy’
In file included from def.h:12:0,
from dired.c:9:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
dired.c: In function ‘get_buffer_directory’:
dired.c:170:3: warning: implicit declaration of function ‘strlcpy’
dired.c: In function ‘d_shell_command’:
dired.c:481:20: error: storage size of ‘olda’ isn’t known
dired.c:481:26: error: storage size of ‘newa’ isn’t known
dired.c:512:2: warning: implicit declaration of function ‘sigaction’
dired.c:534:3: warning: implicit declaration of function ‘fdopen’
dired.c:534:7: warning: assignment makes pointer from integer without a cast
dired.c:481:26: warning: unused variable ‘newa’
dired.c:481:20: warning: unused variable ‘olda’
dired.c: In function ‘d_makename’:
dired.c:621:2: warning: implicit declaration of function ‘strlcat’
dired.c: In function ‘dired_’:
dired.c:666:2: warning: implicit declaration of function ‘popen’
dired.c:666:19: warning: initialization makes pointer from integer without a cast
dired.c:678:2: warning: implicit declaration of function ‘pclose’
In file included from def.h:12:0,
from display.c:14:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
display.c: In function ‘truncate_prefix’:
display.c:141:3: warning: implicit declaration of function ‘strlcpy’
display.c:146:2: warning: implicit declaration of function ‘strlcat’
display.c: In function ‘ucopy’:
display.c:664:2: warning: implicit declaration of function ‘bcopy’
In file included from def.h:12:0,
from echo.c:12:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
echo.c: In function ‘eyesno’:
echo.c:100:4: warning: implicit declaration of function ‘strcasecmp’
echo.c: In function ‘veread’:
echo.c:159:3: warning: implicit declaration of function ‘bcopy’
echo.c: In function ‘complt_list’:
echo.c:696:4: warning: implicit declaration of function ‘strlcat’
echo.c: In function ‘copy_list’:
echo.c:929:3: warning: implicit declaration of function ‘strdup’
echo.c:929:19: warning: assignment makes pointer from integer without a cast
In file included from def.h:12:0,
from extend.c:13:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
extend.c: In function ‘dobind’:
extend.c:321:3: warning: implicit declaration of function ‘strlcpy’
extend.c: In function ‘define_key’:
extend.c:474:2: warning: implicit declaration of function ‘strlcat’
extend.c: In function ‘excline’:
extend.c:769:4: warning: implicit declaration of function ‘bcopy’
In file included from def.h:12:0,
from file.c:11:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
file.c: In function ‘findbuffer’:
file.c:188:2: warning: implicit declaration of function ‘strlcpy’
file.c: In function ‘insertfile’:
file.c:313:3: warning: implicit declaration of function ‘strlcat’
file.c:366:4: warning: implicit declaration of function ‘bcopy’
file.c: In function ‘write_file’:
file.c:499:2: warning: implicit declaration of function ‘bzero’
file.c:508:3: warning: implicit declaration of function ‘strdup’
file.c:508:31: warning: assignment makes pointer from integer without a cast
file.c: In function ‘xdirname’:
file.c:628:3: warning: return makes pointer from integer without a cast
file.c:630:2: warning: return makes pointer from integer without a cast
In file included from def.h:12:0,
from fileio.c:8:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
fileio.c: In function ‘ffsafe’:
fileio.c:63:2: warning: implicit declaration of function ‘fileno’
fileio.c: In function ‘ffstat’:
fileio.c:85:22: error: ‘struct stat’ has no member named ‘st_mtimespec’
fileio.c: In function ‘ffwopen’:
fileio.c:117:17: error: ‘DEFFILEMODE’ undeclared (first use in this function)
fileio.c:117:17: note: each undeclared identifier is reported only once for each function it appears in
fileio.c:129:2: warning: implicit declaration of function ‘fdopen’
fileio.c:129:11: warning: assignment makes pointer from integer without a cast
fileio.c:143:3: warning: implicit declaration of function ‘fchmod’
fileio.c:144:3: warning: implicit declaration of function ‘fchown’
fileio.c: In function ‘adjustname’:
fileio.c:257:4: warning: implicit declaration of function ‘strlcpy’
fileio.c:269:4: warning: implicit declaration of function ‘strlcat’
fileio.c:283:2: warning: implicit declaration of function ‘realpath’
fileio.c:283:26: warning: comparison between pointer and integer
fileio.c: In function ‘copy’:
fileio.c:323:17: error: ‘DEFFILEMODE’ undeclared (first use in this function)
fileio.c: In function ‘make_file_list’:
fileio.c:442:29: error: ‘MAXNAMLEN’ undeclared (first use in this function)
fileio.c:462:11: error: ‘struct dirent’ has no member named ‘d_namlen’
fileio.c:466:23: error: ‘DT_DIR’ undeclared (first use in this function)
fileio.c:468:30: error: ‘DT_LNK’ undeclared (first use in this function)
fileio.c:469:24: error: ‘DT_UNKNOWN’ undeclared (first use in this function)
fileio.c:492:3: warning: implicit declaration of function ‘strdup’
fileio.c:492:19: warning: assignment makes pointer from integer without a cast
fileio.c: In function ‘fchecktime’:
fileio.c:532:33: error: ‘struct stat’ has no member named ‘st_mtimespec’
fileio.c:533:34: error: ‘struct stat’ has no member named ‘st_mtimespec’
In file included from def.h:12:0,
from funmap.c:5:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
funmap.c: In function ‘complete_function_list’:
funmap.c:242:4: warning: implicit declaration of function ‘strdup’
funmap.c:242:15: warning: assignment makes pointer from integer without a cast
In file included from def.h:12:0,
from help.c:9:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
help.c: In function ‘describe_key_briefly’:
help.c:36:2: warning: implicit declaration of function ‘strlcpy’
In file included from def.h:12:0,
from kbd.c:9:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
In file included from def.h:12:0,
from keymap.c:10:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
In file included from def.h:12:0,
from line.c:21:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
line.c: In function ‘lnewline_at’:
line.c:370:3: warning: implicit declaration of function ‘bcopy’
line.c: In function ‘ldelete’:
line.c:466:4: warning: implicit declaration of function ‘strlcat’
line.c: In function ‘linetostr’:
line.c:626:2: warning: implicit declaration of function ‘strdup’
line.c:626:2: warning: return makes pointer from integer without a cast
In file included from def.h:12:0,
from macro.c:9:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
In file included from def.h:12:0,
from main.c:9:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
main.c:33:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’
main.c: In function ‘main’:
main.c:78:2: warning: implicit declaration of function ‘getopt’
main.c:81:30: error: ‘optarg’ undeclared (first use in this function)
main.c:81:30: note: each undeclared identifier is reported only once for each function it appears in
main.c:86:5: warning: implicit declaration of function ‘usage’
main.c:89:10: error: ‘optind’ undeclared (first use in this function)
In file included from def.h:12:0,
from match.c:13:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
In file included from def.h:12:0,
from modes.c:11:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
In file included from def.h:12:0,
from paragraph.c:10:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
In file included from def.h:12:0,
from random.c:12:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
In file included from def.h:12:0,
from re_search.c:16:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
re_search.c: In function ‘re_doreplace’:
re_search.c:263:5: warning: implicit declaration of function ‘bcopy’
re_search.c: In function ‘re_readpattern’:
re_search.c:418:3: warning: implicit declaration of function ‘strlcpy’
In file included from def.h:12:0,
from region.c:12:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
region.c: In function ‘set_prefix_string’:
region.c:324:3: warning: implicit declaration of function ‘strlcpy’
In file included from def.h:12:0,
from search.c:14:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
search.c: In function ‘isearch’:
search.c:185:2: warning: implicit declaration of function ‘strlcpy’
In file included from def.h:12:0,
from spawn.c:5:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
spawn.c:21:37: error: expected ‘)’ before ‘*’ token
spawn.c:44:34: error: expected ‘)’ before ‘*’ token
spawn.c: In function ‘suspend_mm’:
spawn.c:61:2: error: ‘sigset_t’ undeclared (first use in this function)
spawn.c:61:2: note: each undeclared identifier is reported only once for each function it appears in
spawn.c:61:11: error: expected ‘;’ before ‘oset’
spawn.c:63:2: warning: implicit declaration of function ‘pre_suspend’
spawn.c:63:21: error: ‘oset’ undeclared (first use in this function)
spawn.c:66:2: warning: implicit declaration of function ‘kill’
spawn.c:68:2: warning: implicit declaration of function ‘post_suspend’
spawn.c: In function ‘spawn_shell’:
spawn.c:79:2: error: ‘sigset_t’ undeclared (first use in this function)
spawn.c:79:11: error: expected ‘;’ before ‘oset’
spawn.c:90:29: error: ‘oset’ undeclared (first use in this function)
spawn.c:100:3: warning: null argument where non-null required (argument 2)
spawn.c: In function ‘suspend_mm’:
spawn.c:69:1: warning: control reaches end of non-void function
In file included from def.h:12:0,
from tty.c:30:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
tty.c: In function ‘ttinit’:
tty.c:67:2: warning: implicit declaration of function ‘siginterrupt’
In file included from def.h:12:0,
from ttyio.c:12:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
ttyio.c: In function ‘ttflush’:
ttyio.c:151:2: warning: implicit declaration of function ‘fileno’
In file included from def.h:12:0,
from ttykbd.c:11:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
In file included from def.h:12:0,
from undo.c:7:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
undo.c: In function ‘dump_undo_list’:
undo.c:303:4: warning: implicit declaration of function ‘strlcat’
In file included from def.h:12:0,
from window.c:9:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
In file included from def.h:12:0,
from word.c:11:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
word.c: In function ‘already_matched’:
word.c:545:3: warning: implicit declaration of function ‘strlcpy’
In file included from def.h:12:0,
from yank.c:9:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
yank.c: In function ‘kgrow’:
yank.c:84:2: warning: implicit declaration of function ‘bcopy’
In file included from def.h:12:0,
from grep.c:5:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
grep.c: In function ‘man’:
grep.c:128:3: warning: implicit declaration of function ‘strlcat’
grep.c: In function ‘compile’:
grep.c:184:2: warning: implicit declaration of function ‘strlcpy’
grep.c: In function ‘compile_mode’:
grep.c:246:2: warning: implicit declaration of function ‘popen’
grep.c:246:13: warning: assignment makes pointer from integer without a cast
grep.c:256:2: warning: implicit declaration of function ‘fgetln’
grep.c:256:14: warning: assignment makes pointer from integer without a cast
grep.c:260:2: warning: implicit declaration of function ‘pclose’
grep.c:278:2: warning: implicit declaration of function ‘fchdir’
grep.c: In function ‘compile_goto_error’:
grep.c:314:2: warning: implicit declaration of function ‘strsep’
grep.c:314:13: warning: assignment makes pointer from integer without a cast
grep.c:316:10: warning: assignment makes pointer from integer without a cast
In file included from def.h:12:0,
from util.c:6:
sysdef.h:29:18: error: field ‘mtime’ has incomplete type
util.c: In function ‘format’:
util.c:18:2: warning: implicit declaration of function ‘vasprintf’
make: *** [mm] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment