Skip to content

changemac.sh errors. #12

Open
Open

Description

@HJMVR

Hello. I tried to change the mac address on the rom file and after installing all dependencies I get this error

mkdir -p /usr/local/bin /usr/bin/env install ifdtool /usr/local/bin rm -f *.lex.c *.tab.c *.tab.h *.o bincfg flashregion_0_fd.bin flashregion_3_gbe.bin bison -d bincfg.y bison -d bincfg.y gcc -O2 -Wall -Wextra -Wshadow -Werror -Wno-unused-function -c -o bincfg.tab.o bincfg.tab.c flex -o bincfg.lex.c bincfg.l gcc -O2 -Wall -Wextra -Wshadow -Werror -Wno-unused-function -c -o bincfg.lex.o bincfg.lex.c bincfg.y: In function ‘main’: bincfg.y:497:3: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Werror=unused-result] 497 | fread(binary->actualblob, 1, binary->lenactualblob, fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bincfg.y: In function ‘loadfile’: bincfg.y:443:2: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Werror=unused-result] 443 | fread(*parsestring + lenstr, 1, lenfile, fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make: *** [<indbygget>: bincfg.tab.o] Fejl 1 make: *** Venter på uafsluttede job.... gcc -O2 -Wall -Wextra -Wshadow -Werror -Wno-unused-function -c -o bincfg.tab.o bincfg.tab.c bincfg.y: In function ‘main’: bincfg.y:497:3: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Werror=unused-result] 497 | fread(binary->actualblob, 1, binary->lenactualblob, fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bincfg.y: In function ‘loadfile’: bincfg.y:443:2: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Werror=unused-result] 443 | fread(*parsestring + lenstr, 1, lenfile, fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make: *** [<indbygget>: bincfg.tab.o] Fejl 1

Got any idea what could be wrong?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions