Since the first error is saying uint16_t is undefined, did you try adding "#include <stdint.h>" at the top of genlib.c?
--David Grayson On Mar 11, 2018 5:06 AM, <jpmug...@suddenlink.net> wrote: > For some strange reason, I'm getting these errors when compiling the tools > for MINGW-W64: > > > > > > $ makepkg-mingw -f > > ==> Making package: mingw-w64-tools-git 6.0.0.5114.b633824e-1 (Sun, Mar 11, > 2018 7:41:04 AM) > > ==> Checking runtime dependencies... > > ==> Checking buildtime dependencies... > > ==> Retrieving sources... > > -> Updating mingw-w64 git repo... > > Fetching origin > > -> Found fix-warnings.patch > > ==> Validating source files with sha256sums... > > mingw-w64 ... Skipped > > fix-warnings.patch ... Passed > > ==> Extracting sources... > > -> Creating working copy of mingw-w64 git repo... > > Cloning into 'mingw-w64'... > > done. > > Checking out files: 100% (5367/5367), done. > > ==> Starting prepare()... > > ==> Starting pkgver()... > > ==> Removing existing $pkgdir/ directory... > > ==> Starting build()... > > Building gendef ... > > configure: loading site script /etc/config.site > > checking for a BSD-compatible install... /usr/bin/install -c > > checking whether build environment is sane... yes > > checking for a thread-safe mkdir -p... /usr/bin/mkdir -p > > checking for gawk... gawk > > checking whether make sets $(MAKE)... yes > > checking whether make supports nested variables... yes > > checking whether to enable maintainer-specific portions of Makefiles... no > > checking build system type... x86_64-w64-mingw32 > > checking host system type... x86_64-w64-mingw32 > > checking for x86_64-w64-mingw32-gcc... x86_64-w64-mingw32-gcc > > checking whether the C compiler works... yes > > checking for C compiler default output file name... a.exe > > checking for suffix of executables... .exe > > checking whether we are cross compiling... no > > checking for suffix of object files... o > > checking whether we are using the GNU C compiler... yes > > checking whether x86_64-w64-mingw32-gcc accepts -g... yes > > checking for x86_64-w64-mingw32-gcc option to accept ISO C89... none needed > > checking whether x86_64-w64-mingw32-gcc understands -c and -o together... > yes > > checking for style of include used by make... GNU > > checking dependency style of x86_64-w64-mingw32-gcc... gcc3 > > checking how to run the C preprocessor... x86_64-w64-mingw32-gcc -E > > checking for grep that handles long lines and -e... /usr/bin/grep > > checking for egrep... /usr/bin/grep -E > > checking for ANSI C header files... yes > > checking for sys/types.h... yes > > checking for sys/stat.h... yes > > checking for stdlib.h... yes > > checking for string.h... yes > > checking for memory.h... yes > > checking for strings.h... yes > > checking for inttypes.h... yes > > checking for stdint.h... yes > > checking for unistd.h... yes > > checking for inttypes.h... (cached) yes > > checking for memory.h... (cached) yes > > checking for stdint.h... (cached) yes > > checking for stdlib.h... (cached) yes > > checking for string.h... (cached) yes > > checking for int32_t... yes > > checking for size_t... yes > > checking for uint16_t... yes > > checking for uint32_t... yes > > checking for uint64_t... yes > > checking for uint8_t... yes > > checking for memset... yes > > checking for strdup... yes > > checking for strrchr... yes > > checking for strlwr... yes > > checking whether to build gendef with libmangle... yes > > checking libmangle.h usability... yes > > checking libmangle.h presence... yes > > checking for libmangle.h... yes > > checking for libmangle_print_decl in -lmangle... yes > > checking that generated files are newer than configure... done > > configure: creating ./config.status > > config.status: creating Makefile > > config.status: creating config.h > > config.status: executing depfiles commands > > make all-am > > make[1]: Entering directory > '/home/jpmugaas/exp/mingw-w64-tools-git/src/x86_64-w64-mingw32-gendef' > > x86_64-w64-mingw32-gcc -DHAVE_CONFIG_H -I. > -I/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw-w64/ > mingw-w64-tools/gende > f -I/mingw64/include -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 > -Werror -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -MT > src/gendef-gendef.o -MD -MP -MF src/.deps/gendef-gendef.Tpo -c -o > src/gendef-gendef.o `test -f 'src/gendef.c' || echo > '/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw-w64/mingw- > w64-tools/gendef > /'`src/gendef.c > > x86_64-w64-mingw32-gcc -DHAVE_CONFIG_H -I. > -I/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw-w64/ > mingw-w64-tools/gende > f -I/mingw64/include -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 > -Werror -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -MT > src/gendef-gendef_def.o -MD -MP -MF src/.deps/gendef-gendef_def.Tpo -c -o > src/gendef-gendef_def.o `test -f 'src/gendef_def.c' || echo > '/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw-w64/mingw- > w64-tools/gendef > /'`src/gendef_def.c > > x86_64-w64-mingw32-gcc -DHAVE_CONFIG_H -I. > -I/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw-w64/ > mingw-w64-tools/gende > f -I/mingw64/include -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 > -Werror -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -MT > src/gendef-compat_string.o -MD -MP -MF src/.deps/gendef-compat_string.Tpo > -c > -o src/gendef-compat_string.o `test -f 'src/compat_string.c' || echo > '/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw-w64/mingw- > w64-tools/gendef > /'`src/compat_string.c > > x86_64-w64-mingw32-gcc -DHAVE_CONFIG_H -I. > -I/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw-w64/ > mingw-w64-tools/gende > f -I/mingw64/include -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 > -Werror -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -MT > src/gendef-fsredir.o -MD -MP -MF src/.deps/gendef-fsredir.Tpo -c -o > src/gendef-fsredir.o `test -f 'src/fsredir.c' || echo > '/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw-w64/mingw- > w64-tools/gendef > /'`src/fsredir.c > > mv -f src/.deps/gendef-compat_string.Tpo src/.deps/gendef-compat_string.Po > > mv -f src/.deps/gendef-gendef_def.Tpo src/.deps/gendef-gendef_def.Po > > mv -f src/.deps/gendef-gendef.Tpo src/.deps/gendef-gendef.Po > > mv -f src/.deps/gendef-fsredir.Tpo src/.deps/gendef-fsredir.Po > > x86_64-w64-mingw32-gcc -Werror -Wall -W -march=x86-64 -mtune=generic -O2 > -pipe -L/mingw64/lib -pipe -o gendef.exe src/gendef-gendef.o > src/gendef-gendef_def.o src/gendef-compat_string.o src/gendef-fsredir.o > -lmangle > > make[1]: Leaving directory > '/home/jpmugaas/exp/mingw-w64-tools-git/src/x86_64-w64-mingw32-gendef' > > Building genlib ... > > configure: loading site script /etc/config.site > > checking for a BSD-compatible install... /usr/bin/install -c > > checking whether build environment is sane... yes > > checking for a thread-safe mkdir -p... /usr/bin/mkdir -p > > checking for gawk... gawk > > checking whether make sets $(MAKE)... yes > > checking whether make supports nested variables... yes > > checking whether to enable maintainer-specific portions of Makefiles... no > > checking build system type... x86_64-w64-mingw32 > > checking host system type... x86_64-w64-mingw32 > > checking for x86_64-w64-mingw32-gcc... x86_64-w64-mingw32-gcc > > checking whether the C compiler works... yes > > checking for C compiler default output file name... a.exe > > checking for suffix of executables... .exe > > checking whether we are cross compiling... no > > checking for suffix of object files... o > > checking whether we are using the GNU C compiler... yes > > checking whether x86_64-w64-mingw32-gcc accepts -g... yes > > checking for x86_64-w64-mingw32-gcc option to accept ISO C89... none needed > > checking whether x86_64-w64-mingw32-gcc understands -c and -o together... > yes > > checking for style of include used by make... GNU > > checking dependency style of x86_64-w64-mingw32-gcc... gcc3 > > checking whether to build genlib with libmangle... yes > > checking how to run the C preprocessor... x86_64-w64-mingw32-gcc -E > > checking for grep that handles long lines and -e... /usr/bin/grep > > checking for egrep... /usr/bin/grep -E > > checking for ANSI C header files... yes > > checking for sys/types.h... yes > > checking for sys/stat.h... yes > > checking for stdlib.h... yes > > checking for string.h... yes > > checking for memory.h... yes > > checking for strings.h... yes > > checking for inttypes.h... yes > > checking for stdint.h... yes > > checking for unistd.h... yes > > checking libmangle.h usability... yes > > checking libmangle.h presence... yes > > checking for libmangle.h... yes > > checking for libmangle_print_decl in -lmangle... yes > > checking for inttypes.h... (cached) yes > > checking for memory.h... (cached) yes > > checking for stdint.h... (cached) yes > > checking for stdlib.h... (cached) yes > > checking for string.h... (cached) yes > > checking for int32_t... yes > > checking for size_t... yes > > checking for uint16_t... yes > > checking for uint32_t... yes > > checking for uint64_t... yes > > checking for uint8_t... yes > > checking for memset... yes > > checking for strdup... yes > > checking for strrchr... yes > > checking for strlwr... yes > > checking for floor in -lm... yes > > checking that generated files are newer than configure... done > > configure: creating ./config.status > > config.status: creating Makefile > > config.status: creating config.h > > config.status: executing depfiles commands > > make all-am > > make[1]: Entering directory > '/home/jpmugaas/exp/mingw-w64-tools-git/src/x86_64-w64-mingw32-genlib' > > x86_64-w64-mingw32-gcc -DHAVE_CONFIG_H -I. > -I/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw-w64/ > mingw-w64-tools/genli > b -I/mingw64/include > -I/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw-w64/ > mingw-w64-tools/genli > b/src -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -O3 -g -Wall -Wextra > -march=x86-64 -mtune=generic -O2 -pipe -MT src/genlib-genlib.o -MD -MP -MF > src/.deps/genlib-genlib.Tpo -c -o src/genlib-genlib.o `test -f > 'src/genlib.c' || echo > '/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw-w64/mingw- > w64-tools/genlib > /'`src/genlib.c > > x86_64-w64-mingw32-gcc -DHAVE_CONFIG_H -I. > -I/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw-w64/ > mingw-w64-tools/genli > b -I/mingw64/include > -I/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw-w64/ > mingw-w64-tools/genli > b/src -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -O3 -g -Wall -Wextra > -march=x86-64 -mtune=generic -O2 -pipe -MT src/genlib-deffun.o -MD -MP -MF > src/.deps/genlib-deffun.Tpo -c -o src/genlib-deffun.o `test -f > 'src/deffun.c' || echo > '/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw-w64/mingw- > w64-tools/genlib > /'`src/deffun.c > > x86_64-w64-mingw32-gcc -DHAVE_CONFIG_H -I. > -I/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw-w64/ > mingw-w64-tools/genli > b -I/mingw64/include > -I/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw-w64/ > mingw-w64-tools/genli > b/src -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -O3 -g -Wall -Wextra > -march=x86-64 -mtune=generic -O2 -pipe -MT src/genlib-deflex.o -MD -MP -MF > src/.deps/genlib-deflex.Tpo -c -o src/genlib-deflex.o `test -f > 'src/deflex.c' || echo > '/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw-w64/mingw- > w64-tools/genlib > /'`src/deflex.c > > x86_64-w64-mingw32-gcc -DHAVE_CONFIG_H -I. > -I/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw-w64/ > mingw-w64-tools/genli > b -I/mingw64/include > -I/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw-w64/ > mingw-w64-tools/genli > b/src -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -O3 -g -Wall -Wextra > -march=x86-64 -mtune=generic -O2 -pipe -MT src/genlib-defparse.o -MD -MP > -MF > src/.deps/genlib-defparse.Tpo -c -o src/genlib-defparse.o `test -f > 'src/defparse.c' || echo > '/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw-w64/mingw- > w64-tools/genlib > /'`src/defparse.c > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:65:1: error: unknown type name 'uint16_t'; did you > mean 'wint_t'? > > uint16_t machine_type; > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:79:3: error: unknown type name 'uint32_t' > > uint32_t data; > > ^~~~~~~~ > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:80:3: error: unknown type name 'uint32_t' > > uint32_t hint; > > ^~~~~~~~ > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:93:34: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > static void dump_iamh (FILE *fp, uint32_t size, char *name); > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:94:35: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > static void dump_ialm1 (FILE *fp, uint32_t id, uint32_t nid, uint32_t ntd); > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:94:48: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > static void dump_ialm1 (FILE *fp, uint32_t id, uint32_t nid, uint32_t ntd); > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:94:62: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > static void dump_ialm1 (FILE *fp, uint32_t id, uint32_t nid, uint32_t ntd); > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:95:35: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > static void dump_ialm2 (FILE *fp, uint32_t id, uint32_t nid, uint32_t ntd); > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:95:48: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > static void dump_ialm2 (FILE *fp, uint32_t id, uint32_t nid, uint32_t ntd); > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:95:62: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > static void dump_ialm2 (FILE *fp, uint32_t id, uint32_t nid, uint32_t ntd); > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:96:52: error: unknown type name 'uint16_t'; did you > mean 'wint_t'? > > static void dump_slif (FILE *fp, export_type *exp, uint16_t count); > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:97:33: error: unknown type name 'uint16_t'; did you > mean 'wint_t'? > > static void dump_ifh (FILE *fp, uint16_t nsects, uint32_t nsymbols, > uint32_t > offset); > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:97:50: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > static void dump_ifh (FILE *fp, uint16_t nsects, uint32_t nsymbols, > uint32_t > offset); > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:97:69: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > static void dump_ifh (FILE *fp, uint16_t nsects, uint32_t nsymbols, > uint32_t > offset); > > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:99:34: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > static void dump_ish2 (FILE *fp, uint32_t offset, uint32_t reloc); > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:99:51: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > static void dump_ish2 (FILE *fp, uint32_t offset, uint32_t reloc); > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:100:34: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > static void dump_ish3 (FILE *fp, uint32_t offset); > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:101:34: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > static void dump_ish4 (FILE *fp, uint32_t offset); > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:102:34: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > static void dump_ish5 (FILE *fp, uint32_t offset); > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:103:34: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > static void dump_ish6 (FILE *fp, uint32_t offset, uint32_t reloc); > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:103:51: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > static void dump_ish6 (FILE *fp, uint32_t offset, uint32_t reloc); > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:131:42: error: expected ',' or ';' before > 'PACKAGE_VERSION' > > "Short Import Library Compiler version " PACKAGE_VERSION "\n" > > ^~~~~~~~~~~~~~~ > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c: In function 'set_machine': > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:147:7: error: unknown type name 'uint16_t' > > uint16_t type; > > ^~~~~~~~ > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c: At top level: > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:287:15: error: unknown type name 'uint32_t' > > static inline uint32_t SYMBOLTABLE(export_type *exp) > > ^~~~~~~~ > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c: In function 'SYMBOLTABLE': > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:289:3: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > uint32_t stsize = 0; > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c: In function 'dump_lib': > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:337:3: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > uint32_t sizemagic = 8; > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:341:3: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > uint32_t sizelm1; > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:345:3: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > uint32_t sizelm2; > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:351:3: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > uint32_t sizelm3; > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:371:3: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > uint32_t nidaddr = 4 + 21 + strlen(base_name); > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:372:3: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > uint32_t ntdaddr = nidaddr + 25; > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:373:3: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > uint32_t idaddr = ntdaddr + 18 + strlen(base_name); > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:375:3: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > uint32_t size1even = 0; > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:376:3: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > uint32_t sizeam1 = 20 + (40*2) + 20 + 30 + strlen(dll_name) + (18*8) + > idaddr; > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:393:3: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > uint32_t sizeam2 = 20 + 40 + 20 + (18*2) + 4 + 26; > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:406:3: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > uint32_t size3even = 0; > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:407:3: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > uint32_t sizeam3 = 20 + 40*2 + 16 + (18*2) + 4 + strlen(base_name) + 18; > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:416:3: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > uint32_t id = sizemagic+sizelm1+sizelm2+120; > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:417:3: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > uint32_t nid = sizemagic+sizelm1+sizelm2+sizeam1+181; > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:418:3: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > uint32_t ntd = sizemagic+sizelm1+sizelm2+sizeam1+sizeam2+241; > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:420:3: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > uint32_t prevhint = > sizemagic+sizelm1+sizelm2+sizeam1+sizeam2+sizeam3+301; > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:421:3: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > uint32_t prevhelp=0; > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:430:5: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > uint32_t d_imp_size = strlen(exp->name) + strlen(dll_name) + 2; > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:439:3: warning: implicit declaration of function > 'dump_iamh'; did you mean 'dump_ialnm'? [-Wimplicit-function-declaration] > > dump_iamh(fp, sizelm1, NULL); > > ^~~~~~~~~ > > dump_ialnm > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:440:3: warning: implicit declaration of function > 'dump_ialm1'; did you mean 'dump_ialnm'? [-Wimplicit-function-declaration] > > dump_ialm1(fp, BYTESWAP32(id), BYTESWAP32(nid), BYTESWAP32(ntd)); > > ^~~~~~~~~~ > > dump_ialnm > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:444:3: warning: implicit declaration of function > 'dump_ialm2'; did you mean 'dump_ialnm'? [-Wimplicit-function-declaration] > > dump_ialm2(fp, id, nid, ntd); > > ^~~~~~~~~~ > > dump_ialnm > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:454:3: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > uint32_t i; > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:458:3: warning: implicit declaration of function > 'dump_ifh'; did you mean 'dump_lib'? [-Wimplicit-function-declaration] > > dump_ifh (fp, 2, 8, 150 + strlen(dll_name) + 1 +size1even); > > ^~~~~~~~ > > dump_lib > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:459:3: warning: implicit declaration of function > 'dump_ish2'; did you mean 'dump_ialnm'? [-Wimplicit-function-declaration] > > dump_ish2(fp, 100, 120); > > ^~~~~~~~~ > > dump_ialnm > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:460:3: warning: implicit declaration of function > 'dump_ish6'; did you mean 'dump_ialnm'? [-Wimplicit-function-declaration] > > dump_ish6(fp, 150, 120); > > ^~~~~~~~~ > > dump_ialnm > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:534:28: error: 'uint32_t' undeclared (first use in > this function); did you mean 'wint_t'? > > fwrite (&nidaddr, sizeof(uint32_t), 1, fp); > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:534:28: note: each undeclared identifier is reported > only once for each function it appears in > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:555:3: warning: implicit declaration of function > 'dump_ish3'; did you mean 'dump_ialnm'? [-Wimplicit-function-declaration] > > dump_ish3(fp, 60); > > ^~~~~~~~~ > > dump_ialnm > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:586:3: warning: implicit declaration of function > 'dump_ish5'; did you mean 'dump_ialnm'? [-Wimplicit-function-declaration] > > dump_ish5(fp, 100); > > ^~~~~~~~~ > > dump_ialnm > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:587:3: warning: implicit declaration of function > 'dump_ish4'; did you mean 'dump_ialnm'? [-Wimplicit-function-declaration] > > dump_ish4(fp, 100); > > ^~~~~~~~~ > > dump_ialnm > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:618:5: warning: implicit declaration of function > 'dump_slif'; did you mean 'dump_lib'? [-Wimplicit-function-declaration] > > dump_slif (fp,exp, i++); > > ^~~~~~~~~ > > dump_lib > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c: At top level: > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:637:21: error: unknown type name 'uint16_t'; did you > mean 'wint_t'? > > dump_ifh (FILE *fp, uint16_t nsects, uint32_t nsymbols, uint32_t offset) > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:637:38: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > dump_ifh (FILE *fp, uint16_t nsects, uint32_t nsymbols, uint32_t offset) > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:637:57: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > dump_ifh (FILE *fp, uint16_t nsects, uint32_t nsymbols, uint32_t offset) > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:658:22: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > dump_ish2 (FILE *fp, uint32_t offset, uint32_t reloc) > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:658:39: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > dump_ish2 (FILE *fp, uint32_t offset, uint32_t reloc) > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:688:23: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > dump_ish3 (FILE *fp , uint32_t offset) > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:718:23: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > dump_ish4 (FILE *fp , uint32_t offset) > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:748:23: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > dump_ish5 (FILE *fp , uint32_t offset) > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:778:22: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > dump_ish6 (FILE *fp, uint32_t offset, uint32_t reloc) > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:778:39: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > dump_ish6 (FILE *fp, uint32_t offset, uint32_t reloc) > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:811:22: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > dump_iamh (FILE *fp, uint32_t size, char *name) > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:866:23: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > dump_ialm1 (FILE *fp, uint32_t id, uint32_t nid, uint32_t ntd) > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:866:36: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > dump_ialm1 (FILE *fp, uint32_t id, uint32_t nid, uint32_t ntd) > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:866:50: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > dump_ialm1 (FILE *fp, uint32_t id, uint32_t nid, uint32_t ntd) > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:898:23: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > dump_ialm2 (FILE *fp, uint32_t id, uint32_t nid, uint32_t ntd) > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:898:36: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > dump_ialm2 (FILE *fp, uint32_t id, uint32_t nid, uint32_t ntd) > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:898:50: error: unknown type name 'uint32_t'; did you > mean 'wint_t'? > > dump_ialm2 (FILE *fp, uint32_t id, uint32_t nid, uint32_t ntd) > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/genlib.c:948:40: error: unknown type name 'uint16_t'; did you > mean 'wint_t'? > > dump_slif (FILE *fp, export_type *exp, uint16_t count) > > ^~~~~~~~ > > wint_t > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/deffun.c: In function 'def_name': > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/deffun.c:142:33: warning: unused parameter 'base' > [-Wunused-parameter] > > def_name (const char *name, int base) > > ^~~~ > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/deffun.c: In function 'def_library': > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/deffun.c:154:36: warning: unused parameter 'base' > [-Wunused-parameter] > > def_library (const char *name, int base) > > ^~~~ > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/deffun.c: In function 'def_version': > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/deffun.c:302:18: warning: unused parameter 'major' > [-Wunused-parameter] > > def_version (int major, int minor) > > ^~~~~ > > D:/msys64/home/jpmugaas/exp/mingw-w64-tools-git/src/mingw- > w64/mingw-w64-tool > s/genlib/src/deffun.c:302:29: warning: unused parameter 'minor' > [-Wunused-parameter] > > def_version (int major, int minor) > > ^~~~~ > > make[1]: *** [Makefile:452: src/genlib-genlib.o] Error 1 > > make[1]: *** Waiting for unfinished jobs.... > > mv -f src/.deps/genlib-deflex.Tpo src/.deps/genlib-deflex.Po > > mv -f src/.deps/genlib-defparse.Tpo src/.deps/genlib-defparse.Po > > mv -f src/.deps/genlib-deffun.Tpo src/.deps/genlib-deffun.Po > > make[1]: Leaving directory > '/home/jpmugaas/exp/mingw-w64-tools-git/src/x86_64-w64-mingw32-genlib' > > make: *** [Makefile:310: all] Error 2 > > ==> ERROR: A failure occurred in build(). > > Aborting... > > > > root@agnus2 MSYS /home/jpmugaas/exp/mingw-w64-tools-git > > $ > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Mingw-w64-public mailing list > Mingw-w64-public@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public