notgiven688/webminerpool

libhash.so not detected but in folder

77656233 opened this issue · 6 comments

I compiled it but it does not get detected. Its in the folder. Anything i am doing wrong?

Probably ;) What does the console say?

that the file cant be found like if its not in

Compiled it again on server and problem seems to be gone.

Yes, seems that it has to be compiled twice.

Mono: DllImport attempting to load: 'libhash.so'.
Mono: DllImport loaded library '/usr/local/bin/libhash.so'.
Mono: DllImport searching in: 'libhash.so' ('/usr/local/bin/libhash.so').
Mono: Searching for 'hash_cn'.
Mono: Probing 'hash_cn'.
Mono: Found as 'hash_cn'.
Mono: DllImport searching in: 'libhash.so' ('/usr/local/bin/libhash.so').
Mono: Searching for 'hash_free'.
Mono: Probing 'hash_free'.
Mono: Found as 'hash_free'.
libhash.so is not available. Checking user submitted hashes disabled:

-> System.Exception: Hash function returned wrong hash

I think it has something to do with the way the .so is linked