Aqui o log:
gcc -o bmppalette bmppalette.c shhopt.c nstring.c -lnetpbm -lm -lpopt
bmppalette.c:25:17: error: pnm.h: Arquivo ou diretório não encontrado
In file included from bmppalette.c:27:
bitio.h:35:16: error: pm.h: Arquivo ou diretório não encontrado
In file included from bmppalette.c:27:
bitio.h:40: error: expected ‘)’ before ‘*’ token
bitio.h:52: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ARGS’
bitio.h:60: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ARGS’
bitio.h:70: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ARGS’
In file included from bmppalette.c:28:
bmp.h:84:39: error: ppm.h: Arquivo ou diretório não encontrado
bmppalette.c:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
bmppalette.c:65: error: expected specifier-qualifier-list before ‘bool’
bmppalette.c:82: error: expected specifier-qualifier-list before ‘bool’
bmppalette.c: In function ‘parse_command_line’:
bmppalette.c:114: warning: incompatible implicit declaration of built-in function ‘malloc’
bmppalette.c:125: error: ‘FALSE’ undeclared (first use in this function)
bmppalette.c:125: error: (Each undeclared identifier is reported only once
bmppalette.c:125: error: for each function it appears in.)
bmppalette.c: At top level:
bmppalette.c:149: error: expected ‘)’ before ‘*’ token
bmppalette.c:162: error: expected ‘)’ before ‘*’ token
bmppalette.c:175: error: expected ‘)’ before ‘*’ token
bmppalette.c:192: error: expected ‘)’ before ‘*’ token
bmppalette.c:207: error: expected ‘)’ before ‘*’ token
bmppalette.c:224: error: expected ‘)’ before ‘*’ token
bmppalette.c:251: error: expected ‘)’ before ‘*’ token
bmppalette.c:285: error: expected ‘)’ before ‘*’ token
bmppalette.c: In function ‘computeConventionalBgr’:
bmppalette.c:390: error: ‘struct pixelformat’ has no member named ‘conventionalBgr’
bmppalette.c:398: error: ‘struct pixelformat’ has no member named ‘conventionalBgr’
bmppalette.c:406: error: ‘struct pixelformat’ has no member named ‘conventionalBgr’
bmppalette.c:406: error: ‘FALSE’ undeclared (first use in this function)
bmppalette.c: In function ‘defaultPixelformat’:
bmppalette.c:419: error: ‘struct pixelformat’ has no member named ‘conventionalBgr’
bmppalette.c:419: error: ‘FALSE’ undeclared (first use in this function)
bmppalette.c:431: error: ‘struct pixelformat’ has no member named ‘conventionalBgr’
bmppalette.c:431: error: ‘TRUE’ undeclared (first use in this function)
bmppalette.c: At top level:
bmppalette.c:452: error: expected ‘)’ before ‘*’ token
bmppalette.c: In function ‘defaultV4InfoHeaderExtension’:
bmppalette.c:477: error: ‘struct bmpInfoHeader’ has no member named ‘pixelformat’
bmppalette.c: At top level:
bmppalette.c:484: error: expected ‘)’ before ‘*’ token
bmppalette.c:516: error: expected ‘)’ before ‘*’ token
bmppalette.c:542: error: expected ‘)’ before ‘*’ token
bmppalette.c:592: error: expected declaration specifiers or ‘...’ before ‘pixval’
bmppalette.c:593: error: expected declaration specifiers or ‘...’ before ‘pixval’
bmppalette.c:594: error: expected declaration specifiers or ‘...’ before ‘pixval’
bmppalette.c:595: error: expected declaration specifiers or ‘...’ before ‘pixval’
bmppalette.c:596: error: expected declaration specifiers or ‘...’ before ‘pixval’
bmppalette.c: In function ‘extractBitFields’:
bmppalette.c:607: error: ‘rP’ undeclared (first use in this function)
bmppalette.c:607: error: ‘maxval’ undeclared (first use in this function)
bmppalette.c:608: error: ‘gP’ undeclared (first use in this function)
bmppalette.c:609: error: ‘bP’ undeclared (first use in this function)
bmppalette.c:610: error: ‘aP’ undeclared (first use in this function)
bmppalette.c: At top level:
bmppalette.c:617: error: expected declaration specifiers or ‘...’ before ‘xel’
bmppalette.c: In function ‘convertRow16’:
bmppalette.c:629: error: ‘pixval’ undeclared (first use in this function)
bmppalette.c:629: error: expected ‘;’ before ‘r’
bmppalette.c:631: error: ‘r’ undeclared (first use in this function)
bmppalette.c:631: error: ‘g’ undeclared (first use in this function)
bmppalette.c:631: error: ‘b’ undeclared (first use in this function)
bmppalette.c:631: error: ‘a’ undeclared (first use in this function)
bmppalette.c:631: error: too many arguments to function ‘extractBitFields’
bmppalette.c:633: error: ‘xelrow’ undeclared (first use in this function)
bmppalette.c: At top level:
bmppalette.c:643: error: expected declaration specifiers or ‘...’ before ‘xel’
bmppalette.c: In function ‘convertRow24’:
bmppalette.c:659: error: ‘pixval’ undeclared (first use in this function)
bmppalette.c:659: error: expected ‘;’ before ‘r’
bmppalette.c:661: error: ‘const struct pixelformat’ has no member named ‘conventionalBgr’
bmppalette.c:662: error: ‘r’ undeclared (first use in this function)
bmppalette.c:663: error: ‘g’ undeclared (first use in this function)
bmppalette.c:664: error: ‘b’ undeclared (first use in this function)
bmppalette.c:665: error: ‘a’ undeclared (first use in this function)
bmppalette.c:672: error: too many arguments to function ‘extractBitFields’
bmppalette.c:674: error: ‘xelrow’ undeclared (first use in this function)
bmppalette.c: At top level:
bmppalette.c:683: error: expected declaration specifiers or ‘...’ before ‘xel’
bmppalette.c: In function ‘convertRow32’:
bmppalette.c:693: error: ‘pixval’ undeclared (first use in this function)
bmppalette.c:693: error: expected ‘;’ before ‘r’
bmppalette.c:695: error: ‘const struct pixelformat’ has no member named ‘conventionalBgr’
bmppalette.c:697: error: ‘r’ undeclared (first use in this function)
bmppalette.c:698: error: ‘g’ undeclared (first use in this function)
bmppalette.c:699: error: ‘b’ undeclared (first use in this function)
bmppalette.c:700: error: ‘a’ undeclared (first use in this function)
bmppalette.c:708: error: too many arguments to function ‘extractBitFields’
bmppalette.c:711: error: ‘xelrow’ undeclared (first use in this function)
bmppalette.c: At top level:
bmppalette.c:721: error: expected declaration specifiers or ‘...’ before ‘xel’
bmppalette.c:725: error: expected declaration specifiers or ‘...’ before ‘xel’
bmppalette.c: In function ‘convertRow’:
bmppalette.c:738: error: ‘xelrow’ undeclared (first use in this function)
bmppalette.c:738: error: incompatible type for argument 3 of ‘convertRow24’
bmppalette.c:642: note: expected ‘const struct pixelformat’ but argument is of type ‘int’
bmppalette.c:738: error: too many arguments to function ‘convertRow24’
bmppalette.c:740: error: incompatible type for argument 3 of ‘convertRow16’
bmppalette.c:616: note: expected ‘const struct pixelformat’ but argument is of type ‘int’
bmppalette.c:740: error: too many arguments to function ‘convertRow16’
bmppalette.c:742: error: incompatible type for argument 3 of ‘convertRow32’
bmppalette.c:682: note: expected ‘const struct pixelformat’ but argument is of type ‘int’
bmppalette.c:742: error: too many arguments to function ‘convertRow32’
bmppalette.c:747: error: ‘colormap’ undeclared (first use in this function)
bmppalette.c: In function ‘allocBMPraster’:
bmppalette.c:783: warning: incompatible implicit declaration of built-in function ‘malloc’
bmppalette.c: At top level:
bmppalette.c:800: error: expected ‘)’ before ‘*’ token
bmppalette.c:831: error: expected ‘)’ before ‘*’ token
bmppalette.c: In function ‘reportHeader’:
bmppalette.c:887: error: ‘const struct bmpInfoHeader’ has no member named ‘cPlanes’
bmppalette.c:892: error: ‘const struct bmpInfoHeader’ has no member named ‘cmapsize’
bmppalette.c: At top level:
bmppalette.c:898: error: expected ‘)’ before ‘colormap’
bmppalette.c:930: error: expected ‘)’ before ‘*’ token
bmppalette.c:1029: error: expected declaration specifiers or ‘...’ before ‘xel’
bmppalette.c: In function ‘writeRaster’:
bmppalette.c:1041: error: ‘xel’ undeclared (first use in this function)
bmppalette.c:1041: error: ‘xelrow’ undeclared (first use in this function)
bmppalette.c:1048: error: ‘colormap’ undeclared (first use in this function)
bmppalette.c:1048: error: incompatible type for argument 4 of ‘convertRow’
bmppalette.c:720: note: expected ‘const struct pixelformat’ but argument is of type ‘unsigned int’
bmppalette.c:1048: error: too many arguments to function ‘convertRow’
bmppalette.c:1049: error: ‘stdout’ undeclared (first use in this function)
bmppalette.c:1049: error: ‘bmpMaxval’ undeclared (first use in this function)
bmppalette.c:1049: error: ‘FALSE’ undeclared (first use in this function)
bmppalette.c: In function ‘main’:
bmppalette.c:1060: error: ‘FILE’ undeclared (first use in this function)
bmppalette.c:1060: error: ‘ifP’ undeclared (first use in this function)
bmppalette.c:1063: error: ‘bool’ undeclared (first use in this function)
bmppalette.c:1063: error: expected ‘;’ before ‘grayPresent’
bmppalette.c:1079: error: ‘xel’ undeclared (first use in this function)
bmppalette.c:1079: error: ‘colormap’ undeclared (first use in this function)
bmppalette.c:1094: error: ‘grayPresent’ undeclared (first use in this function)
bmppalette.c:1094: error: ‘colorPresent’ undeclared (first use in this function)
bmppalette.c:1098: warning: incompatible implicit declaration of built-in function ‘free’
bmppalette.c:1100: warning: incompatible implicit declaration of built-in function ‘exit’
bmppalette.c:1103: error: ‘PPM_TYPE’ undeclared (first use in this function)
bmppalette.c:1106: error: ‘PGM_TYPE’ undeclared (first use in this function)
bmppalette.c:1109: error: ‘PBM_TYPE’ undeclared (first use in this function)
bmppalette.c:1112: error: ‘stdout’ undeclared (first use in this function)
bmppalette.c:1112: error: ‘bmpMaxval’ undeclared (first use in this function)
bmppalette.c:1112: error: ‘FALSE’ undeclared (first use in this function)
bmppalette.c:1115: error: too many arguments to function ‘writeRaster’
make: ** [bmppalette] Erro 1
[Edição 19 de abril 2011] > No site pede o Mjpegtools na versão CVS ...Instalei, mas dá o mesmo erro aí do log.