brainpicture / hashlib

lib for node which makes hashes
nodejs.ru
165 stars 35 forks source link

does not compile with node v0.6.x #25

Open subnetmarco opened 13 years ago

subnetmarco commented 13 years ago
../hashlib.cc:14:16: error: ev.h: No such file or directory
../hashlib.cc:15:17: error: eio.h: No such file or directory
Waf: Leaving directory `/home/ec2-user/hashlib/build'
Build failed:  -> task failed (err #1): 
    {task: cxx hashlib.cc -> hashlib_2.o}
make: *** [build] Error 1
brainpicture commented 13 years ago

Strange case. I already compiled and tested it with new node version. Maybe I have old ev.h on the system.. I'll test this case

ovaillancourt commented 13 years ago

Having the same problem here, to show it's not an isolated case. (OS X 10.6.8),

../hashlib.cc:15:17: error: eio.h: No such file or directory
../hashlib.cc:311: error: ‘eio_req’ was not declared in this scope
../hashlib.cc:311: error: ‘req’ was not declared in this scope
../hashlib.cc:312: error: expected ‘,’ or ‘;’ before ‘{’ token
hipyhop commented 13 years ago

I'm getting same as above on OS X 10.7

I changed the node prefix so i'm not sure if it's looking for the headers files in the wrong place?

Keep up the good work!

ovaillancourt commented 13 years ago

It seems to be the exact same error than what is reported in issues #23 and #22

Having put a prefix in there too, I just made a clean reinstall without a prefix too see if it made any difference. Still getting the error.

brainpicture commented 12 years ago

Should be fixed

ovaillancourt commented 12 years ago

Good stuff :D

Can we have the changes pushed to npm?

Thanks!

timoxley commented 12 years ago

+1 please publish to npm

indygwyn commented 12 years ago

+1 please publish to npm

muloka commented 12 years ago

Using the latest npm (1.1.0-alpha-6) I get no compilation errors though if I try using hashlib I get a "Cannot find module 'hashlib'" type of error. On the other hand when I use Way 2 to install it I have zero problems using hashlib.

markbao commented 12 years ago

+1 please publish to npm

jaw187 commented 12 years ago

+1 please publish to npm

seejohnrun commented 12 years ago

+1 please publish to npm - https://github.com/Hiverness/hashlib/tarball/compat_fix_node_0_6_X has been taken down, which I was using for a while as a fix in my deploy

timoxley commented 12 years ago

@seejohnrun Hiverness changed his username, repo is still up: https://github.com/ovaillancourt/hashlib

seejohnrun commented 12 years ago

@secoif thanks!

ovaillancourt commented 12 years ago

Oops! Sorry about that guys :P. It's indeed still available. (Changed username to have the same one than in irc chat/mailing list)

seejohnrun commented 12 years ago

Haha, thanks for keeping it up - I'd imagine a lot of people are using it :)

timoxley commented 12 years ago

@brainfucker any updates on the status of this RE npm? If there's anything blocking you, please let us know so we may help.

ovaillancourt commented 12 years ago

With my new username:

npm install https://github.com/ovaillancourt/hashlib/tarball/compat_fix_node_0_6_X

to install the thing.

Just a quick word though, that fork of mine is in now way synced with the latest changes from Oleg in the real repo (this one). Also, his own fix to make things work on 0.6 are cleaner than mines (where I just hacked until it started working).

So: Use with caution!

Baggz commented 12 years ago

+1

karlseguin commented 12 years ago

for what it's worth, I cloned the project and pushed an updated npm as "hashlib2":

http://search.npmjs.org/#/hashlib2

ovaillancourt commented 12 years ago

Honestly I was thinking about it the other day and I think it might be better to use node's crypto.

It supports pretty much everything openssl supports in terms of algorithms, which means pretty much all of hashlib's algos...

I've been doing fine with note's "crypto" lib for 3-4 months now, doing some pretty intensive hashing without any problem/limitation.

seejohnrun commented 12 years ago

I also switched to crypto: http://seejohncode.com/2012/01/22/crypto-in-node-js