Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to build on Linux Mint 17.1 #39

Open
sarciszewski opened this issue Mar 26, 2015 · 6 comments
Open

Fails to build on Linux Mint 17.1 #39

sarciszewski opened this issue Mar 26, 2015 · 6 comments

Comments

@sarciszewski
Copy link

vbox passgen # git branch
* master
vbox passgen # make
gcc -std=c99  -pedantic -Werror -Wall -Wextra -Wwrite-strings -Winit-self -Wcast-align -Wcast-qual -Wpointer-arith -Wstrict-aliasing -Wformat=2 -Wmissing-declarations -Wmissing-include-dirs -Wno-unused-parameter -Wuninitialized -Wold-style-definition -Wstrict-prototypes -Wmissing-prototypes -c passgen.c -o passgen.o
passgen.c: In function ‘showHelp’:
passgen.c:230:84: error: ‘WORDLIST_WORD_COUNT’ undeclared (first use in this function)
     printf("  -w, --words\t\t\t\t%d random words from a list of %d\n", WORD_COUNT, WORDLIST_WORD_COUNT);
                                                                                    ^
passgen.c:230:84: note: each undeclared identifier is reported only once for each function it appears in
passgen.c: In function ‘showRandomWords’:
passgen.c:292:24: error: ‘WORDLIST_MAX_LENGTH’ undeclared (first use in this function)
     unsigned char word[WORDLIST_MAX_LENGTH];
                        ^
passgen.c:301:48: error: ‘WORDLIST_WORD_COUNT’ undeclared (first use in this function)
         random = random & getLeastCoveringMask(WORDLIST_WORD_COUNT - 1);
                                                ^
passgen.c:292:19: error: unused variable ‘word’ [-Werror=unused-variable]
     unsigned char word[WORDLIST_MAX_LENGTH];
                   ^
passgen.c: In function ‘lookup_word’:
passgen.c:347:30: error: ‘WORDLIST_MAX_LENGTH’ undeclared (first use in this function)
     for (uint32_t i = 0; i < WORDLIST_MAX_LENGTH; i++) {
                              ^
passgen.c:351:30: error: ‘WORDLIST_WORD_COUNT’ undeclared (first use in this function)
     for (uint32_t i = 0; i < WORDLIST_WORD_COUNT; i++) {
                              ^
passgen.c:354:23: error: ‘words’ undeclared (first use in this function)
             buf[j] |= words[i][j+1] & mask;
                       ^
cc1: all warnings being treated as errors
make: *** [passgen.o] Error 1
@defuse
Copy link
Owner

defuse commented Mar 26, 2015

Hmm... so wordlist.h is not being generated correctly or at all. This is done with a ruby script. Does your system have ruby installed?

@sarciszewski
Copy link
Author

I had to install Ruby to get that far.

@defuse
Copy link
Owner

defuse commented Mar 27, 2015

Does wordlist.h exist, if so, what's in it?

@defuse
Copy link
Owner

defuse commented Mar 27, 2015

(that should be libs/wordlist.h)

@sarciszewski
Copy link
Author

I'll tell you tomorrow when I return to that computer with that VM. :)

@defuse
Copy link
Owner

defuse commented Jun 16, 2015

Did you ever find out what was going on here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants