-
Notifications
You must be signed in to change notification settings - Fork 182
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
Can't make hash_extender #1
Comments
Are you using OS X? Modifying the Makefile to use the |
I've been tryign to track down an OS X box to replicate, but it's not easy. I found one at work, but it didn't have dev tools, and installing dev tools required an OS upgrade, so that didn't go far. :) If anybody else can get this working in such a way that it works on Mac + Linux, I'd be super grateful! |
Right, I'm on OS X. Changed -o to -s:
Now we get:
SO [2] suggests we can replace
with
but this results in a whole slew of errors (mostly deprecation errors). Adding
So... these functions actually weren't defined. Turns out that "OS X doesn't ship with any GNU endian functions (i.e Looks like adding these definitions to
Now
I'll package this up into a pull request so you can see if it still works on your system. I don't write a lot of C, so feel free to make whatever suggestions you see fit. [1] https://code.google.com/p/nfc-tools/issues/detail?id=21 |
Add support for Mac OS X (fixing issue #1) - tested and it still works on Linux, so LGTM! Thanks!
Assumed we just need to run make. Got this error at the start of the process.
$ make
uname: illegal option -- o
usage: uname [-amnprsv]
[CC] buffer.o
In file included from :162:
:2:9: error: macro names must be identifiers
define -DDISABLE_WHIRLPOOL 1
1 error generated.
make: *** [buffer.o] Error 1
As you can see, just using the make that comes with Apple.
$ make --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for i386-apple-darwin11.3.0
The text was updated successfully, but these errors were encountered: