=>> Building devel/firmware-utils build started at Mon Apr 1 02:41:54 BST 2024 port directory: /usr/ports/devel/firmware-utils package name: firmware-utils-20111222 building for: FreeBSD pkg-builder.dan.net.uk 13.2-RELEASE-p10 FreeBSD 13.2-RELEASE-p10 amd64 maintained by: stb@lassitu.de Makefile datestamp: -rw-r--r-- 1 root wheel 430 Mar 8 2023 /usr/ports/devel/firmware-utils/Makefile Ports top last git commit: c2c35d895e Ports top unclean checkout: yes Port dir last git commit: c014f9c79a Port dir unclean checkout: no Poudriere version: poudriere-git-3.4.99.20240122_1 Host OSVERSION: 1400097 Jail OSVERSION: 1302001 Job Id: 11 ---Begin Environment--- SHELL=/bin/csh OSVERSION=1302001 UNAME_v=FreeBSD 13.2-RELEASE-p10 UNAME_r=13.2-RELEASE-p10 BLOCKSIZE=K MAIL=/var/mail/root MM_CHARSET=UTF-8 LANG=C.UTF-8 STATUS=1 HOME=/root PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin MAKE_OBJDIR_CHECK_WRITABLE=0 LOCALBASE=/usr/local USER=root POUDRIERE_NAME=poudriere-git LIBEXECPREFIX=/usr/local/libexec/poudriere POUDRIERE_VERSION=3.4.99.20240122_1 MASTERMNT=/usr/local/poudriere/data/.m/13-amd64-default-dan/ref LC_COLLATE=C POUDRIERE_BUILD_TYPE=bulk PACKAGE_BUILDING=yes SAVED_TERM=screen OUTPUT_REDIRECTED_STDERR=4 OUTPUT_REDIRECTED=1 PWD=/usr/local/poudriere/data/.m/13-amd64-default-dan/11/.p OUTPUT_REDIRECTED_STDOUT=3 P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS MASTERNAME=13-amd64-default-dan SCRIPTPREFIX=/usr/local/share/poudriere SCRIPTNAME=bulk.sh OLDPWD=/usr/local/poudriere/data/.m/13-amd64-default-dan/ref/.p/pool POUDRIERE_PKGNAME=poudriere-git-3.4.99.20240122_1 SCRIPTPATH=/usr/local/share/poudriere/bulk.sh POUDRIEREPATH=/usr/local/bin/poudriere ---End Environment--- ---Begin Poudriere Port Flags/Env--- PORT_FLAGS= PKGENV= FLAVOR= MAKE_ARGS= ---End Poudriere Port Flags/Env--- ---Begin OPTIONS List--- ---End OPTIONS List--- --MAINTAINER-- stb@lassitu.de --End MAINTAINER-- --CONFIGURE_ARGS-- --End CONFIGURE_ARGS-- --CONFIGURE_ENV-- XDG_DATA_HOME=/wrkdirs/usr/ports/devel/firmware-utils/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/devel/firmware-utils/work XDG_CACHE_HOME=/wrkdirs/usr/ports/devel/firmware-utils/work/.cache HOME=/wrkdirs/usr/ports/devel/firmware-utils/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/devel/firmware-utils/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/devel/firmware-utils/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCACHE_DIR="/root/.ccache" --End CONFIGURE_ENV-- --MAKE_ENV-- OPENSSLBASE=/usr/local OPENSSLDIR=/usr/local/openssl OPENSSLINC=/usr/local/include OPENSSLLIB=/usr/local/lib OPENSSLRPATH=/usr/local/lib XDG_DATA_HOME=/wrkdirs/usr/ports/devel/firmware-utils/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/devel/firmware-utils/work XDG_CACHE_HOME=/wrkdirs/usr/ports/devel/firmware-utils/work/.cache HOME=/wrkdirs/usr/ports/devel/firmware-utils/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/devel/firmware-utils/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/devel/firmware-utils/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local CC="cc" CFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing " CCACHE_DIR="/root/.ccache" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" --End MAKE_ENV-- --PLIST_SUB-- OSREL=13.2 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/firmware-utils" EXAMPLESDIR="share/examples/firmware-utils" DATADIR="share/firmware-utils" WWWDIR="www/firmware-utils" ETCDIR="etc/firmware-utils" --End PLIST_SUB-- --SUB_LIST-- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/firmware-utils DOCSDIR=/usr/local/share/doc/firmware-utils EXAMPLESDIR=/usr/local/share/examples/firmware-utils WWWDIR=/usr/local/www/firmware-utils ETCDIR=/usr/local/etc/firmware-utils --End SUB_LIST-- ---Begin make.conf--- USE_PACKAGE_DEPENDS=yes BATCH=yes WRKDIRPREFIX=/wrkdirs PORTSDIR=/usr/ports PACKAGES=/packages DISTDIR=/distfiles FORCE_PACKAGE=yes PACKAGE_BUILDING=yes PACKAGE_BUILDING_FLAVORS=yes #### #### CCACHE_CPP2=1 WITH_SSP_PORTS=yes WITH_SSP=yes #WITH_LTO=yes DISABLE_LICENSES=yes LICENSES_ACCEPTED=AGPLv3 APACHE10 APACHE11 APACHE20 ART10 ARTPERL10 ART20 BSD BSD2CLAUSE BSD3CLAUSE BSD4CLAUSE BSL CC0-1.0 CDDL ClArtistic EPL GFDL GMGPL GPLv1 GPLv2 GPLv3 GPLv3RLE ISCL LGPL20 LGPL21 LGPL3 LPPL10 LPPL11 LPPL12 LPPL13 LPPL13a LPPL13b LPPL13c MIT MPL OpenSSL OFL10 OFL11 OWL PostgreSQL PHP202 PHP30 PHP301 PSFL RUBY ZLIB ZPL21 SVM-Light EULA ALASIR Microsoft-exFAT SIMIAN UDEVGAME unknown MTA COMMERCIAL teamspeak NO_LICENSES_DIALOGS=yes #### #### NO_IGNORE=yes DEFAULT_VERSIONS+=ssl=openssl mysql=8.0 imagemagick=7 samba=4.13 java=18 WITH_SETID_MODE=force PHP_ZTS=enabled OPTIONS_UNSET+=OPENJPEG OPTIONS_UNSET+=GSSAPI_BASE OPTIONS_SET+=ZTS OPTIONS_SET+=GSSAPI_NONE WITH_CCACHE_BUILD=yes CCACHE_DIR=/root/.ccache NO_CCACHE_DEPEND=1 CCACHE_WRAPPER_PATH= /ccache/libexec/ccache #### Misc Poudriere #### .include "/etc/make.conf.ports_env" GID=0 UID=0 DISABLE_MAKE_JOBS=poudriere ---End make.conf--- --Resource limits-- cpu time (seconds, -t) unlimited file size (512-blocks, -f) unlimited data seg size (kbytes, -d) 33554432 stack size (kbytes, -s) 524288 core file size (512-blocks, -c) unlimited max memory size (kbytes, -m) unlimited locked memory (kbytes, -l) unlimited max user processes (-u) 89999 open files (-n) 8192 virtual mem size (kbytes, -v) unlimited swap limit (kbytes, -w) unlimited socket buffer size (bytes, -b) unlimited pseudo-terminals (-p) unlimited kqueues (-k) unlimited umtx shared locks (-o) unlimited --End resource limits-- =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> firmware-utils-20111222 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.20.9_1.pkg [pkg-builder.dan.net.uk] Installing pkg-1.20.9_1... [pkg-builder.dan.net.uk] Extracting pkg-1.20.9_1: .......... done ===> firmware-utils-20111222 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of firmware-utils-20111222 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by firmware-utils-20111222 for building =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by firmware-utils-20111222 for building => SHA256 Checksum OK for firmware-utils-20111222.tar.bz2. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by firmware-utils-20111222 for building ===> Extracting for firmware-utils-20111222 => SHA256 Checksum OK for firmware-utils-20111222.tar.bz2. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Patching for firmware-utils-20111222 ===> Applying FreeBSD patches for firmware-utils-20111222 from /usr/ports/devel/firmware-utils/files =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> firmware-utils-20111222 depends on file: /usr/local/lib/libcrypto.so.12 - not found ===> Installing existing package /packages/All/openssl-3.0.13_1,1.pkg [pkg-builder.dan.net.uk] Installing openssl-3.0.13_1,1... [pkg-builder.dan.net.uk] Extracting openssl-3.0.13_1,1: .......... done ===> firmware-utils-20111222 depends on file: /usr/local/lib/libcrypto.so.12 - found ===> Returning to build of firmware-utils-20111222 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Configuring for firmware-utils-20111222 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building for firmware-utils-20111222 cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz add_header.c -o add_header add_header.c:111:10: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(header.model, argv[1], sizeof(header.model)); ^~~~~~~~~~~~ /usr/include/string.h:107:32: note: passing argument to parameter here char *strncpy(char * __restrict, const char * __restrict, size_t); ^ 1 warning generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz addpattern.c -o addpattern cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz airlink.c -o airlink airlink.c:271:30: warning: | has lower precedence than ==; == will be evaluated first [-Wparentheses] } else if (len == buf[0x10] | ((uint32_t)buf[0x11] << 8) | ((uint32_t)buf[0x12] << 16) | ((uint32_t)buf[0x13] << 24)) { ~~~~~~~~~~~~~~~~~^ airlink.c:271:30: note: place parentheses around the '==' expression to silence this warning } else if (len == buf[0x10] | ((uint32_t)buf[0x11] << 8) | ((uint32_t)buf[0x12] << 16) | ((uint32_t)buf[0x13] << 24)) { ^ ( ) airlink.c:271:30: note: place parentheses around the | expression to evaluate it first } else if (len == buf[0x10] | ((uint32_t)buf[0x11] << 8) | ((uint32_t)buf[0x12] << 16) | ((uint32_t)buf[0x13] << 24)) { ^ ( ) airlink.c:296:45: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] printf("CRC32 sum0 - (%x, %x, %x)\n", sum, sum0, 0x400); ~~ ^~~~ %lx airlink.c:308:45: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] printf("CRC32 sum1 - (%x, %x, %x)\n", sum, sum1, l0); ~~ ^~~~ %lx airlink.c:322:46: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] printf("CRC32 sum2 - (%x, %x, %x)\n", sum, sum2, ~~ ^~~~ %lx airlink.c:323:10: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] len - 0x4); ^~~~~~~~~ 5 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz dgfirmware.c -o dgfirmware dgfirmware.c:252:10: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration] if (!strcmp(argv[i], "-h")) { ^ dgfirmware.c:252:10: note: include the header or explicitly provide a declaration for 'strcmp' 1 warning generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz encode_crc.c -o encode_crc cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz lzma2eva.c -o lzma2eva lzma2eva.c:130:29: warning: passing 'const uint8_t (*)[4096]' (aka 'const unsigned char (*)[4096]') to parameter of type 'void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] while (0 < (elems = fread(&buf, sizeof buf[0], sizeof buf, in))) { ^~~~ /usr/include/stdio.h:263:32: note: passing argument to parameter here size_t fread(void * __restrict, size_t, size_t, FILE * __restrict); ^ lzma2eva.c:166:29: warning: passing 'const uint8_t (*)[4096]' (aka 'const unsigned char (*)[4096]') to parameter of type 'void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] while (0 < (elems = fread(&buf, sizeof buf[0], sizeof buf, out))) { ^~~~ /usr/include/stdio.h:263:32: note: passing argument to parameter here size_t fread(void * __restrict, size_t, size_t, FILE * __restrict); ^ 2 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz makeamitbin.c -o makeamitbin cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz mkcasfw.c -o mkcasfw mkcasfw.c:389:11: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((arg == NULL)) { ~~~~^~~~~~~ mkcasfw.c:389:11: note: remove extraneous parentheses around the comparison to silence this warning if ((arg == NULL)) { ~ ^ ~ mkcasfw.c:389:11: note: use '=' to turn this equality comparison into an assignment if ((arg == NULL)) { ^~ = mkcasfw.c:497:16: warning: passing 'char *' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] csum16_update(&pad, 1, css); ^~~~ mkcasfw.c:468:24: note: passing argument to parameter 'p' here csum16_update(uint8_t *p, uint32_t len, struct csum_state *css) ^ mkcasfw.c:576:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("unable to write output file"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkcasfw.c:264:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ mkcasfw.c:623:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("stat failed on %s", desc->file_name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkcasfw.c:264:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ mkcasfw.c:660:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("unable to open file: %s", desc->file_name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkcasfw.c:264:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ mkcasfw.c:673:4: warning: data argument not used by format string [-Wformat-extra-args] ERRS("unable to read from file: %s", desc->file_name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkcasfw.c:264:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ mkcasfw.c:678:33: warning: passing 'char[16384]' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] res = write_out_data(outfile, buf, buflen, css); ^~~ mkcasfw.c:569:40: note: passing argument to parameter 'data' here write_out_data(FILE *outfile, uint8_t *data, size_t len, ^ mkcasfw.c:713:35: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] DBG(1,"padding desc, length=%d", padlen); ~~ ^~~~~~ %zu mkcasfw.c:275:49: note: expanded from macro 'DBG' fprintf(stderr, "[%s] " fmt "\n", progname, ## __VA_ARGS__ ); \ ~~~ ^~~~~~~~~~~ mkcasfw.c:730:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("fseek failed on output file"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkcasfw.c:264:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ mkcasfw.c:990:50: warning: data argument not used by format string [-Wformat-extra-args] WARN("generation of invalid images disabled", ofname); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ mkcasfw.c:269:17: note: expanded from macro 'WARN' progname, ## __VA_ARGS__ ); \ ^ mkcasfw.c:994:36: warning: data argument not used by format string [-Wformat-extra-args] WARN("generating invalid image", ofname); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ mkcasfw.c:269:17: note: expanded from macro 'WARN' progname, ## __VA_ARGS__ ); \ ^ mkcasfw.c:999:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("could not open \"%s\" for writing", ofname); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkcasfw.c:264:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ 12 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz mkchkimg.c -o mkchkimg cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz mkcsysimg.c -o mkcsysimg mkcsysimg.c:348:11: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((arg == NULL)) { ~~~~^~~~~~~ mkcsysimg.c:348:11: note: remove extraneous parentheses around the comparison to silence this warning if ((arg == NULL)) { ~ ^ ~ mkcsysimg.c:348:11: note: use '=' to turn this equality comparison into an assignment if ((arg == NULL)) { ^~ = mkcsysimg.c:456:16: warning: passing 'char *' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] csum16_update(&pad, 1, css); ^~~~ mkcsysimg.c:427:24: note: passing argument to parameter 'p' here csum16_update(uint8_t *p, uint32_t len, struct csum_state *css) ^ mkcsysimg.c:514:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("unable to write output file"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkcsysimg.c:204:5: note: expanded from macro 'ERRS' , strerror(save)); \ ^ mkcsysimg.c:561:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("stat failed on %s", block->file_name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkcsysimg.c:204:5: note: expanded from macro 'ERRS' , strerror(save)); \ ^ mkcsysimg.c:609:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("unable to open file: %s", block->file_name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkcsysimg.c:204:5: note: expanded from macro 'ERRS' , strerror(save)); \ ^ mkcsysimg.c:622:4: warning: data argument not used by format string [-Wformat-extra-args] ERRS("unable to read from file: %s", block->file_name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkcsysimg.c:204:5: note: expanded from macro 'ERRS' , strerror(save)); \ ^ mkcsysimg.c:627:33: warning: passing 'char[16384]' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] res = write_out_data(outfile, buf, buflen, block->css); ^~~ mkcsysimg.c:507:40: note: passing argument to parameter 'data' here write_out_data(FILE *outfile, uint8_t *data, size_t len, ^ mkcsysimg.c:651:36: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] DBG(1,"padding block, length=%d", padlen); ~~ ^~~~~~ %zu mkcsysimg.c:214:49: note: expanded from macro 'DBG' fprintf(stderr, "[%s] " fmt "\n", progname, ## __VA_ARGS__ ); \ ~~~ ^~~~~~~~~~~ mkcsysimg.c:1126:50: warning: data argument not used by format string [-Wformat-extra-args] WARN("generation of invalid images disabled", ofname); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ mkcsysimg.c:208:62: note: expanded from macro 'WARN' fprintf(stderr, "[%s] *** warning: " fmt "\n", progname, ## __VA_ARGS__ ); \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ mkcsysimg.c:1130:36: warning: data argument not used by format string [-Wformat-extra-args] WARN("generating invalid image", ofname); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ mkcsysimg.c:208:62: note: expanded from macro 'WARN' fprintf(stderr, "[%s] *** warning: " fmt "\n", progname, ## __VA_ARGS__ ); \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ mkcsysimg.c:1135:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("could not open \"%s\" for writing", ofname); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkcsysimg.c:204:5: note: expanded from macro 'ERRS' , strerror(save)); \ ^ 11 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz mkdniimg.c -o mkdniimg mkdniimg.c:137:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("stat failed on %s", ifname); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkdniimg.c:47:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ mkdniimg.c:158:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("could not open \"%s\" for reading", ifname); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkdniimg.c:47:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ mkdniimg.c:165:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("unable to read from file %s", ifname); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkdniimg.c:47:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ mkdniimg.c:178:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("could not open \"%s\" for writing", ofname); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkdniimg.c:47:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ mkdniimg.c:185:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("unable to write to file %s", ofname); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkdniimg.c:47:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ 5 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz mkedimaximg.c -o mkedimaximg mkedimaximg.c:175:29: warning: taking address of packed member 'flash' of class or structure 'header' may result in an unaligned pointer value [-Waddress-of-packed-member] if (!strtou32(optarg, &header.flash)) { ^~~~~~~~~~~~ mkedimaximg.c:181:29: warning: taking address of packed member 'start' of class or structure 'header' may result in an unaligned pointer value [-Waddress-of-packed-member] if (!strtou32(optarg, &header.start)) { ^~~~~~~~~~~~ mkedimaximg.c:207:16: warning: comparison of array 'header.sign' equal to a null pointer is always false [-Wtautological-pointer-compare] if (header.sign == NULL) { ~~~~~~~^~~~ ~~~~ mkedimaximg.c:212:16: warning: comparison of array 'header.model' equal to a null pointer is always false [-Wtautological-pointer-compare] if (header.model == NULL) { ~~~~~~~^~~~~ ~~~~ 4 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz mkfwimage.c -o mkfwimage mkfwimage.c:239:9: warning: comparison of array 'p->name' equal to a null pointer is always false [-Wtautological-pointer-compare] if (p->name == NULL) { ~~~^~~~ ~~~~ mkfwimage.c:237:72: warning: 'strncmp' call operates on objects of type 'char' while the size is based on a different type 'char *' [-Wsizeof-pointer-memaccess] while ((strlen(p->name) != 0) && (strncmp(p->name, board_name, sizeof(board_name)) != 0)) ~~~~~~~~~~ ^~~~~~~~~~ mkfwimage.c:237:72: note: did you mean to provide an explicit length? while ((strlen(p->name) != 0) && (strncmp(p->name, board_name, sizeof(board_name)) != 0)) ^~~~~~~~~~ 2 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz mkfwimage2.c -o mkfwimage2 cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz mkmylofw.c -o mkmylofw mkmylofw.c:574:31: warning: passing 'char[16384]' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (write_out_data(outfile, buff, buflen, crc) != 0) ^~~~ mkmylofw.c:480:40: note: passing argument to parameter 'data' here write_out_data(FILE *outfile, uint8_t *data, size_t len, uint32_t *crc) ^ mkmylofw.c:742:11: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((arg == NULL)) { ~~~~^~~~~~~ mkmylofw.c:742:11: note: remove extraneous parentheses around the comparison to silence this warning if ((arg == NULL)) { ~ ^ ~ mkmylofw.c:742:11: note: use '=' to turn this equality comparison into an assignment if ((arg == NULL)) { ^~ = 2 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz mktitanimg.c -o mktitanimg cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz mktplinkfw.c -o mktplinkfw mktplinkfw.c:356:1: warning: non-void function does not return a value [-Wreturn-type] } ^ mktplinkfw.c:368:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("stat failed on %s", fdata->file_name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mktplinkfw.c:266:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ mktplinkfw.c:383:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("could not open \"%s\" for reading", fdata->file_name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mktplinkfw.c:266:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ mktplinkfw.c:390:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("unable to read from file \"%s\"", fdata->file_name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mktplinkfw.c:266:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ mktplinkfw.c:548:20: warning: passing 'uint8_t[16]' (aka 'unsigned char[16]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] get_md5(buf, len, hdr->md5sum1); ^~~~~~~~~~~~ mktplinkfw.c:349:48: note: passing argument to parameter 'md5' here static int get_md5(char *data, int size, char *md5) ^ mktplinkfw.c:592:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("could not open \"%s\" for writing", ofname); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mktplinkfw.c:266:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ mktplinkfw.c:599:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("unable to write output file"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mktplinkfw.c:266:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ mktplinkfw.c:778:39: warning: passing 'uint8_t[16]' (aka 'unsigned char[16]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] get_md5(buf, inspect_info.file_size, hdr->md5sum1); ^~~~~~~~~~~~ mktplinkfw.c:349:48: note: passing argument to parameter 'md5' here static int get_md5(char *data, int size, char *md5) ^ 8 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz mkwrgimg.c -o mkwrgimg cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz mkzynfw.c -o mkzynfw mkzynfw.c:378:11: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((arg == NULL)) { ~~~~^~~~~~~ mkzynfw.c:378:11: note: remove extraneous parentheses around the comparison to silence this warning if ((arg == NULL)) { ~ ^ ~ mkzynfw.c:378:11: note: use '=' to turn this equality comparison into an assignment if ((arg == NULL)) { ^~ = mkzynfw.c:483:14: warning: passing 'char *' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] csum_update(&pad, 1, css); ^~~~ mkzynfw.c:447:22: note: passing argument to parameter 'p' here csum_update(uint8_t *p, uint32_t len, struct csum_state *css) ^ mkzynfw.c:614:7: warning: assigning to 'char *' from 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] data = buf+sizeof(*mh); ^ ~~~~~~~~~~~~~~~ mkzynfw.c:692:9: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] name, len); ^~~ mkzynfw.c:263:49: note: expanded from macro 'DBG' fprintf(stderr, "[%s] " fmt "\n", progname, ## __VA_ARGS__ ); \ ~~~ ^~~~~~~~~~~ mkzynfw.c:714:33: warning: passing 'char[16384]' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] res = write_out_data(outfile, buf, buflen, css); ^~~ mkzynfw.c:502:40: note: passing argument to parameter 'data' here write_out_data(FILE *outfile, uint8_t *data, size_t len, ^ mkzynfw.c:836:20: warning: taking address of packed member 'ocsum' of class or structure 'zyn_rombin_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] res = read_magic(&hdr.ocsum); ^~~~~~~~~ mkzynfw.c:993:3: warning: format specifies type 'unsigned long' but the argument has type 'uint32_t' (aka 'unsigned int') [-Wformat] *offset); ^~~~~~~ mkzynfw.c:263:49: note: expanded from macro 'DBG' fprintf(stderr, "[%s] " fmt "\n", progname, ## __VA_ARGS__ ); \ ~~~ ^~~~~~~~~~~ 7 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz motorola-bin.c -o motorola-bin cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz nand_ecc.c -o nand_ecc cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz osbridge-crc.c -o osbridge-crc osbridge-crc.c:124:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("stat failed on %s", ifname); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ osbridge-crc.c:55:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ osbridge-crc.c:137:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("could not open \"%s\" for reading", ifname); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ osbridge-crc.c:55:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ osbridge-crc.c:144:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("unable to read from file %s", ifname); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ osbridge-crc.c:55:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ osbridge-crc.c:154:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("could not open \"%s\" for writing", ofname); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ osbridge-crc.c:55:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ osbridge-crc.c:161:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("unable to write to file %s", ofname); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ osbridge-crc.c:55:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ 5 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz pc1crypt.c -o pc1crypt pc1crypt.c:170:9: warning: passing 'unsigned char[17]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(pc1->cle, "Remsaalps!123456"); ^~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ pc1crypt.c:286:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("stat failed on %s", ifname); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pc1crypt.c:212:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ pc1crypt.c:299:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("could not open \"%s\" for reading", ifname); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pc1crypt.c:212:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ pc1crypt.c:305:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("could not open \"%s\" for writing", ofname); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pc1crypt.c:212:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ pc1crypt.c:321:4: warning: data argument not used by format string [-Wformat-extra-args] ERRS("unable to read from file %s", ifname); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pc1crypt.c:212:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ pc1crypt.c:326:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] pc1_decrypt_buf(&pc1, buf, datalen); ^~~ pc1crypt.c:173:65: note: passing argument to parameter 'buf' here static void pc1_decrypt_buf(struct pc1_ctx *pc1, unsigned char *buf, ^ pc1crypt.c:328:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] pc1_encrypt_buf(&pc1, buf, datalen); ^~~ pc1crypt.c:182:65: note: passing argument to parameter 'buf' here static void pc1_encrypt_buf(struct pc1_ctx *pc1, unsigned char *buf, ^ pc1crypt.c:333:4: warning: data argument not used by format string [-Wformat-extra-args] ERRS("unable to write to file %s", ofname); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pc1crypt.c:212:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ 8 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz ptgen.c -o ptgen ptgen.c:137:36: warning: multiple unsequenced modifications to 'start' [-Wunsequenced] pte[i].start = cpu_to_le16(start = sect + sectors); ^ ptgen.c:35:33: note: expanded from macro 'cpu_to_le16' #define cpu_to_le16(x) bswap_16(x) ^ ./freebsd.h:6:31: note: expanded from macro 'bswap_16' #define bswap_16(x) ((bswap_8(x) << 8) | bswap_8((x) >> 8)) ^ ~ ./freebsd.h:5:22: note: expanded from macro 'bswap_8' #define bswap_8(x) ((x) & 0xff) ^ ptgen.c:139:35: warning: multiple unsequenced modifications to 'len' [-Wunsequenced] pte[i].length = cpu_to_le16(len = sect - start); ^ ptgen.c:35:33: note: expanded from macro 'cpu_to_le16' #define cpu_to_le16(x) bswap_16(x) ^ ./freebsd.h:6:31: note: expanded from macro 'bswap_16' #define bswap_16(x) ((bswap_8(x) << 8) | bswap_8((x) >> 8)) ^ ~ ./freebsd.h:5:22: note: expanded from macro 'bswap_8' #define bswap_8(x) ((x) & 0xff) ^ 2 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz spw303v.c -o spw303v spw303v.c:140:8: warning: implicit declaration of function 'ntohl' is invalid in C99 [-Wimplicit-function-declaration] crc = ntohl(*((uint32_t *)&tag->imageCRC)); ^ spw303v.c:142:8: warning: implicit declaration of function 'htonl' is invalid in C99 [-Wimplicit-function-declaration] crc = htonl(crc32(crc, fake_data, 64)); ^ spw303v.c:142:25: warning: passing 'char[64]' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] crc = htonl(crc32(crc, fake_data, 64)); ^~~~~~~~~ spw303v.c:120:39: note: passing argument to parameter 'data' here uint32_t crc32(uint32_t crc, uint8_t *data, size_t len) ^ spw303v.c:221:32: warning: passing 'char[1024]' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] image_crc = crc32(image_crc, buf, n); ^~~ spw303v.c:120:39: note: passing argument to parameter 'data' here uint32_t crc32(uint32_t crc, uint8_t *data, size_t len) ^ 4 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz srec2bin.c -o srec2bin srec2bin.c:407:27: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (itmp|=s1s2s3_total) return(SRLerrorout("Incorrect number of S3 Record processed",scp)); ~~~~^~~~~~~~~~~~~~ srec2bin.c:407:27: note: place parentheses around the assignment to silence this warning if (itmp|=s1s2s3_total) return(SRLerrorout("Incorrect number of S3 Record processed",scp)); ^ ( ) srec2bin.c:407:27: note: use '!=' to turn this compound assignment into an inequality comparison if (itmp|=s1s2s3_total) return(SRLerrorout("Incorrect number of S3 Record processed",scp)); ^~ != srec2bin.c:516:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main(int argc, char *argv[]) ^ 2 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz trx.c -o trx cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz trx2edips.c -o trx2edips cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz trx2usr.c -o trx2usr cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz wndr3700.c -o wndr3700 cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz xorimage.c -o xorimage xorimage.c:114:20: warning: passing 'char[1024]' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] p_off = xor_data(buf, n, pattern, p_len, p_off); ^~~ xorimage.c:31:23: note: passing argument to parameter 'data' here int xor_data(uint8_t *data, size_t len, const uint8_t *pattern, int p_len, int p_off) ^ xorimage.c:114:28: warning: passing 'const char *' to parameter of type 'const uint8_t *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] p_off = xor_data(buf, n, pattern, p_len, p_off); ^~~~~~~ xorimage.c:31:56: note: passing argument to parameter 'pattern' here int xor_data(uint8_t *data, size_t len, const uint8_t *pattern, int p_len, int p_off) ^ 2 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -c buffalo-enc.c -o buffalo-enc.o cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -c buffalo-lib.c -o buffalo-lib.o buffalo-lib.c:252:45: warning: if statement has empty body [-Wempty-body] if (!memcmp("start", magic, ENC_MAGIC_LEN)); ^ buffalo-lib.c:252:45: note: put the semicolon on a separate line to silence this warning buffalo-lib.c:255:45: warning: if statement has empty body [-Wempty-body] if (!memcmp("asar1", magic, ENC_MAGIC_LEN)); ^ buffalo-lib.c:255:45: note: put the semicolon on a separate line to silence this warning 2 warnings generated. cc -o buffalo-enc -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz buffalo-enc.o buffalo-lib.o cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -c buffalo-tag.c -o buffalo-tag.o cc -o buffalo-tag -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz buffalo-tag.o buffalo-lib.o cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -c buffalo-tftp.c -o buffalo-tftp.o cc -o buffalo-tftp -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz buffalo-tftp.o buffalo-lib.o cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -c imagetag.c -o imagetag.o imagetag.c:328:35: warning: format specifies type 'unsigned long' but the argument has type 'uint32_t' (aka 'unsigned int') [-Wformat] sprintf(tag.cfeAddress, "%lu", flash_start); ~~~ ^~~~~~~~~~~ %u 1 warning generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -c imagetag_cmdline.c -o imagetag_cmdline.o cc -o imagetag -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz imagetag.o imagetag_cmdline.o cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -c mkplanexfw.c -o mkplanexfw.o mkplanexfw.c:191:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("stat failed on %s", ifname); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkplanexfw.c:86:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ mkplanexfw.c:219:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("could not open \"%s\" for reading", ifname); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkplanexfw.c:86:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ mkplanexfw.c:226:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("unable to read from file %s", ifname); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkplanexfw.c:86:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ mkplanexfw.c:233:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] sha1_update(&ctx, buf + sizeof(*hdr), board->datalen); ^~~~~~~~~~~~~~~~~~ ./sha1.h:29:45: note: passing argument to parameter 'input' here void sha1_update( sha1_context *ctx, uchar *input, uint length ); ^ mkplanexfw.c:238:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("could not open \"%s\" for writing", ofname); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkplanexfw.c:86:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ mkplanexfw.c:245:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("unable to write to file %s", ofname); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkplanexfw.c:86:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ 6 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -c sha1.c -o sha1.o cc -o mkplanexfw -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz mkplanexfw.o sha1.o cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -c mkzcfw.c -o mkzcfw.o mkzcfw.c:157:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("stat failed on %s", fdata->file_name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkzcfw.c:105:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ mkzcfw.c:172:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("could not open \"%s\" for reading", fdata->file_name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkzcfw.c:105:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ mkzcfw.c:179:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("unable to read from file \"%s\"", fdata->file_name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkzcfw.c:105:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ mkzcfw.c:249:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("could not open \"%s\" for writing", ofname); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkzcfw.c:105:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ mkzcfw.c:256:3: warning: data argument not used by format string [-Wformat-extra-args] ERRS("unable to write output file"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkzcfw.c:105:30: note: expanded from macro 'ERRS' progname, ## __VA_ARGS__, strerror(save)); \ ^ mkzcfw.c:319:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] tail->crc = HOST_TO_BE32(cyg_crc32(p, kernel_info.file_size + ^ mkzcfw.c:25:28: note: expanded from macro 'HOST_TO_BE32' # define HOST_TO_BE32(x) (x) ^ ./cyg_crc.h:82:26: note: passing argument to parameter 's' here cyg_crc32(unsigned char *s, int len); ^ mkzcfw.c:339:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] tail->crc = HOST_TO_BE32(cyg_crc32(p, rootfs_info.file_size + ^ mkzcfw.c:25:28: note: expanded from macro 'HOST_TO_BE32' # define HOST_TO_BE32(x) (x) ^ ./cyg_crc.h:82:26: note: passing argument to parameter 's' here cyg_crc32(unsigned char *s, int len); ^ mkzcfw.c:347:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] tail->crc = HOST_TO_BE32(cyg_crc32(buf + sizeof(struct fw_header), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkzcfw.c:25:28: note: expanded from macro 'HOST_TO_BE32' # define HOST_TO_BE32(x) (x) ^ ./cyg_crc.h:82:26: note: passing argument to parameter 's' here cyg_crc32(unsigned char *s, int len); ^ 8 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -c cyg_crc32.c -o cyg_crc32.o cc -o mkzcfw -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz mkzcfw.o cyg_crc32.o cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -c wrt400n.c -o wrt400n.o wrt400n.c:265:8: warning: implicit declaration of function 'htonl' is invalid in C99 [-Wimplicit-function-declaration] crc = htonl(crc); ^ 1 warning generated. cc -o wrt400n -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lmd -lcrypto -lz wrt400n.o cyg_crc32.o =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> firmware-utils-20111222 depends on file: /usr/local/lib/libcrypto.so.12 - found =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Staging for firmware-utils-20111222 ===> Generating temporary packing list install -s -m 555 add_header addpattern airlink dgfirmware encode_crc lzma2eva makeamitbin mkcasfw mkchkimg mkcsysimg mkdniimg mkedimaximg mkfwimage mkfwimage2 mkmylofw mktitanimg mktplinkfw mkwrgimg mkzynfw motorola-bin nand_ecc osbridge-crc pc1crypt ptgen spw303v srec2bin trx trx2edips trx2usr wndr3700 xorimage buffalo-enc buffalo-tag buffalo-tftp imagetag mkplanexfw mkzcfw wrt400n /wrkdirs/usr/ports/devel/firmware-utils/work/stage/usr/local/bin ====> Compressing man pages (compress-man) =========================================================================== =================================================== ===== env: 'PKG_NOTES=build_timestamp ports_top_git_hash ports_top_checkout_unclean port_git_hash port_checkout_unclean built_by' 'PKG_NOTE_build_timestamp=2024-04-01T01:41:54+0000' 'PKG_NOTE_ports_top_git_hash=c2c35d895e' 'PKG_NOTE_ports_top_checkout_unclean=yes' 'PKG_NOTE_port_git_hash=c014f9c79a' 'PKG_NOTE_port_checkout_unclean=no' 'PKG_NOTE_built_by=poudriere-git-3.4.99.20240122_1' NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building packages for firmware-utils-20111222 ===> Building firmware-utils-20111222 =========================================================================== =>> Cleaning up wrkdir ===> Cleaning for firmware-utils-20111222 build of devel/firmware-utils | firmware-utils-20111222 ended at Mon Apr 1 02:42:12 BST 2024 build time: 00:00:19