Running phase: unpackPhase unpacking source archive /nix/store/2xcfx71pzy8ia0lz0jz48wmgrdgakcxs-netboot-0.10.2.tar.gz source root is netboot-0.10.2 setting SOURCE_DATE_EPOCH to timestamp 1177267954 of file "netboot-0.10.2/nblib/sysdb.c" Running phase: patchPhase Running phase: updateAutotoolsGnuConfigScriptsPhase Updating Autotools / GNU config script to a newer upstream version: ./misc/config.sub Updating Autotools / GNU config script to a newer upstream version: ./misc/config.guess Running phase: configurePhase fixing libtool script ./misc/ltmain.sh patching script interpreter paths in ./configure ./configure: interpreter directive changed from "#! /bin/sh" to "/nix/store/11ciq72n4fdv8rw6wgjgasfv4mjs1jrw-bash-5.2p37/bin/sh" configure flags: --disable-static --prefix=/nix/store/vgdhqwb68wprlqk1bwi08alaanmcg251-netboot-0.10.2 checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc accepts -O2... -O2 checking for C compiler warning flags... -Wall checking for library containing strerror... none required checking for function prototypes... yes checking for an ANSI C-conforming const... yes checking for inline... inline checking for working volatile... yes checking if character set is EBCDIC... no checking for grep that handles long lines and -e... /nix/store/yz6nq9v29l3g990w8zlqsnzlzbicd3b3-gnugrep-3.11/bin/grep checking for egrep... /nix/store/yz6nq9v29l3g990w8zlqsnzlzbicd3b3-gnugrep-3.11/bin/grep -E checking for a BSD-compatible install... /nix/store/fr9yr63a1267cr0r86w18c77mh3xavcc-coreutils-9.6/bin/install -c checking for gawk... gawk checking how to run the C preprocessor... gcc -E checking for ar... ar checking for bison... bison -y checking for flex... no checking for lex... no checking for yywrap in -lfl... no checking for yywrap in -ll... no checking for a sed that does not truncate output... /nix/store/fcny04vmfnkqc4ym5m9znckswlq9pglg-gnused-4.9/bin/sed checking for ld used by gcc... ld checking if the linker (ld) is GNU ld... yes checking for ld option to reload object files... -r checking for BSD-compatible nm... nm checking whether ln -s works... yes checking how to recognise dependent libraries... (cached) pass_all ./configure: line 5385: /usr/bin/file: No such file or directory 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 dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C++ preprocessor... g++ -E checking for g77... no checking for f77... no checking for xlf... no checking for frt... no checking for pgf77... no checking for cf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for f90... no checking for xlf90... no checking for pgf90... no checking for pghpf... no checking for epcf90... no checking for gfortran... no checking for g95... no checking for f95... no checking for fort... no checking for xlf95... no checking for ifort... no checking for ifc... no checking for efc... no checking for pgf95... no checking for lf95... no checking for ftn... no checking whether we are using the GNU Fortran 77 compiler... no checking whether accepts -g... no checking the maximum length of command line arguments... 32768 checking command to parse nm output from gcc object... ok checking for objdir... .libs checking for ranlib... ranlib checking for strip... strip checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking whether the gcc linker (ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking for shl_load... no checking for shl_load in -ldld... no checking for dlopen... yes checking whether a program can dlopen itself... no checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: creating libtool checking for GNU C compiler... no checking for GNU assembler... /nix/store/ii75mhh7sxl11167m1b86p0qrjsjyjmd-gcc-wrapper-14-20241116/bin/as checking for GNU linker... /nix/store/ii75mhh7sxl11167m1b86p0qrjsjyjmd-gcc-wrapper-14-20241116/bin/ld configure: WARNING: Can't compile i86 modules, using default checking for ANSI C header files... (cached) yes checking whether stat file-mode macros are broken... no checking whether time.h and sys/time.h may both be included... yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for sys/wait.h that is POSIX.1 compatible... yes checking for getopt.h... yes checking for malloc.h... yes checking for netdb.h... yes checking for assert.h... yes checking for limits.h... yes checking for paths.h... yes checking for pwd.h... yes checking for locale.h... yes checking for langinfo.h... yes checking for sys/time.h... yes checking for sys/param.h... yes checking for sys/bitypes.h... yes checking for sys/file.h... yes checking for sys/select.h... yes checking for sys/poll.h... yes checking for netinet/in.h... yes checking for arpa/inet.h... yes checking whether errno must be declared... no checking whether struct tm is in sys/time.h or time.h... time.h checking return type of signal handlers... void checking for size_t... yes checking for pid_t... yes checking for uid_t in sys/types.h... yes checking for mode_t... yes checking for intptr_t... yes checking for strncmp... yes checking for strstr... yes checking for strspn... yes checking for strcspn... yes checking for strtol... yes checking for memset... yes checking for memcmp... yes checking for vfprintf... yes checking for vsprintf... yes checking for vasprintf... yes checking for bzero... yes checking for bcopy... yes checking for index... yes checking for rindex... yes checking for memcpy... yes checking for memmove... yes checking for strchr... yes checking for strrchr... yes checking for atexit... yes checking for getcwd... yes checking for waitpid... yes checking for raise... yes checking for select... yes checking for mkdir... yes checking for mkstemp... yes checking for getenv... yes checking for gettimeofday... yes checking for flock... yes checking for setlocale... yes checking for nl_langinfo... yes checking for getopt_long... yes checking for gethostbyname... yes checking for inet_ntoa... yes checking for inet_addr... yes checking for Berkeley DB >= 4.0.0... header db.h, library -ldb checking for unixODBC support... no checking for LZO compression support... no checking for packed attribute... yes checking for definition of __uxx in types.h... no checking for definition of u_intxx_t in types.h... yes checking for int *... yes checking size of int *... 8 checking for unsigned short... yes checking size of unsigned short... 2 checking for unsigned long... yes checking size of unsigned long... 8 checking for unsigned int... yes checking size of unsigned int... 4 checking whether system allows accessing misaligned data... no checking whether byte ordering is bigendian... no configure: creating ./config.status config.status: creating make.config config.status: creating include/version.h config.status: creating include/config.h Running phase: buildPhase build flags: SHELL=/nix/store/11ciq72n4fdv8rw6wgjgasfv4mjs1jrw-bash-5.2p37/bin/bash making all in include make[1]: Entering directory '/build/netboot-0.10.2/include' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/build/netboot-0.10.2/include' making all in misc make[1]: Entering directory '/build/netboot-0.10.2/misc' gcc -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/misc -o makec makec.c sed "s&%PREFIX%&/nix/store/vgdhqwb68wprlqk1bwi08alaanmcg251-netboot-0.10.2&g; \ s&%LIBDIR%&/nix/store/vgdhqwb68wprlqk1bwi08alaanmcg251-netboot-0.10.2/lib/netboot&g; \ s&%DATADIR%&/nix/store/vgdhqwb68wprlqk1bwi08alaanmcg251-netboot-0.10.2/share/netboot&g" instdrv.in >instdrv gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/misc -c -o gccrules.o gccrules.c make[2]: Entering directory '/build/netboot-0.10.2/nblib' mkdir .libs gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/nblib -c parseopt.c -fPIC -DPIC -o .libs/parseopt.o gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/nblib -c parsefile.c -fPIC -DPIC -o .libs/parsefile.o gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/nblib -c parsesect.c -fPIC -DPIC -o .libs/parsesect.o gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/nblib -c config.c -fPIC -DPIC -o .libs/config.o gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/nblib -DDEFAULT_DIR=\"/nix/store/vgdhqwb68wprlqk1bwi08alaanmcg251-netboot-0.10.2/lib/netboot\" -DDEFAULT_CONFIG=\"/nix/store/vgdhqwb68wprlqk1bwi08alaanmcg251-netboot-0.10.2/etc/netboot.config\" -DDEFAULT_DATABASE=\"//netboot.db\" -c setup.c -fPIC -DPIC -o .libs/setup.o gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/nblib -c sysdb.c -fPIC -DPIC -o .libs/sysdb.o gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/nblib -c dbsetup.c -fPIC -DPIC -o .libs/dbsetup.o gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/nblib -c db.c -fPIC -DPIC -o .libs/db.o gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/nblib -c dbmatch.c -fPIC -DPIC -o .libs/dbmatch.o gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/nblib -c dbtext.c -fPIC -DPIC -o .libs/dbtext.o gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/nblib -c charset.c -fPIC -DPIC -o .libs/charset.o gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/nblib -c memory.c -fPIC -DPIC -o .libs/memory.o gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/nblib -c signal.c -fPIC -DPIC -o .libs/signal.o gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/nblib -c nbmalloc.c -fPIC -DPIC -o .libs/nbmalloc.o gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/nblib -c nblog.c -fPIC -DPIC -o .libs/nblog.o gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/nblib -c nbexit.c -fPIC -DPIC -o .libs/nbexit.o nbexit.c: In function 'nberror': nbexit.c:152:17: warning: ignoring return value of 'vasprintf' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 152 | vasprintf(&nberrmsg, errmsg, args); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/nblib -c nbexec.c -fPIC -DPIC -o .libs/nbexec.o nbexec.c: In function 'nbexec': nbexec.c:221:23: warning: ignoring return value of 'dup' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 221 | (void)dup(stdinhandle); | ^~~~~~~~~~~~~~~~ nbexec.c:227:15: warning: ignoring return value of 'dup' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 227 | (void)dup(stdoutpipe[1]); | ^~~~~~~~~~~~~~~~~~ nbexec.c:233:15: warning: ignoring return value of 'dup' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 233 | (void)dup(stderrpipe[1]); | ^~~~~~~~~~~~~~~~~~ gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/nblib -c access.c -fPIC -DPIC -o .libs/access.o access.c: In function 'extractpath': access.c:50:17: warning: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-stringop-truncation-Wstringop-truncation8;;] 50 | strncpy(pp->name, str, len); | ^ access.c:46:31: note: length computed here 46 | len = ((cp == NULL) ? strlen(str) : (size_t)(cp - str)); | ^~~~~~~~~~~ gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/nblib -c fileio.c -fPIC -DPIC -o .libs/fileio.o gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/nblib -c filesize.c -fPIC -DPIC -o .libs/filesize.o gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/nblib -c filetime.c -fPIC -DPIC -o .libs/filetime.o gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/nblib -c lockfile.c -fPIC -DPIC -o .libs/lockfile.o gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/nblib -c tempfile.c -fPIC -DPIC -o .libs/tempfile.o gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/nblib -c md5.c -fPIC -DPIC -o .libs/md5.o gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/nblib -c readelf.c -fPIC -DPIC -o .libs/readelf.o In file included from readelf.c:46: readelf.c: In function 'slurp_symbols': /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ readelf.c:407:26: note: in expansion of macro 'get_long' 407 | psym->st_name = get_long(esyms[i].st_name); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ readelf.c:407:26: note: in expansion of macro 'get_long' 407 | psym->st_name = get_long(esyms[i].st_name); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ readelf.c:408:26: note: in expansion of macro 'get_long' 408 | psym->st_value = get_long(esyms[i].st_value); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ readelf.c:408:26: note: in expansion of macro 'get_long' 408 | psym->st_value = get_long(esyms[i].st_value); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ readelf.c:409:26: note: in expansion of macro 'get_long' 409 | psym->st_size = get_long(esyms[i].st_size); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ readelf.c:409:26: note: in expansion of macro 'get_long' 409 | psym->st_size = get_long(esyms[i].st_size); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct s_Elf_Sym' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ readelf.c:410:26: note: in expansion of macro 'get_word' 410 | psym->st_shndx = get_word(esyms[i].st_shndx); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ readelf.c:414:34: note: in expansion of macro 'get_long' 414 | psym->st_shndx = get_long(shndx[i].est_shndx); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ readelf.c:414:34: note: in expansion of macro 'get_long' 414 | psym->st_shndx = get_long(shndx[i].est_shndx); | ^~~~~~~~ readelf.c: In function 'slurp_rela_relocs': /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ readelf.c:463:26: note: in expansion of macro 'get_long' 463 | prel->r_offset = get_long(erels[i].r_offset); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ readelf.c:463:26: note: in expansion of macro 'get_long' 463 | prel->r_offset = get_long(erels[i].r_offset); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ readelf.c:464:26: note: in expansion of macro 'get_long' 464 | prel->r_info = get_long(erels[i].r_info); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ readelf.c:464:26: note: in expansion of macro 'get_long' 464 | prel->r_info = get_long(erels[i].r_info); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ readelf.c:465:26: note: in expansion of macro 'get_long' 465 | prel->r_addend = get_long(erels[i].r_addend); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ readelf.c:465:26: note: in expansion of macro 'get_long' 465 | prel->r_addend = get_long(erels[i].r_addend); | ^~~~~~~~ readelf.c: In function 'slurp_rel_relocs': /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ readelf.c:493:26: note: in expansion of macro 'get_long' 493 | prel->r_offset = get_long(erels[i].r_offset); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ readelf.c:493:26: note: in expansion of macro 'get_long' 493 | prel->r_offset = get_long(erels[i].r_offset); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ readelf.c:494:26: note: in expansion of macro 'get_long' 494 | prel->r_info = get_long(erels[i].r_info); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ readelf.c:494:26: note: in expansion of macro 'get_long' 494 | prel->r_info = get_long(erels[i].r_info); | ^~~~~~~~ readelf.c: In function 'get_program_headers': /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ readelf.c:802:30: note: in expansion of macro 'get_long' 802 | internal->p_type = get_long(phdrs[i].p_type); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ readelf.c:802:30: note: in expansion of macro 'get_long' 802 | internal->p_type = get_long(phdrs[i].p_type); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ readelf.c:803:30: note: in expansion of macro 'get_long' 803 | internal->p_offset = get_long(phdrs[i].p_offset); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ readelf.c:803:30: note: in expansion of macro 'get_long' 803 | internal->p_offset = get_long(phdrs[i].p_offset); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ readelf.c:804:30: note: in expansion of macro 'get_long' 804 | internal->p_vaddr = get_long(phdrs[i].p_vaddr); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ readelf.c:804:30: note: in expansion of macro 'get_long' 804 | internal->p_vaddr = get_long(phdrs[i].p_vaddr); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ readelf.c:805:30: note: in expansion of macro 'get_long' 805 | internal->p_paddr = get_long(phdrs[i].p_paddr); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ readelf.c:805:30: note: in expansion of macro 'get_long' 805 | internal->p_paddr = get_long(phdrs[i].p_paddr); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ readelf.c:806:30: note: in expansion of macro 'get_long' 806 | internal->p_filesz = get_long(phdrs[i].p_filesz); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ readelf.c:806:30: note: in expansion of macro 'get_long' 806 | internal->p_filesz = get_long(phdrs[i].p_filesz); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ readelf.c:807:30: note: in expansion of macro 'get_long' 807 | internal->p_memsz = get_long(phdrs[i].p_memsz); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ readelf.c:807:30: note: in expansion of macro 'get_long' 807 | internal->p_memsz = get_long(phdrs[i].p_memsz); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ readelf.c:808:30: note: in expansion of macro 'get_long' 808 | internal->p_flags = get_long(phdrs[i].p_flags); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ readelf.c:808:30: note: in expansion of macro 'get_long' 808 | internal->p_flags = get_long(phdrs[i].p_flags); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ readelf.c:809:30: note: in expansion of macro 'get_long' 809 | internal->p_align = get_long(phdrs[i].p_align); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ readelf.c:809:30: note: in expansion of macro 'get_long' 809 | internal->p_align = get_long(phdrs[i].p_align); | ^~~~~~~~ readelf.c: In function 'get_section_headers': /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ readelf.c:888:34: note: in expansion of macro 'get_long' 888 | internal->sh_name = get_long(shdrs[i].sh_name); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ readelf.c:888:34: note: in expansion of macro 'get_long' 888 | internal->sh_name = get_long(shdrs[i].sh_name); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ readelf.c:889:34: note: in expansion of macro 'get_long' 889 | internal->sh_type = get_long(shdrs[i].sh_type); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ readelf.c:889:34: note: in expansion of macro 'get_long' 889 | internal->sh_type = get_long(shdrs[i].sh_type); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ readelf.c:890:34: note: in expansion of macro 'get_long' 890 | internal->sh_flags = get_long(shdrs[i].sh_flags); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ readelf.c:890:34: note: in expansion of macro 'get_long' 890 | internal->sh_flags = get_long(shdrs[i].sh_flags); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ readelf.c:891:34: note: in expansion of macro 'get_long' 891 | internal->sh_addr = get_long(shdrs[i].sh_addr); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ readelf.c:891:34: note: in expansion of macro 'get_long' 891 | internal->sh_addr = get_long(shdrs[i].sh_addr); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ readelf.c:892:34: note: in expansion of macro 'get_long' 892 | internal->sh_offset = get_long(shdrs[i].sh_offset); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ readelf.c:892:34: note: in expansion of macro 'get_long' 892 | internal->sh_offset = get_long(shdrs[i].sh_offset); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ readelf.c:893:34: note: in expansion of macro 'get_long' 893 | internal->sh_size = get_long(shdrs[i].sh_size); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ readelf.c:893:34: note: in expansion of macro 'get_long' 893 | internal->sh_size = get_long(shdrs[i].sh_size); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ readelf.c:894:34: note: in expansion of macro 'get_long' 894 | internal->sh_link = get_long(shdrs[i].sh_link); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ readelf.c:894:34: note: in expansion of macro 'get_long' 894 | internal->sh_link = get_long(shdrs[i].sh_link); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ readelf.c:895:34: note: in expansion of macro 'get_long' 895 | internal->sh_info = get_long(shdrs[i].sh_info); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ readelf.c:895:34: note: in expansion of macro 'get_long' 895 | internal->sh_info = get_long(shdrs[i].sh_info); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ readelf.c:896:34: note: in expansion of macro 'get_long' 896 | internal->sh_addralign = get_long(shdrs[i].sh_addralign); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ readelf.c:896:34: note: in expansion of macro 'get_long' 896 | internal->sh_addralign = get_long(shdrs[i].sh_addralign); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ readelf.c:897:34: note: in expansion of macro 'get_long' 897 | internal->sh_entsize = get_long(shdrs[i].sh_entsize); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ readelf.c:897:34: note: in expansion of macro 'get_long' 897 | internal->sh_entsize = get_long(shdrs[i].sh_entsize); | ^~~~~~~~ readelf.c: In function 'get_file_header': /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct s_Elf_Ehdr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ readelf.c:950:28: note: in expansion of macro 'get_word' 950 | elf_header.e_type = get_word(ehdr.e_type); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct s_Elf_Ehdr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ readelf.c:951:28: note: in expansion of macro 'get_word' 951 | elf_header.e_machine = get_word(ehdr.e_machine); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ readelf.c:952:28: note: in expansion of macro 'get_long' 952 | elf_header.e_version = get_long(ehdr.e_version); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ readelf.c:952:28: note: in expansion of macro 'get_long' 952 | elf_header.e_version = get_long(ehdr.e_version); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ readelf.c:953:28: note: in expansion of macro 'get_long' 953 | elf_header.e_entry = get_long(ehdr.e_entry); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ readelf.c:953:28: note: in expansion of macro 'get_long' 953 | elf_header.e_entry = get_long(ehdr.e_entry); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ readelf.c:954:28: note: in expansion of macro 'get_long' 954 | elf_header.e_phoff = get_long(ehdr.e_phoff); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ readelf.c:954:28: note: in expansion of macro 'get_long' 954 | elf_header.e_phoff = get_long(ehdr.e_phoff); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ readelf.c:955:28: note: in expansion of macro 'get_long' 955 | elf_header.e_shoff = get_long(ehdr.e_shoff); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ readelf.c:955:28: note: in expansion of macro 'get_long' 955 | elf_header.e_shoff = get_long(ehdr.e_shoff); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ readelf.c:956:28: note: in expansion of macro 'get_long' 956 | elf_header.e_flags = get_long(ehdr.e_flags); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ readelf.c:956:28: note: in expansion of macro 'get_long' 956 | elf_header.e_flags = get_long(ehdr.e_flags); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct s_Elf_Ehdr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ readelf.c:957:28: note: in expansion of macro 'get_word' 957 | elf_header.e_ehsize = get_word(ehdr.e_ehsize); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct s_Elf_Ehdr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ readelf.c:958:28: note: in expansion of macro 'get_word' 958 | elf_header.e_phentsize = get_word(ehdr.e_phentsize); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct s_Elf_Ehdr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ readelf.c:959:28: note: in expansion of macro 'get_word' 959 | elf_header.e_phnum = get_word(ehdr.e_phnum); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct s_Elf_Ehdr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ readelf.c:960:28: note: in expansion of macro 'get_word' 960 | elf_header.e_shentsize = get_word(ehdr.e_shentsize); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct s_Elf_Ehdr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ readelf.c:961:28: note: in expansion of macro 'get_word' 961 | elf_header.e_shnum = get_word(ehdr.e_shnum); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct s_Elf_Ehdr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ readelf.c:962:28: note: in expansion of macro 'get_word' 962 | elf_header.e_shstrndx = get_word(ehdr.e_shstrndx); | ^~~~~~~~ In file included from /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/features.h:511, from /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/fcntl.h:25, from /build/netboot-0.10.2/include/common.h:49: In function 'read', inlined from 'get_file_header' at readelf.c:944:21, inlined from 'elfopen' at readelf.c:1091:8: /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/bits/unistd.h:32:10: warning: '__read_alias' writing 36 bytes into a region of size 2 overflows the destination [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-stringop-overflow-Wstringop-overflow=8;;] 32 | return __glibc_fortify (read, __nbytes, sizeof (char), | ^~~~~~~~~~~~~~~ In file included from readelf.c:48: /build/netboot-0.10.2/include/system/elf.h: In function 'elfopen': /build/netboot-0.10.2/include/system/elf.h:294:12: note: destination object 'e_type' of size 2 294 | __u16 e_type; /* Identifies object file type */ | ^~~~~~ /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/bits/unistd-decl.h:29:16: note: in a call to function '__read_alias' declared with attribute 'access (write_only, 2, 3)' 29 | extern ssize_t __REDIRECT_FORTIFY (__read_alias, (int __fd, void *__buf, | ^~~~~~~~~~~~~~~~~~ gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/nblib -c help.c -fPIC -DPIC -o .libs/help.o gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/nblib -c list.c -fPIC -DPIC -o .libs/list.o gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/nblib -c dbbdb.c -fPIC -DPIC -o .libs/dbbdb.o gcc -shared .libs/parseopt.o .libs/parsefile.o .libs/parsesect.o .libs/config.o .libs/setup.o .libs/sysdb.o .libs/dbsetup.o .libs/db.o .libs/dbmatch.o .libs/dbtext.o .libs/charset.o .libs/memory.o .libs/signal.o .libs/nbmalloc.o .libs/nblog.o .libs/nbexit.o .libs/nbexec.o .libs/access.o .libs/fileio.o .libs/filesize.o .libs/filetime.o .libs/lockfile.o .libs/tempfile.o .libs/md5.o .libs/readelf.o .libs/help.o .libs/list.o .libs/dbbdb.o -ldb -Wl,-soname -Wl,libnb.so.0 -o .libs/libnb.so.0.1.5 (cd .libs && rm -f libnb.so.0 && ln -s libnb.so.0.1.5 libnb.so.0) (cd .libs && rm -f libnb.so && ln -s libnb.so.0.1.5 libnb.so) creating libnb.la (cd .libs && rm -f libnb.la && ln -s ../libnb.la libnb.la) make[2]: Leaving directory '/build/netboot-0.10.2/nblib' mkdir .libs gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/misc -o gccrules gccrules.o -L/build/netboot-0.10.2/nblib /build/netboot-0.10.2/nblib/.libs/libnb.so -ldb -Wl,--rpath -Wl,/build/netboot-0.10.2/nblib/.libs -Wl,--rpath -Wl,/nix/store/vgdhqwb68wprlqk1bwi08alaanmcg251-netboot-0.10.2/lib ./gccrules -ogccopt.h rules.stack rules.gcc rules.post gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/misc -c -o gccopt.o gccopt.c gccopt.c: In function 'subst': gccopt.c:650:9: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-stringop-truncation-Wstringop-truncation8;;] 650 | strncpy(buf, vars[VARSTART], i); | ^ gccopt.c:646:18: note: length computed here 646 | if ((i = strlen(vars[VARSTART])) >= MAXLINE - 1) { | ^~~~~~~~~~~~~~~~~~~~~~ gccopt.c:775:9: warning: '__builtin___strncpy_chk' specified bound depends on the length of the source argument [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-stringop-truncation-Wstringop-truncation8;;] 775 | strncpy(&buf[j], vars[VAREND], (i - j)); | ^ gccopt.c:771:19: note: length computed here 771 | if ((i += strlen(vars[VAREND])) >= MAXLINE - 1) { | ^~~~~~~~~~~~~~~~~~~~ gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/misc -o gccopt gccopt.o -L/build/netboot-0.10.2/nblib /build/netboot-0.10.2/nblib/.libs/libnb.so -ldb -Wl,--rpath -Wl,/build/netboot-0.10.2/nblib/.libs -Wl,--rpath -Wl,/nix/store/vgdhqwb68wprlqk1bwi08alaanmcg251-netboot-0.10.2/lib gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/misc -c -o nbmd5.o nbmd5.c gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/misc -o .libs/nbmd5 nbmd5.o -L/build/netboot-0.10.2/nblib /build/netboot-0.10.2/nblib/.libs/libnb.so -ldb -Wl,--rpath -Wl,/nix/store/vgdhqwb68wprlqk1bwi08alaanmcg251-netboot-0.10.2/lib creating nbmd5 sed "s&%PREFIX%&/nix/store/vgdhqwb68wprlqk1bwi08alaanmcg251-netboot-0.10.2&g; \ s&%LIBDIR%&/nix/store/vgdhqwb68wprlqk1bwi08alaanmcg251-netboot-0.10.2/lib/netboot&g; \ s&%DATADIR%&/nix/store/vgdhqwb68wprlqk1bwi08alaanmcg251-netboot-0.10.2/share/netboot&g" netboot.config.in >netboot.config sed "s&%CONFIG%&/nix/store/vgdhqwb68wprlqk1bwi08alaanmcg251-netboot-0.10.2/etc/netboot.config&g; \ s&%LIBDIR%&/nix/store/vgdhqwb68wprlqk1bwi08alaanmcg251-netboot-0.10.2/lib/netboot&g; \ s&%DATADIR%&/nix/store/vgdhqwb68wprlqk1bwi08alaanmcg251-netboot-0.10.2/share/netboot&g" netboot.man.in >netboot.man cat netboot.drivers.in difs/3com.dif difs/adaptec.dif difs/amd.dif difs/compaq.dif difs/digital.dif difs/dlink.dif difs/hp.dif difs/ibm.dif difs/intel.dif difs/microdyne.dif difs/misc.dif difs/novell.dif difs/realtek.dif difs/smc.dif netboot.drivers.end >netboot.drivers make[1]: Leaving directory '/build/netboot-0.10.2/misc' making all in nblib make[1]: Entering directory '/build/netboot-0.10.2/nblib' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/build/netboot-0.10.2/nblib' making all in dbtool make[1]: Entering directory '/build/netboot-0.10.2/dbtool' gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/dbtool -c -o main.o main.c mkdir .libs gcc -o .libs/nbdbtool -s main.o -L/build/netboot-0.10.2/nblib /build/netboot-0.10.2/nblib/.libs/libnb.so -ldb -Wl,--rpath -Wl,/nix/store/vgdhqwb68wprlqk1bwi08alaanmcg251-netboot-0.10.2/lib creating nbdbtool make[1]: Leaving directory '/build/netboot-0.10.2/dbtool' making all in FlashCard make[1]: Entering directory '/build/netboot-0.10.2/FlashCard' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/build/netboot-0.10.2/FlashCard' making all in makerom make[1]: Entering directory '/build/netboot-0.10.2/makerom' gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/makerom -c -o main.o main.c gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/makerom -c -o doconfig.o doconfig.c gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/makerom -c -o drvdb.o drvdb.c gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/makerom -c -o getdb.o getdb.c gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/makerom -c -o user.o user.c gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/makerom -c -o passes.o passes.c In file included from passes.c:25: passes.c: In function 'pass1': /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct s_kernel_romid' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ passes.c:216:25: note: in expansion of macro 'get_word' 216 | kernstack = (get_word(idptr->stacksize) + 15L) / 16L; | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct s_kernel_romid' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ passes.c:217:25: note: in expansion of macro 'get_word' 217 | kerntotsize = (get_word(idptr->datasize) + 15L) / 16L; | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct s_kernel_romid' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ passes.c:218:25: note: in expansion of macro 'get_word' 218 | kerntotsize += (get_word(idptr->codesize) + 15L) / 16L; | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct s_undi_romid' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ passes.c:285:24: note: in expansion of macro 'get_word' 285 | netstack = (get_word(idptr->stacksize) + 15L) / 16L; | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct s_undi_romid' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ passes.c:286:24: note: in expansion of macro 'get_word' 286 | nettxtsize = (get_word(idptr->codesize) + 15L) / 16L; | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct s_undi_romid' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ passes.c:287:24: note: in expansion of macro 'get_word' 287 | nettotsize = (get_word(idptr->datasize) + 15L) / 16L; | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct s_undi_romid' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ passes.c:422:9: note: in expansion of macro 'assign' 422 | assign(idptr->datasize, htot((netdatsize * 16L) & 0xffff)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct s_undi_romid' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ passes.c:423:9: note: in expansion of macro 'assign' 423 | assign(idptr->codesize, htot((nettxtsize * 16L) & 0xffff)); | ^~~~~~ passes.c: In function 'pass2': /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct pcihdr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ passes.c:589:19: note: in expansion of macro 'get_word' 589 | pci_len = get_word(pci_ptr->size); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct pcihdr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ passes.c:596:17: note: in expansion of macro 'assign' 596 | assign(pci_ptr->vendorid, htot(bp->pci_vendid & 0xffff)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct pcihdr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ passes.c:597:17: note: in expansion of macro 'assign' 597 | assign(pci_ptr->deviceid, htot(bp->pci_devid & 0xffff)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct pcihdr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ passes.c:739:9: note: in expansion of macro 'assign' 739 | assign(pci_ptr->romlength, (__u16)(romsizchar & 0x00ff)); | ^~~~~~ gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/makerom -c -o netdrv.o netdrv.c In file included from netdrv.c:24: netdrv.c: In function 'copy_prog': /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct exehdr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ netdrv.c:195:27: note: in expansion of macro 'get_word' 195 | exehlen = get_word(exep->headsize) * 16; | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct exehdr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ netdrv.c:202:13: note: in expansion of macro 'get_word' 202 | l = get_word(exep->lastsect); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct exehdr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ netdrv.c:203:21: note: in expansion of macro 'get_word' 203 | exesize = (get_word(exep->fsize) - 1) * EXE_SECTSIZE; | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct exehdr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ netdrv.c:215:46: note: in expansion of macro 'get_word' 215 | allocmin = ((exesize + 15L) / 16L) + get_word(exep->minpara) + | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct exehdr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ netdrv.c:217:46: note: in expansion of macro 'get_word' 217 | allocmax = ((exesize + 15L) / 16L) + get_word(exep->maxpara) + | ^~~~~~~~ netdrv.c: In function 'dopktdrv': /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ netdrv.c:384:3: note: in expansion of macro 'assign' 384 | assign(il.low, htot(low_word(pdp->progs.prognum))); | ^~~~~~ netdrv.c: In function 'dondisdrv': /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ netdrv.c:416:3: note: in expansion of macro 'assign' 416 | assign(il.low, htot(low_word(pisize))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ netdrv.c:425:3: note: in expansion of macro 'assign' 425 | assign(il.low, htot(low_word(ndp->progs.prognum))); | ^~~~~~ gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/makerom -c -o freeze.o freeze.c gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/makerom -c -o protini.o protini.c In file included from protini.c:24: protini.c: In function 'putsection': /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ protini.c:240:9: note: in expansion of macro 'assign' 240 | assign(mp->next.offset, htot(newofs)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ protini.c:241:9: note: in expansion of macro 'assign' 241 | assign(mod.prev.offset, htot(lastmod)); | ^~~~~~ protini.c: In function 'putnumeric': /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct param_struct' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ protini.c:265:3: note: in expansion of macro 'assign' 265 | assign(par.paramtype, htot(PARAM_NUM)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct param_struct' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ protini.c:266:3: note: in expansion of macro 'assign' 266 | assign(par.paramlen, htot(4)); | ^~~~~~ protini.c: In function 'putstring': /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct param_struct' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ protini.c:291:3: note: in expansion of macro 'assign' 291 | assign(par.paramtype, htot(PARAM_STRING)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct param_struct' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ protini.c:292:3: note: in expansion of macro 'assign' 292 | assign(par.paramlen, htot(bytelen(str) + 1)); | ^~~~~~ protini.c: In function 'putparam': /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct keyword_entry' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ protini.c:335:3: note: in expansion of macro 'assign' 335 | assign(key.numparams, htot(argnum)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ protini.c:341:9: note: in expansion of macro 'assign' 341 | assign(kp->next.offset, htot(newofs)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ protini.c:342:9: note: in expansion of macro 'assign' 342 | assign(key.prev.offset, htot(lastkeyword)); | ^~~~~~ gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/makerom -c -o makeflash.o makeflash.c In file included from /build/netboot-0.10.2/include/common.h:66, from makeflash.c:24: makeflash.c: In function 'checkflash': /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct nbld_header' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:493:27: note: in expansion of macro 'ttoh' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ makeflash.c:62:22: note: in expansion of macro 'get_word' 62 | textsize = roundup(get_word(hp->textsize), (unsigned short)16); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct nbld_header' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:493:27: note: in expansion of macro 'ttoh' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ makeflash.c:62:22: note: in expansion of macro 'get_word' 62 | textsize = roundup(get_word(hp->textsize), (unsigned short)16); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct nbld_header' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ makeflash.c:63:14: note: in expansion of macro 'get_word' 63 | tableofs = get_word(hp->userptr); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct istruct' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ makeflash.c:66:19: note: in expansion of macro 'get_word' 66 | devtype = get_word(ip->devtype); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct istruct' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ makeflash.c:67:17: note: in expansion of macro 'get_word' 67 | idofs = get_word(ip->devlist); | ^~~~~~~~ makeflash.c: In function 'putrec': /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ makeflash.c:127:7: note: in expansion of macro 'get_long' 127 | l = get_long(cur_rec->ilength) + size; | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ makeflash.c:127:7: note: in expansion of macro 'get_long' 127 | l = get_long(cur_rec->ilength) + size; | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ makeflash.c:128:3: note: in expansion of macro 'assign' 128 | assign(cur_rec->ilength.low, htot(low_word(l))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ makeflash.c:129:3: note: in expansion of macro 'assign' 129 | assign(cur_rec->ilength.high, htot(high_word(l))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ makeflash.c:130:7: note: in expansion of macro 'get_long' 130 | l = get_long(cur_rec->mlength) + size; | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ makeflash.c:130:7: note: in expansion of macro 'get_long' 130 | l = get_long(cur_rec->mlength) + size; | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ makeflash.c:131:3: note: in expansion of macro 'assign' 131 | assign(cur_rec->mlength.low, htot(low_word(l))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ makeflash.c:132:3: note: in expansion of macro 'assign' 132 | assign(cur_rec->mlength.high, htot(high_word(l))); | ^~~~~~ makeflash.c: In function 'initrec': /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ makeflash.c:162:3: note: in expansion of macro 'assign' 162 | assign(cur_rec->address.low, htot(low_word(segment << 4))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ makeflash.c:163:3: note: in expansion of macro 'assign' 163 | assign(cur_rec->address.high, htot(high_word(segment << 4))); | ^~~~~~ makeflash.c: In function 'do_programmer': /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct nbld_header' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ makeflash.c:189:11: note: in expansion of macro 'get_word' 189 | tsize = get_word(hp->textsize); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct nbld_header' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ makeflash.c:190:11: note: in expansion of macro 'get_word' 190 | dsize = get_word(hp->datasize); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct nbld_header' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ makeflash.c:191:11: note: in expansion of macro 'get_word' 191 | ssize = get_word(hp->heapsize) + get_word(hp->stacksize); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct nbld_header' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ makeflash.c:191:36: note: in expansion of macro 'get_word' 191 | ssize = get_word(hp->heapsize) + get_word(hp->stacksize); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ makeflash.c:208:3: note: in expansion of macro 'assign' 208 | assign(cur_rec->mlength.low, htot(low_word(msize))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ makeflash.c:209:3: note: in expansion of macro 'assign' 209 | assign(cur_rec->mlength.high, htot(high_word(msize))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ makeflash.c:214:3: note: in expansion of macro 'assign' 214 | assign(header.execute.segment, htot(PROGRAMSEG)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct nbld_header' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:514:55: note: in definition of macro 'assign' 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^ makeflash.c:215:33: note: in expansion of macro 'getval' 215 | assign(header.execute.offset, getval(hp->nbsetup)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ makeflash.c:215:3: note: in expansion of macro 'assign' 215 | assign(header.execute.offset, getval(hp->nbsetup)); | ^~~~~~ makeflash.c: In function 'dump_header': /build/netboot-0.10.2/include/common.h:530:43: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ makeflash.c:254:11: note: in expansion of macro 'get_long' 254 | get_long(lh->magic), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:43: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ makeflash.c:254:11: note: in expansion of macro 'get_long' 254 | get_long(lh->magic), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:43: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ makeflash.c:259:11: note: in expansion of macro 'get_word' 259 | get_word(lh->locn.segment), get_word(lh->locn.offset), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:43: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ makeflash.c:259:39: note: in expansion of macro 'get_word' 259 | get_word(lh->locn.segment), get_word(lh->locn.offset), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:43: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ makeflash.c:260:11: note: in expansion of macro 'get_word' 260 | get_word(lh->execute.segment), get_word(lh->execute.offset), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:43: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ makeflash.c:260:42: note: in expansion of macro 'get_word' 260 | get_word(lh->execute.segment), get_word(lh->execute.offset), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ makeflash.c:286:13: note: in expansion of macro 'get_long' 286 | get_long(lr->address), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ makeflash.c:286:13: note: in expansion of macro 'get_long' 286 | get_long(lr->address), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ makeflash.c:287:13: note: in expansion of macro 'get_long' 287 | get_long(lr->address) >= 0x100000L && | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ makeflash.c:287:13: note: in expansion of macro 'get_long' 287 | get_long(lr->address) >= 0x100000L && | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ makeflash.c:289:13: note: in expansion of macro 'get_long' 289 | get_long(lr->ilength), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ makeflash.c:289:13: note: in expansion of macro 'get_long' 289 | get_long(lr->ilength), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ makeflash.c:290:13: note: in expansion of macro 'get_long' 290 | get_long(lr->mlength)); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ makeflash.c:290:13: note: in expansion of macro 'get_long' 290 | get_long(lr->mlength)); | ^~~~~~~~ makeflash.c: In function 'makeflash': /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ makeflash.c:325:3: note: in expansion of macro 'assign' 325 | assign(header.magic.low, htot(low_word(NBHEADER_MAGIC))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ makeflash.c:326:3: note: in expansion of macro 'assign' 326 | assign(header.magic.high, htot(high_word(NBHEADER_MAGIC))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ makeflash.c:327:3: note: in expansion of macro 'assign' 327 | assign(header.locn.segment, htot(HEADERSEG)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ makeflash.c:328:3: note: in expansion of macro 'assign' 328 | assign(header.locn.offset, htot(0)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct load_header' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ makeflash.c:329:3: note: in expansion of macro 'assign' 329 | assign(header.bootsig, htot(NBHEADER_SIG)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ makeflash.c:344:3: note: in expansion of macro 'assign' 344 | assign(cur_rec->vendor_data.ldsize.low, htot(low_word(ldsize))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ makeflash.c:345:3: note: in expansion of macro 'assign' 345 | assign(cur_rec->vendor_data.ldsize.high, htot(high_word(ldsize))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ makeflash.c:346:3: note: in expansion of macro 'assign' 346 | assign(cur_rec->mlength.low, htot(low_word(ROMIMAGEMADD))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ makeflash.c:347:3: note: in expansion of macro 'assign' 347 | assign(cur_rec->mlength.high, htot(high_word(ROMIMAGEMADD))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ makeflash.c:350:7: note: in expansion of macro 'get_long' 350 | if (get_long(cur_rec->mlength) > ROMIMAGEMAX) { | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ makeflash.c:350:7: note: in expansion of macro 'get_long' 350 | if (get_long(cur_rec->mlength) > ROMIMAGEMAX) { | ^~~~~~~~ gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/makerom -c -o makehex.o makehex.c gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/makerom -c -o console.o console.c console.c: In function 'getstring': console.c:573:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 573 | fgets(buf, sizeof(buf) - 1, stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/makerom -c -o md5.o md5.c gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/makerom -c -o install.o install.c cp flash_c.c-default flash_c.c gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/makerom -c -o flash_c.o flash_c.c mkdir .libs gcc -o .libs/makerom -s main.o doconfig.o drvdb.o getdb.o user.o passes.o netdrv.o freeze.o protini.o makeflash.o makehex.o console.o md5.o install.o flash_c.o -L/build/netboot-0.10.2/nblib /build/netboot-0.10.2/nblib/.libs/libnb.so -ldb -Wl,--rpath -Wl,/nix/store/vgdhqwb68wprlqk1bwi08alaanmcg251-netboot-0.10.2/lib creating makerom make[1]: Leaving directory '/build/netboot-0.10.2/makerom' making all in mknbi-dos make[1]: Entering directory '/build/netboot-0.10.2/mknbi-dos' gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/mknbi-dos -c -o mknbi.o mknbi.c In file included from mknbi.c:24: mknbi.c: In function 'putrec': /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ mknbi.c:149:7: note: in expansion of macro 'get_long' 149 | l = get_long(cur_rec->ilength) + size; | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ mknbi.c:149:7: note: in expansion of macro 'get_long' 149 | l = get_long(cur_rec->ilength) + size; | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:150:3: note: in expansion of macro 'assign' 150 | assign(cur_rec->ilength.low, htot(low_word(l))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:151:3: note: in expansion of macro 'assign' 151 | assign(cur_rec->ilength.high, htot(high_word(l))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ mknbi.c:152:7: note: in expansion of macro 'get_long' 152 | l = get_long(cur_rec->mlength) + size; | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ mknbi.c:152:7: note: in expansion of macro 'get_long' 152 | l = get_long(cur_rec->mlength) + size; | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:153:3: note: in expansion of macro 'assign' 153 | assign(cur_rec->mlength.low, htot(low_word(l))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:154:3: note: in expansion of macro 'assign' 154 | assign(cur_rec->mlength.high, htot(high_word(l))); | ^~~~~~ mknbi.c: In function 'initrec': /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:184:3: note: in expansion of macro 'assign' 184 | assign(cur_rec->address.low, htot(low_word(segment << 4))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:185:3: note: in expansion of macro 'assign' 185 | assign(cur_rec->address.high, htot(high_word(segment << 4))); | ^~~~~~ mknbi.c: In function 'do_loader': /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct nbld_header' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ mknbi.c:210:11: note: in expansion of macro 'get_word' 210 | tsize = get_word(hp->textsize); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct nbld_header' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ mknbi.c:211:11: note: in expansion of macro 'get_word' 211 | dsize = get_word(hp->datasize); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct nbld_header' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ mknbi.c:212:11: note: in expansion of macro 'get_word' 212 | ssize = get_word(hp->heapsize) + get_word(hp->stacksize); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct nbld_header' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ mknbi.c:212:36: note: in expansion of macro 'get_word' 212 | ssize = get_word(hp->heapsize) + get_word(hp->stacksize); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:237:3: note: in expansion of macro 'assign' 237 | assign(cur_rec->mlength.low, htot(low_word(msize))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:238:3: note: in expansion of macro 'assign' 238 | assign(cur_rec->mlength.high, htot(high_word(msize))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:243:3: note: in expansion of macro 'assign' 243 | assign(header.execute.segment, htot(LOADERSEG)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct nbld_header' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:514:55: note: in definition of macro 'assign' 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^ mknbi.c:244:33: note: in expansion of macro 'getval' 244 | assign(header.execute.offset, getval(hp->nbsetup)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:244:3: note: in expansion of macro 'assign' 244 | assign(header.execute.offset, getval(hp->nbsetup)); | ^~~~~~ In file included from /build/netboot-0.10.2/include/common.h:66: mknbi.c: In function 'do_ramdisk': /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:494:43: note: in expansion of macro 'ttoh' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ mknbi.c:277:20: note: in expansion of macro 'get_long' 277 | rdsize = roundup(get_long(geometry->num_sectors) * SECTSIZE, 1024); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:495:49: note: in expansion of macro 'ttoh' 495 | ttoh(getval((a).low)))) | ^~~~ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ mknbi.c:277:20: note: in expansion of macro 'get_long' 277 | rdsize = roundup(get_long(geometry->num_sectors) * SECTSIZE, 1024); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:494:43: note: in expansion of macro 'ttoh' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ mknbi.c:277:20: note: in expansion of macro 'get_long' 277 | rdsize = roundup(get_long(geometry->num_sectors) * SECTSIZE, 1024); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:495:49: note: in expansion of macro 'ttoh' 495 | ttoh(getval((a).low)))) | ^~~~ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ mknbi.c:277:20: note: in expansion of macro 'get_long' 277 | rdsize = roundup(get_long(geometry->num_sectors) * SECTSIZE, 1024); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:451:3: note: in expansion of macro 'assign' 451 | assign(cur_rec->mlength.low, htot(low_word(rdsize))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:452:3: note: in expansion of macro 'assign' 452 | assign(cur_rec->mlength.high, htot(high_word(rdsize))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:454:3: note: in expansion of macro 'assign' 454 | assign(cur_rec->address.low, htot(low_word(l))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:455:3: note: in expansion of macro 'assign' 455 | assign(cur_rec->address.high, htot(high_word(l))); | ^~~~~~ mknbi.c: In function 'dump_header': /build/netboot-0.10.2/include/common.h:530:43: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ mknbi.c:524:11: note: in expansion of macro 'get_long' 524 | get_long(lh->magic), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:43: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ mknbi.c:524:11: note: in expansion of macro 'get_long' 524 | get_long(lh->magic), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:43: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ mknbi.c:530:11: note: in expansion of macro 'get_word' 530 | get_word(lh->locn.segment), get_word(lh->locn.offset), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:43: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ mknbi.c:530:39: note: in expansion of macro 'get_word' 530 | get_word(lh->locn.segment), get_word(lh->locn.offset), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:43: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ mknbi.c:531:11: note: in expansion of macro 'get_word' 531 | get_word(lh->execute.segment), get_word(lh->execute.offset), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:43: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ mknbi.c:531:42: note: in expansion of macro 'get_word' 531 | get_word(lh->execute.segment), get_word(lh->execute.offset), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ mknbi.c:557:13: note: in expansion of macro 'get_long' 557 | get_long(lr->address), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ mknbi.c:557:13: note: in expansion of macro 'get_long' 557 | get_long(lr->address), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ mknbi.c:558:13: note: in expansion of macro 'get_long' 558 | get_long(lr->address) >= 0x100000L && | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ mknbi.c:558:13: note: in expansion of macro 'get_long' 558 | get_long(lr->address) >= 0x100000L && | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ mknbi.c:560:13: note: in expansion of macro 'get_long' 560 | get_long(lr->ilength), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ mknbi.c:560:13: note: in expansion of macro 'get_long' 560 | get_long(lr->ilength), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ mknbi.c:561:13: note: in expansion of macro 'get_long' 561 | get_long(lr->mlength)); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ mknbi.c:561:13: note: in expansion of macro 'get_long' 561 | get_long(lr->mlength)); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct disk_geometry' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ mknbi.c:564:29: note: in expansion of macro 'get_word' 564 | int heads = get_word(lr->vendor_data.geometry.num_heads); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct disk_geometry' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ mknbi.c:565:28: note: in expansion of macro 'get_word' 565 | int cyls = get_word(lr->vendor_data.geometry.cylinders); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct disk_geometry' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ mknbi.c:566:27: note: in expansion of macro 'get_word' 566 | int spt = get_word(lr->vendor_data.geometry.sect_per_track); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:43: warning: taking address of packed member of 'union vendor_data' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ mknbi.c:567:30: note: in expansion of macro 'get_word' 567 | int diskid = get_word(lr->vendor_data.geometry.boot_drive); | ^~~~~~~~ mknbi.c: In function 'main': /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:712:3: note: in expansion of macro 'assign' 712 | assign(header.magic.low, htot(low_word(NBHEADER_MAGIC))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:713:3: note: in expansion of macro 'assign' 713 | assign(header.magic.high, htot(high_word(NBHEADER_MAGIC))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:714:3: note: in expansion of macro 'assign' 714 | assign(header.locn.segment, htot(HEADERSEG)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:715:3: note: in expansion of macro 'assign' 715 | assign(header.locn.offset, htot(0)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct load_header' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:716:3: note: in expansion of macro 'assign' 716 | assign(header.bootsig, htot(NBHEADER_SIG)); | ^~~~~~ gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/mknbi-dos -c -o sysdb.o sysdb.c gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/mknbi-dos -c -o openrd.o openrd.c In file included from openrd.c:26: openrd.c: In function 'putpart': /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:129:3: note: in expansion of macro 'assign' 129 | assign(part->number_sectors.low, htot(low_word(sectnum))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:130:3: note: in expansion of macro 'assign' 130 | assign(part->number_sectors.high, htot(high_word(sectnum))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:131:3: note: in expansion of macro 'assign' 131 | assign(part->first_abs_sector.low, htot(low_word(curformat->spt))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:132:3: note: in expansion of macro 'assign' 132 | assign(part->first_abs_sector.high, htot(high_word(curformat->spt))); | ^~~~~~ openrd.c: In function 'set_boot_block': /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct boot_record' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:174:3: note: in expansion of macro 'assign' 174 | assign(bp->bytes_per_sect, htot(SECTSIZE)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct boot_record' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:175:3: note: in expansion of macro 'assign' 175 | assign(bp->dir_num, htot(curformat->rootentries)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct boot_record' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:176:3: note: in expansion of macro 'assign' 176 | assign(bp->sect_per_fat, htot(curformat->fatsects)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct boot_record' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:177:3: note: in expansion of macro 'assign' 177 | assign(bp->sect_per_track, htot(curformat->spt)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct boot_record' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:178:3: note: in expansion of macro 'assign' 178 | assign(bp->head_num, htot(curformat->heads)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct boot_record' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:184:3: note: in expansion of macro 'assign' 184 | assign(bp->sect_num, htot(l & 0xffff)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:185:3: note: in expansion of macro 'assign' 185 | assign(bp->sect_num_32.low, htot(low_word(l))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:186:3: note: in expansion of macro 'assign' 186 | assign(bp->sect_num_32.high, htot(high_word(l))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:188:9: note: in expansion of macro 'assign' 188 | assign(bp->hidden_num.low, htot(low_word(curformat->spt))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:189:9: note: in expansion of macro 'assign' 189 | assign(bp->hidden_num.high, htot(high_word(curformat->spt))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:191:9: note: in expansion of macro 'assign' 191 | assign(bp->hidden_num.low, htot(0)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:192:9: note: in expansion of macro 'assign' 192 | assign(bp->hidden_num.high, htot(0)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct priv_boot' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:214:17: note: in expansion of macro 'assign' 214 | assign(pbp->io_sys_sects, htot(io_sys_sects)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct priv_boot' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:215:17: note: in expansion of macro 'assign' 215 | assign(pbp->io_sys_ofs, htot(io_sys_seg * 16)); | ^~~~~~ openrd.c: In function 'writelfn': /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct lfn_dir' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:727:17: note: in expansion of macro 'assign' 727 | assign(lfnp->first_part[j], htot(*cp)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct lfn_dir' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:729:17: note: in expansion of macro 'assign' 729 | assign(lfnp->second_part[j - 5], htot(*cp)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct lfn_dir' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:731:17: note: in expansion of macro 'assign' 731 | assign(lfnp->third_part[j - 11], htot(*cp)); | ^~~~~~ openrd.c: In function 'writedir': /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct dos_dir' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:800:9: note: in expansion of macro 'assign' 800 | assign(dirp->time, htot(dsp->time)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct dos_dir' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:801:9: note: in expansion of macro 'assign' 801 | assign(dirp->date, htot(dsp->date)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct dos_dir' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:802:9: note: in expansion of macro 'assign' 802 | assign(dirp->cluster, htot(dsp->cluster)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:803:9: note: in expansion of macro 'assign' 803 | assign(dirp->size.low, htot(0)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:804:9: note: in expansion of macro 'assign' 804 | assign(dirp->size.high, htot(0)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct dos_dir' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:809:9: note: in expansion of macro 'assign' 809 | assign(dirp->time, htot(parent->time)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct dos_dir' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:810:9: note: in expansion of macro 'assign' 810 | assign(dirp->date, htot(parent->date)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct dos_dir' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:811:9: note: in expansion of macro 'assign' 811 | assign(dirp->cluster, htot(parent->cluster)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:812:9: note: in expansion of macro 'assign' 812 | assign(dirp->size.low, htot(0)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:813:9: note: in expansion of macro 'assign' 813 | assign(dirp->size.high, htot(0)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct dos_dir' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:828:9: note: in expansion of macro 'assign' 828 | assign(dirp->time, htot(fsp->time)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct dos_dir' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:829:9: note: in expansion of macro 'assign' 829 | assign(dirp->date, htot(fsp->date)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct dos_dir' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:830:9: note: in expansion of macro 'assign' 830 | assign(dirp->cluster, htot(fsp->cluster)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:831:9: note: in expansion of macro 'assign' 831 | assign(dirp->size.low, htot(low_word(fsp->size))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:832:9: note: in expansion of macro 'assign' 832 | assign(dirp->size.high, htot(high_word(fsp->size))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct dos_dir' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:843:9: note: in expansion of macro 'assign' 843 | assign(dirp->time, htot(subdsp->time)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct dos_dir' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:844:9: note: in expansion of macro 'assign' 844 | assign(dirp->date, htot(subdsp->date)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct dos_dir' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:845:9: note: in expansion of macro 'assign' 845 | assign(dirp->cluster, htot(subdsp->cluster)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:846:9: note: in expansion of macro 'assign' 846 | assign(dirp->size.low, htot(0)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:847:9: note: in expansion of macro 'assign' 847 | assign(dirp->size.high, htot(0)); | ^~~~~~ openrd.c: In function 'openrd': /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:1189:3: note: in expansion of macro 'assign' 1189 | assign(geom->num_sectors.low, htot(low_word(sectnum))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:1190:3: note: in expansion of macro 'assign' 1190 | assign(geom->num_sectors.high, htot(high_word(sectnum))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct disk_geometry' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:1191:3: note: in expansion of macro 'assign' 1191 | assign(geom->sect_per_track, htot(curformat->spt)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct disk_geometry' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:1192:3: note: in expansion of macro 'assign' 1192 | assign(geom->cylinders, htot(curformat->tracks)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct disk_geometry' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ openrd.c:1193:3: note: in expansion of macro 'assign' 1193 | assign(geom->num_heads, htot(curformat->heads)); | ^~~~~~ gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/mknbi-dos -c -o hostfs.o hostfs.c In file included from hostfs.c:27: hostfs.c: In function 'hostopen': /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct boot_record' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ hostfs.c:368:3: note: in expansion of macro 'assign' 368 | assign(bp->reserved_sect, htot(filesys->boot_size / SECTSIZE)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ hostfs.c:374:3: note: in expansion of macro 'assign' 374 | assign(bp->vol_num.low, htot(low_word(serial.serno))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ hostfs.c:375:3: note: in expansion of macro 'assign' 375 | assign(bp->vol_num.high, htot(high_word(serial.serno))); | ^~~~~~ hostfs.c: In function 'rdhostdir': hostfs.c:283:32: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wformat-overflow-Wformat-overflow=8;;] 283 | sprintf(tmppath, "%s/%s", path, ent->d_name); | ^ In file included from /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/stdio.h:970, from /build/netboot-0.10.2/include/common.h:50: In function 'sprintf', inlined from 'rdhostdir' at hostfs.c:283:2: /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 2 or more bytes (assuming 257) into a destination of size 256 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/mknbi-dos -c -o fatfs.o fatfs.c In file included from fatfs.c:25: fatfs.c: In function 'fatopendir': /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct dos_dir' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ fatfs.c:202:27: note: in expansion of macro 'get_word' 202 | dp->fp = openfile(get_word(dirp->cluster), get_long(dirp->size)); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ fatfs.c:202:52: note: in expansion of macro 'get_long' 202 | dp->fp = openfile(get_word(dirp->cluster), get_long(dirp->size)); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ fatfs.c:202:52: note: in expansion of macro 'get_long' 202 | dp->fp = openfile(get_word(dirp->cluster), get_long(dirp->size)); | ^~~~~~~~ fatfs.c: In function 'rdfatdir': /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct dos_dir' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ fatfs.c:319:21: note: in expansion of macro 'get_word' 319 | dsp->time = get_word(src_dirp->time); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct dos_dir' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ fatfs.c:320:21: note: in expansion of macro 'get_word' 320 | dsp->date = get_word(src_dirp->date); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct dos_dir' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ fatfs.c:321:28: note: in expansion of macro 'get_word' 321 | dsp->src.cluster = get_word(src_dirp->cluster); | ^~~~~~~~ fatfs.c:359:26: warning: taking address of packed member of 'struct lfn_dir' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 359 | tmpptr = lfnp->first_part; | ^~~~ fatfs.c:366:42: warning: taking address of packed member of 'struct lfn_dir' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 366 | tmpptr = lfnp->second_part; | ^~~~ fatfs.c:368:42: warning: taking address of packed member of 'struct lfn_dir' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 368 | tmpptr = lfnp->third_part; | ^~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct dos_dir' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ fatfs.c:399:29: note: in expansion of macro 'get_word' 399 | fsp->time = get_word(dirp->time); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct dos_dir' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ fatfs.c:400:29: note: in expansion of macro 'get_word' 400 | fsp->date = get_word(dirp->date); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct dos_dir' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ fatfs.c:401:36: note: in expansion of macro 'get_word' 401 | fsp->src.cluster = get_word(dirp->cluster); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ fatfs.c:402:29: note: in expansion of macro 'get_long' 402 | fsp->size = get_long(dirp->size); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ fatfs.c:402:29: note: in expansion of macro 'get_long' 402 | fsp->size = get_long(dirp->size); | ^~~~~~~~ fatfs.c: In function 'fatopen': /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct boot_record' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ fatfs.c:495:7: note: in expansion of macro 'getval' 495 | if (getval(bootrec->bytes_per_sect) != htot(SECTSIZE)) { | ^~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct boot_record' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ fatfs.c:504:16: note: in expansion of macro 'get_word' 504 | fat_offset = get_word(bootrec->reserved_sect) * SECTSIZE; | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct boot_record' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ fatfs.c:505:17: note: in expansion of macro 'get_word' 505 | total_sects = get_word(bootrec->sect_num); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ fatfs.c:507:23: note: in expansion of macro 'get_long' 507 | total_sects = get_long(bootrec->sect_num_32); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ fatfs.c:507:23: note: in expansion of macro 'get_long' 507 | total_sects = get_long(bootrec->sect_num_32); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct boot_record' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ fatfs.c:515:18: note: in expansion of macro 'get_word' 515 | sect_per_fat = get_word(bootrec->sect_per_fat); | ^~~~~~~~ In file included from /build/netboot-0.10.2/include/common.h:66: /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct boot_record' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:493:27: note: in expansion of macro 'ttoh' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ fatfs.c:522:22: note: in expansion of macro 'get_word' 522 | rootsize = roundup(get_word(bootrec->dir_num) * sizeof(struct dos_dir), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct boot_record' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:493:27: note: in expansion of macro 'ttoh' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ fatfs.c:522:22: note: in expansion of macro 'get_word' 522 | rootsize = roundup(get_word(bootrec->dir_num) * sizeof(struct dos_dir), | ^~~~~~~~ gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/mknbi-dos -c -o misc.o misc.c cp boot_c.c-default boot_c.c gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/mknbi-dos -c -o boot_c.o boot_c.c cp first_c.c-default first_c.c gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/mknbi-dos -c -o first_c.o first_c.c cp firstd_c.c-default firstd_c.c gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/mknbi-dos -c -o firstd_c.o firstd_c.c mkdir .libs gcc -o .libs/mknbi -s mknbi.o sysdb.o openrd.o hostfs.o fatfs.o misc.o boot_c.o first_c.o firstd_c.o -L/build/netboot-0.10.2/nblib /build/netboot-0.10.2/nblib/.libs/libnb.so -ldb -Wl,--rpath -Wl,/nix/store/vgdhqwb68wprlqk1bwi08alaanmcg251-netboot-0.10.2/lib creating mknbi make[1]: Leaving directory '/build/netboot-0.10.2/mknbi-dos' making all in mknbi-linux make[1]: Entering directory '/build/netboot-0.10.2/mknbi-linux' gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/mknbi-linux -c -o mknbi.o mknbi.c In file included from mknbi.c:26: mknbi.c: In function 'get_setup': /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct setup_header' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ mknbi.c:144:7: note: in expansion of macro 'get_word' 144 | get_word(setup_hdr.version) < SETUP_VERSION_OLD) { | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct setup_header' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ mknbi.c:150:7: note: in expansion of macro 'get_word' 150 | i = get_word(setup_hdr.kernel_version); | ^~~~~~~~ mknbi.c: In function 'putrec': /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ mknbi.c:198:7: note: in expansion of macro 'get_long' 198 | l = get_long(cur_rec->ilength) + size; | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ mknbi.c:198:7: note: in expansion of macro 'get_long' 198 | l = get_long(cur_rec->ilength) + size; | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:199:3: note: in expansion of macro 'assign' 199 | assign(cur_rec->ilength.low, htot(low_word(l))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:200:3: note: in expansion of macro 'assign' 200 | assign(cur_rec->ilength.high, htot(high_word(l))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ mknbi.c:201:7: note: in expansion of macro 'get_long' 201 | l = get_long(cur_rec->mlength) + size; | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ mknbi.c:201:7: note: in expansion of macro 'get_long' 201 | l = get_long(cur_rec->mlength) + size; | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:202:3: note: in expansion of macro 'assign' 202 | assign(cur_rec->mlength.low, htot(low_word(l))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:203:3: note: in expansion of macro 'assign' 203 | assign(cur_rec->mlength.high, htot(high_word(l))); | ^~~~~~ mknbi.c: In function 'initrec': /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:272:3: note: in expansion of macro 'assign' 272 | assign(cur_rec->address.low, htot(low_word(segment << 4))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:273:3: note: in expansion of macro 'assign' 273 | assign(cur_rec->address.high, htot(high_word(segment << 4))); | ^~~~~~ mknbi.c: In function 'do_loader': /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct nbld_header' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ mknbi.c:298:11: note: in expansion of macro 'get_word' 298 | tsize = get_word(hp->textsize); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct nbld_header' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ mknbi.c:299:11: note: in expansion of macro 'get_word' 299 | dsize = get_word(hp->datasize); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct nbld_header' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ mknbi.c:300:11: note: in expansion of macro 'get_word' 300 | ssize = get_word(hp->heapsize) + get_word(hp->stacksize); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct nbld_header' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ mknbi.c:300:36: note: in expansion of macro 'get_word' 300 | ssize = get_word(hp->heapsize) + get_word(hp->stacksize); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:317:3: note: in expansion of macro 'assign' 317 | assign(cur_rec->mlength.low, htot(low_word(msize))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:318:3: note: in expansion of macro 'assign' 318 | assign(cur_rec->mlength.high, htot(high_word(msize))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:323:3: note: in expansion of macro 'assign' 323 | assign(header.execute.segment, htot(DEF_BOOTLSEG)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct nbld_header' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:514:55: note: in definition of macro 'assign' 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^ mknbi.c:324:33: note: in expansion of macro 'getval' 324 | assign(header.execute.offset, getval(hp->nbsetup)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:324:3: note: in expansion of macro 'assign' 324 | assign(header.execute.offset, getval(hp->nbsetup)); | ^~~~~~ mknbi.c: In function 'do_cmdline': /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:350:3: note: in expansion of macro 'assign' 350 | assign(cur_rec->mlength.low, htot(low_word(CMDLMSIZE))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:351:3: note: in expansion of macro 'assign' 351 | assign(cur_rec->mlength.high, htot(high_word(CMDLMSIZE))); | ^~~~~~ mknbi.c: In function 'do_kernel': /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:380:3: note: in expansion of macro 'assign' 380 | assign(cur_rec->mlength.low, htot(low_word(INITMSIZE))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:381:3: note: in expansion of macro 'assign' 381 | assign(cur_rec->mlength.high, htot(high_word(INITMSIZE))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:393:3: note: in expansion of macro 'assign' 393 | assign(cur_rec->mlength.low, htot(low_word(SETUPMSIZE))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:394:3: note: in expansion of macro 'assign' 394 | assign(cur_rec->mlength.high, htot(high_word(SETUPMSIZE))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:401:3: note: in expansion of macro 'assign' 401 | assign(cur_rec->mlength.low, cur_rec->ilength.low); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:402:3: note: in expansion of macro 'assign' 402 | assign(cur_rec->mlength.high, cur_rec->ilength.high); | ^~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ mknbi.c:406:36: note: in expansion of macro 'get_long' 406 | unsigned long imagestart = get_long(cur_rec->address) + | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ mknbi.c:406:36: note: in expansion of macro 'get_long' 406 | unsigned long imagestart = get_long(cur_rec->address) + | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ mknbi.c:407:49: note: in expansion of macro 'get_long' 407 | get_long(cur_rec->mlength); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ mknbi.c:407:49: note: in expansion of macro 'get_long' 407 | get_long(cur_rec->mlength); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:429:9: note: in expansion of macro 'assign' 429 | assign(cur_rec->mlength.low, htot(low_word(l))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:430:9: note: in expansion of macro 'assign' 430 | assign(cur_rec->mlength.high, htot(high_word(l))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:433:9: note: in expansion of macro 'assign' 433 | assign(cur_rec->address.low, htot(low_word(l))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:434:9: note: in expansion of macro 'assign' 434 | assign(cur_rec->address.high, htot(high_word(l))); | ^~~~~~ mknbi.c: In function 'dump_header': /build/netboot-0.10.2/include/common.h:530:43: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ mknbi.c:552:11: note: in expansion of macro 'get_long' 552 | get_long(lh->magic), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:43: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ mknbi.c:552:11: note: in expansion of macro 'get_long' 552 | get_long(lh->magic), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:43: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ mknbi.c:558:11: note: in expansion of macro 'get_word' 558 | get_word(lh->locn.segment), get_word(lh->locn.offset), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:43: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ mknbi.c:558:39: note: in expansion of macro 'get_word' 558 | get_word(lh->locn.segment), get_word(lh->locn.offset), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:43: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ mknbi.c:559:11: note: in expansion of macro 'get_word' 559 | get_word(lh->execute.segment), get_word(lh->execute.offset), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:43: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ mknbi.c:559:42: note: in expansion of macro 'get_word' 559 | get_word(lh->execute.segment), get_word(lh->execute.offset), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ mknbi.c:586:13: note: in expansion of macro 'get_long' 586 | get_long(lr->address), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ mknbi.c:586:13: note: in expansion of macro 'get_long' 586 | get_long(lr->address), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ mknbi.c:587:13: note: in expansion of macro 'get_long' 587 | get_long(lr->address) >= 0x100000L ? " (high memory)" : "", | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ mknbi.c:587:13: note: in expansion of macro 'get_long' 587 | get_long(lr->address) >= 0x100000L ? " (high memory)" : "", | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ mknbi.c:588:13: note: in expansion of macro 'get_long' 588 | get_long(lr->ilength), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ mknbi.c:588:13: note: in expansion of macro 'get_long' 588 | get_long(lr->ilength), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ mknbi.c:589:13: note: in expansion of macro 'get_long' 589 | get_long(lr->mlength), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ mknbi.c:589:13: note: in expansion of macro 'get_long' 589 | get_long(lr->mlength), | ^~~~~~~~ mknbi.c: In function 'main': /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:917:3: note: in expansion of macro 'assign' 917 | assign(header.magic.low, htot(low_word(NBHEADER_MAGIC))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:918:3: note: in expansion of macro 'assign' 918 | assign(header.magic.high, htot(high_word(NBHEADER_MAGIC))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:919:3: note: in expansion of macro 'assign' 919 | assign(header.locn.segment, htot(DEF_HEADERSEG)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:920:3: note: in expansion of macro 'assign' 920 | assign(header.locn.offset, htot(0)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct load_header' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:921:3: note: in expansion of macro 'assign' 921 | assign(header.bootsig, htot(NBHEADER_SIG)); | ^~~~~~ mknbi.c:749:17: warning: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-stringop-truncation-Wstringop-truncation8;;] 749 | strncpy(bp, ip, i); | ^ mknbi.c:745:26: note: length computed here 745 | if ((i = strlen(ip)) > MAX_ADDR_SIZE) { | ^~~~~~~~~~ mknbi.c:749:17: warning: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-stringop-truncation-Wstringop-truncation8;;] 749 | strncpy(bp, ip, i); | ^ mknbi.c:745:26: note: length computed here 745 | if ((i = strlen(ip)) > MAX_ADDR_SIZE) { | ^~~~~~~~~~ mknbi.c:781:33: warning: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-stringop-truncation-Wstringop-truncation8;;] 781 | strncpy(bp, ip, i); | ^ mknbi.c:765:37: note: length computed here 765 | i = strlen(ip); | ^~~~~~~~~~ In file included from /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/string.h:548, from /build/netboot-0.10.2/include/common.h:415: In function 'strncpy', inlined from 'main' at mknbi.c:761:4: /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/bits/string_fortified.h:100:10: warning: '__builtin_strncpy' specified size between 18446744071562067968 and 0 exceeds maximum object size 9223372036854775807 [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-stringop-overflow-Wstringop-overflow=8;;] 100 | return __builtin___strncpy_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 101 | __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/mknbi-linux -c -o sysdb.o sysdb.c cp first_c.c-default first_c.c gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/mknbi-linux -c -o first_c.o first_c.c cp firstd_c.c-default firstd_c.c gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/mknbi-linux -c -o firstd_c.o firstd_c.c mkdir .libs gcc -o .libs/mknbi -s mknbi.o sysdb.o first_c.o firstd_c.o -L/build/netboot-0.10.2/nblib /build/netboot-0.10.2/nblib/.libs/libnb.so -ldb -Wl,--rpath -Wl,/nix/store/vgdhqwb68wprlqk1bwi08alaanmcg251-netboot-0.10.2/lib creating mknbi make[1]: Leaving directory '/build/netboot-0.10.2/mknbi-linux' making all in mknbi-mgl make[1]: Entering directory '/build/netboot-0.10.2/mknbi-mgl' gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/mknbi-mgl -DPARANOID -c -o mknbi.o mknbi.c In file included from mknbi.h:31, from mknbi.c:24: mknbi.c: In function 'putrec': /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ mknbi.c:156:7: note: in expansion of macro 'get_long' 156 | l = get_long(cur_rec->ilength) + size; | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ mknbi.c:156:7: note: in expansion of macro 'get_long' 156 | l = get_long(cur_rec->ilength) + size; | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:157:3: note: in expansion of macro 'assign' 157 | assign(cur_rec->ilength.low, htot(low_word(l))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:158:3: note: in expansion of macro 'assign' 158 | assign(cur_rec->ilength.high, htot(high_word(l))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ mknbi.c:159:7: note: in expansion of macro 'get_long' 159 | l = get_long(cur_rec->mlength) + size; | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ mknbi.c:159:7: note: in expansion of macro 'get_long' 159 | l = get_long(cur_rec->mlength) + size; | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:160:3: note: in expansion of macro 'assign' 160 | assign(cur_rec->mlength.low, htot(low_word(l))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:161:3: note: in expansion of macro 'assign' 161 | assign(cur_rec->mlength.high, htot(high_word(l))); | ^~~~~~ mknbi.c: In function 'initrec': /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:213:3: note: in expansion of macro 'assign' 213 | assign(cur_rec->address.low, htot(low_word(segment << 4))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:214:3: note: in expansion of macro 'assign' 214 | assign(cur_rec->address.high, htot(high_word(segment << 4))); | ^~~~~~ mknbi.c: In function 'do_loader': /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct nbld_header' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ mknbi.c:254:17: note: in expansion of macro 'get_word' 254 | tsize = get_word(hp->textsize); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct nbld_header' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ mknbi.c:255:17: note: in expansion of macro 'get_word' 255 | dsize = get_word(hp->datasize); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct nbld_header' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ mknbi.c:256:17: note: in expansion of macro 'get_word' 256 | ssize = get_word(hp->heapsize) + get_word(hp->stacksize); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct nbld_header' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ mknbi.c:256:42: note: in expansion of macro 'get_word' 256 | ssize = get_word(hp->heapsize) + get_word(hp->stacksize); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:266:9: note: in expansion of macro 'assign' 266 | assign(cur_rec->mlength.low, htot(low_word(msize))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:267:9: note: in expansion of macro 'assign' 267 | assign(cur_rec->mlength.high, htot(high_word(msize))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:270:9: note: in expansion of macro 'assign' 270 | assign(header.execute.segment, htot(DEF_BOOTLSEG)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct nbld_header' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:514:55: note: in definition of macro 'assign' 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^ mknbi.c:271:39: note: in expansion of macro 'getval' 271 | assign(header.execute.offset, getval(hp->nbsetup)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:271:9: note: in expansion of macro 'assign' 271 | assign(header.execute.offset, getval(hp->nbsetup)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct exehdr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ mknbi.c:305:25: note: in expansion of macro 'get_word' 305 | hsize = get_word(hp->headsize) * 16; | ^~~~~~~~ mknbi.c: In function 'do_compile': /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:370:9: note: in expansion of macro 'assign' 370 | assign(cur_rec->mlength.low, htot(low_word(PROGMSIZE))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:371:9: note: in expansion of macro 'assign' 371 | assign(cur_rec->mlength.high, htot(high_word(PROGMSIZE))); | ^~~~~~ mknbi.c: In function 'dump_header': /build/netboot-0.10.2/include/common.h:530:43: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ mknbi.c:412:11: note: in expansion of macro 'get_long' 412 | get_long(lh->magic), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:43: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ mknbi.c:412:11: note: in expansion of macro 'get_long' 412 | get_long(lh->magic), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:43: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ mknbi.c:418:11: note: in expansion of macro 'get_word' 418 | get_word(lh->locn.segment), get_word(lh->locn.offset), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:43: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ mknbi.c:418:39: note: in expansion of macro 'get_word' 418 | get_word(lh->locn.segment), get_word(lh->locn.offset), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:43: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ mknbi.c:419:11: note: in expansion of macro 'get_word' 419 | get_word(lh->execute.segment), get_word(lh->execute.offset), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:43: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ mknbi.c:419:42: note: in expansion of macro 'get_word' 419 | get_word(lh->execute.segment), get_word(lh->execute.offset), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ mknbi.c:445:13: note: in expansion of macro 'get_long' 445 | get_long(lr->address), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ mknbi.c:445:13: note: in expansion of macro 'get_long' 445 | get_long(lr->address), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ mknbi.c:446:13: note: in expansion of macro 'get_long' 446 | get_long(lr->address) >= 0x100000L ? " (high memory)" : "", | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ mknbi.c:446:13: note: in expansion of macro 'get_long' 446 | get_long(lr->address) >= 0x100000L ? " (high memory)" : "", | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ mknbi.c:447:13: note: in expansion of macro 'get_long' 447 | get_long(lr->ilength), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ mknbi.c:447:13: note: in expansion of macro 'get_long' 447 | get_long(lr->ilength), | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:494:48: note: in expansion of macro 'getval' 494 | # define get_long(a) ((unsigned long)((ttoh(getval((a).high)) << 16) | \ | ^~~~~~ mknbi.c:448:13: note: in expansion of macro 'get_long' 448 | get_long(lr->mlength)); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:495:54: note: in expansion of macro 'getval' 495 | ttoh(getval((a).low)))) | ^~~~~~ mknbi.c:448:13: note: in expansion of macro 'get_long' 448 | get_long(lr->mlength)); | ^~~~~~~~ mknbi.c: In function 'main': /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:579:9: note: in expansion of macro 'assign' 579 | assign(header.magic.low, htot(low_word(NBHEADER_MAGIC))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:580:9: note: in expansion of macro 'assign' 580 | assign(header.magic.high, htot(high_word(NBHEADER_MAGIC))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:581:9: note: in expansion of macro 'assign' 581 | assign(header.locn.segment, htot(DEF_HEADERSEG)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_addr' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:582:9: note: in expansion of macro 'assign' 582 | assign(header.locn.offset, htot(0)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct load_header' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ mknbi.c:583:9: note: in expansion of macro 'assign' 583 | assign(header.bootsig, htot(NBHEADER_SIG)); | ^~~~~~ gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/mknbi-mgl -DPARANOID -c -o sysdb.o sysdb.c gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/mknbi-mgl -DPARANOID -c -o compile.o compile.c gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/mknbi-mgl -DPARANOID -c -o gencode.o gencode.c In file included from mknbi.h:31, from gencode.c:24: gencode.c: In function 'codeinit': /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct rtdata' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ gencode.c:732:22: note: in expansion of macro 'get_word' 732 | rtdataofs = (get_word(datap->dataofs) + 15) & 0xfff0; | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct rtdata' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ gencode.c:733:21: note: in expansion of macro 'get_word' 733 | rtexpofs = get_word(datap->debug); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct rtdata' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ gencode.c:734:21: note: in expansion of macro 'get_word' 734 | rttextlen = get_word(datap->textend); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct rtdata' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ gencode.c:735:21: note: in expansion of macro 'get_word' 735 | rtdatalen = get_word(datap->dataend); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct rtdata' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ gencode.c:736:21: note: in expansion of macro 'get_word' 736 | rtbsslen = get_word(datap->bssend) - rtdatalen; | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct rtdata' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ gencode.c:737:21: note: in expansion of macro 'get_word' 737 | rtstksize = get_word(datap->stksize); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct rtdata' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ gencode.c:745:27: note: in expansion of macro 'get_word' 745 | nameofs = get_word(datap->id); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct rtexport' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ gencode.c:790:18: note: in expansion of macro 'get_word' 790 | expval = get_word(expp->value); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct rtexport' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ gencode.c:791:19: note: in expansion of macro 'get_word' 791 | expsize = get_word(expp->size); | ^~~~~~~~ gencode.c: In function 'codewrite': /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct rtdata' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ gencode.c:1022:3: note: in expansion of macro 'assign' 1022 | assign(datap->start, htot(startadr & 0xffff)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct rtdata' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ gencode.c:1025:3: note: in expansion of macro 'assign' 1025 | assign(datap->stksize, htot(stacksize & 0xffff)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct rtdata' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ gencode.c:1029:3: note: in expansion of macro 'assign' 1029 | assign(datap->constend, htot(constptr & 0xffff)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct rtdata' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ gencode.c:1030:3: note: in expansion of macro 'assign' 1030 | assign(datap->varend, htot((constptr + dataptr) & 0xffff)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct rtdata' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ gencode.c:1031:3: note: in expansion of macro 'assign' 1031 | assign(datap->debug, htot(debugptr & 0xffff)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct rtdata' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ gencode.c:1032:3: note: in expansion of macro 'assign' 1032 | assign(datap->dataofs, htot(codesize & 0xffff)); | ^~~~~~ /build/netboot-0.10.2/include/common.h:530:34: warning: taking address of packed member of 'struct rtdata' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 530 | # define getval(a) mygetval((__u16 *)&(a)) | ^~~~~~~~~~~~~ /build/netboot-0.10.2/include/common.h:498:51: note: in definition of macro 'ttoh' 498 | # define ttoh(a) ((unsigned short)(a)) | ^ /build/netboot-0.10.2/include/common.h:493:32: note: in expansion of macro 'getval' 493 | # define get_word(a) ((ttoh(getval(a)))) | ^~~~~~ gencode.c:1035:15: note: in expansion of macro 'get_word' 1035 | rtdatalen = get_word(datap->dataend); | ^~~~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ gencode.c:1039:3: note: in expansion of macro 'assign' 1039 | assign(datap->loadsize.low, htot(low_word(loadsize & 0xffff))); | ^~~~~~ /build/netboot-0.10.2/include/common.h:514:32: warning: taking address of packed member of 'struct i_long' may result in an unaligned pointer value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member8;;] 514 | # define assign(a, b) mycopy((__u16 *)&(a), (__u16)(b)) | ^~~~~~~~~~~~~ gencode.c:1040:3: note: in expansion of macro 'assign' 1040 | assign(datap->loadsize.high, htot(high_word(loadsize & 0xffff))); | ^~~~~~ gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/mknbi-mgl -DPARANOID -c -o gencmd.o gencmd.c gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/mknbi-mgl -DPARANOID -c -o genexpr.o genexpr.c gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/mknbi-mgl -DPARANOID -c -o expr.o expr.c gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/mknbi-mgl -DPARANOID -c -o symbols.o symbols.c gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/mknbi-mgl -DPARANOID -c -o utils.o utils.c bison -y -d mglparse.y gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/mknbi-mgl -DPARANOID -c -o y.tab.o y.tab.c mglparse.y: In function 'yyparse': mglparse.y:650:67: warning: self-comparison always evaluates to false [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-tautological-compare-Wtautological-compare8;;] 650 | $3->type->def.s.max != $3->type->def.s.max) | ^~ /nix/store/11ciq72n4fdv8rw6wgjgasfv4mjs1jrw-bash-5.2p37/bin/bash /build/netboot-0.10.2/misc/missing --run flex mgllex.l /build/netboot-0.10.2/misc/missing: line 52: flex: command not found WARNING: `flex' is missing on your system. You should only need it if you modified a `.l' file. You may need the `Flex' package in order for those modifications to take effect. You can get `Flex' from any GNU archive site. gcc -O2 -Wall -DHAVE_CONFIG_H -DNETBOOT -I/build/netboot-0.10.2/include -I/build/netboot-0.10.2/mknbi-mgl -DPARANOID -c -o lex.yy.o lex.yy.c mgllex.l: In function 'yylex': mgllex.l:398:53: error: passing argument 1 of 'copy_string' from incompatible pointer type [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wincompatible-pointer-types-Wincompatible-pointer-types8;;] 398 | yylval.string = copy_string(string_buf); | ^~~~~~~~~~ | | | pcchar_t * {aka unsigned char *} In file included from /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/features.h:511, from /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/bits/libc-header-start.h:33, from /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/stdio.h:28, from lex.yy.c:11: mgl.h:644:47: note: expected 'const byte_t *' {aka 'const short unsigned int *'} but argument is of type 'pcchar_t *' {aka 'unsigned char *'} 644 | extern byte_t *copy_string __P((const byte_t *mglstr)); | ~~~~~~~~~~~~~~^~~~~~ mgllex.l:426:45: error: passing argument 1 of 'copy_string' from incompatible pointer type [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wincompatible-pointer-types-Wincompatible-pointer-types8;;] 426 | yylval.string = copy_string(string_buf); | ^~~~~~~~~~ | | | pcchar_t * {aka unsigned char *} mgl.h:644:47: note: expected 'const byte_t *' {aka 'const short unsigned int *'} but argument is of type 'pcchar_t *' {aka 'unsigned char *'} 644 | extern byte_t *copy_string __P((const byte_t *mglstr)); | ~~~~~~~~~~~~~~^~~~~~ make[1]: *** [../make.rules:75: lex.yy.o] Error 1 make[1]: Leaving directory '/build/netboot-0.10.2/mknbi-mgl' make: *** [Makefile:43: mknbi-mgl] Error 1