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

unable to build since rencent changes #64

Closed
sheepdestroyer opened this issue Oct 31, 2017 · 6 comments
Closed

unable to build since rencent changes #64

sheepdestroyer opened this issue Oct 31, 2017 · 6 comments
Labels

Comments

@sheepdestroyer
Copy link

I used to build pxieview on my fedora26 system but since recently, not able to anymore :

[sheepdestroyer@sheepora-X230 pixiewps]$ cd src/
[sheepdestroyer@sheepora-X230 src]$ make
cc -O2 -pipe -march=native  -o pixiewps pixiewps.c random_r.c mbedtls/sha256.c mbedtls/md.c mbedtls/md_wrap.c -lpthread 
In file included from random_r.c:40:0:
random_r.h:26:8: error: redefinition of ‘struct random_data’
 struct random_data {
        ^~~~~~~~~~~
In file included from random_r.c:27:0:
/usr/include/stdlib.h:320:8: note: originally defined here
 struct random_data
        ^~~~~~~~~~~
In file included from random_r.c:40:0:
random_r.h:36:6: error: conflicting types for ‘random_r’
 void random_r(struct random_data *buf, int32_t *result);
      ^~~~~~~~
In file included from random_r.c:27:0:
/usr/include/stdlib.h:331:12: note: previous declaration of ‘random_r’ was here
 extern int random_r (struct random_data *__restrict __buf,
            ^~~~~~~~
In file included from random_r.c:40:0:
random_r.h:37:5: error: conflicting types for ‘srandom_r’
 int srandom_r(unsigned int seed, struct random_data *buf);
     ^~~~~~~~~
In file included from random_r.c:27:0:
/usr/include/stdlib.h:334:12: note: previous declaration of ‘srandom_r’ was here
 extern int srandom_r (unsigned int __seed, struct random_data *__buf)
            ^~~~~~~~~
In file included from random_r.c:40:0:
random_r.h:38:5: error: conflicting types for ‘initstate_r’
 int initstate_r(unsigned int seed, char *arg_state, size_t n, struct random_data *buf);
     ^~~~~~~~~~~
In file included from random_r.c:27:0:
/usr/include/stdlib.h:337:12: note: previous declaration of ‘initstate_r’ was here
 extern int initstate_r (unsigned int __seed, char *__restrict __statebuf,
            ^~~~~~~~~~~
In file included from random_r.c:40:0:
random_r.h:39:5: error: conflicting types for ‘setstate_r’
 int setstate_r(char *arg_state, struct random_data *buf);
     ^~~~~~~~~~
In file included from random_r.c:27:0:
/usr/include/stdlib.h:342:12: note: previous declaration of ‘setstate_r’ was here
 extern int setstate_r (char *__restrict __statebuf,
            ^~~~~~~~~~
random_r.c:145:6: error: conflicting types for ‘random_r’
 void random_r(struct random_data *buf, int32_t *result)
      ^~~~~~~~
In file included from random_r.c:27:0:
/usr/include/stdlib.h:331:12: note: previous declaration of ‘random_r’ was here
 extern int random_r (struct random_data *__restrict __buf,
            ^~~~~~~~
random_r.c:203:5: error: conflicting types for ‘srandom_r’
 int srandom_r (unsigned int seed, struct random_data *buf)
     ^~~~~~~~~
In file included from random_r.c:27:0:
/usr/include/stdlib.h:334:12: note: previous declaration of ‘srandom_r’ was here
 extern int srandom_r (unsigned int __seed, struct random_data *__buf)
            ^~~~~~~~~
random_r.c:271:5: error: conflicting types for ‘initstate_r’
 int initstate_r (unsigned int seed, char *arg_state, size_t n, struct random_data *buf)
     ^~~~~~~~~~~
In file included from random_r.c:27:0:
/usr/include/stdlib.h:337:12: note: previous declaration of ‘initstate_r’ was here
 extern int initstate_r (unsigned int __seed, char *__restrict __statebuf,
            ^~~~~~~~~~~
random_r.c:330:5: error: conflicting types for ‘setstate_r’
 int setstate_r (char *arg_state, struct random_data *buf)
     ^~~~~~~~~~
In file included from random_r.c:27:0:
/usr/include/stdlib.h:342:12: note: previous declaration of ‘setstate_r’ was here
 extern int setstate_r (char *__restrict __statebuf,
            ^~~~~~~~~~
make: *** [Makefile:12: all] Error 1
[sheepdestroyer@sheepora-X230 src]$ 

@rofl0r
Copy link
Collaborator

rofl0r commented Oct 31, 2017

i'm curious which change is responsible for that to happen. care to bisect ?

@sheepdestroyer
Copy link
Author

i'll need to learn how to do that (I guess there is a smart automated way instead of just picking a commit by hand and building?).
back latter with more if had time and successful.

@sheepdestroyer
Copy link
Author

sheepdestroyer commented Oct 31, 2017

easy and fun

[sheepdestroyer@sheepora-X230 pixiewps]$ git bisect bad
Bisecting: 0 revisions left to test after this (roughly 0 steps)
[367697a24f8d078b1567a2aabe7bcc2e9f8bebba] Makefile: rename CCFLAGS to CFLAGS
[sheepdestroyer@sheepora-X230 pixiewps]$ 

@sheepdestroyer
Copy link
Author

sheepdestroyer commented Oct 31, 2017

Which makes me think that I have a few tweaks in my .bashrc:

[sheepdestroyer@sheepora-X230 pixiewps]$ echo $CFLAGS
-O2 -pipe -march=native

Relevant to what I get? Should I better not do that?

wiire-a added a commit that referenced this issue Oct 31, 2017
@wiire-a
Copy link
Owner

wiire-a commented Oct 31, 2017

Should be fixed now.

@sheepdestroyer
Copy link
Author

yep, can confirm

@wiire-a wiire-a closed this as completed Oct 31, 2017
@wiire-a wiire-a added the build label Feb 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants