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

xcoin.c fails to compile because of redefined typedefs #3

Open
kerb3r0s opened this issue Mar 12, 2014 · 2 comments
Open

xcoin.c fails to compile because of redefined typedefs #3

kerb3r0s opened this issue Mar 12, 2014 · 2 comments

Comments

@kerb3r0s
Copy link

I followed the installation instructions for *nix and saw the following errors during the make process when gcc attempted to compile xcoin.c:

[darkcoin-cpuminer-1.2c-master]$ gcc -std=gnu99 -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -I./compat/jansson -O3 -MT minerd-xcoin.o -MD -MP -MF .deps/minerd-xcoin.Tpo -c -o minerd-xcoin.o test -f 'xcoin.c' || echo './'xcoin.c
In file included from xcoin.c:25:
x6/jh_sse2_opt64.h:32: error: redefinition of typedef ‘BitSequence’
x5/defs_x5.h:5: note: previous declaration of ‘BitSequence’ was here
x6/jh_sse2_opt64.h:33: error: redefinition of typedef ‘DataLength’
x5/defs_x5.h:6: note: previous declaration of ‘DataLength’ was here
xcoin.c: In function ‘Xhash’:
xcoin.c:97: warning: assignment discards qualifiers from pointer target type
xcoin.c:112: warning: right shift count >= width of type
xcoin.c:112: warning: right shift count >= width of type
xcoin.c:112: warning: right shift count >= width of type
xcoin.c:112: warning: right shift count >= width of type

I was able to workaround this issue by commenting out the duplicate definitions for BitSequence and DataLength in jh_sse2_opt64.h.

I'm using CentOS 6.4 and all packages are up to date. I downloaded the source zip directly from git. Here's a paste of the config.log in case it's helpful.

http://pastebin.com/jux40Ggj

@ansemz
Copy link

ansemz commented Jul 12, 2014

I got the same issues. Please help us.

@Zenitur
Copy link

Zenitur commented Apr 23, 2017

gcc -std=gnu99 -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -I./compat/jansson -O3 -MT minerd-xcoin.o -MD -MP -MF .deps/minerd-xcoin.Tpo -c -o minerd-xcoin.o test -f 'xcoin.c' || echo './'xcoin.c
In file included from xcoin.c:25:
x6/jh_sse2_opt64.h:32: error: redefinition of typedef ‘BitSequence’
x5/defs_x5.h:5: error: previous declaration of ‘BitSequence’ was here
x6/jh_sse2_opt64.h:33: error: redefinition of typedef ‘DataLength’
x5/defs_x5.h:6: error: previous declaration of ‘DataLength’ was here
xcoin.c: In function ‘Xhash’:
xcoin.c:97: warning: assignment discards qualifiers from pointer target type
xcoin.c:112: warning: right shift count >= width of type
xcoin.c:112: warning: right shift count >= width of type
xcoin.c:112: warning: right shift count >= width of type
xcoin.c:112: warning: right shift count >= width of type
make[2]: *** [minerd-xcoin.o] Error 1

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

3 participants