codewars / codewars-runner-cli

Old CodeRunner project. See https://github.com/codewars/runner instead.
GNU Affero General Public License v3.0
402 stars 141 forks source link

Cannot use crypto functions in C/NASM #728

Closed uniapi closed 5 years ago

uniapi commented 5 years ago

The openssl library functions are not available in C and NASM solutions (translations). Trying to use the MD5 function or similar gives the following linker error:

/tmp/solution-b46886.o: In function `passwd_hash':
solution.c:(.text+0x61): undefined reference to `MD5'
clang: error: linker command failed with exit code 1 (use -v to see invocation)

The link to C Translation

Please, add -lcrypto for C and NASM languages (maybe for C++ and Objective-C) Also add -ldl as it will be needed in some future Katas not to open a similar issue again...

:+1:

uniapi commented 5 years ago

If status/ready means that the package was added then the same error message still appears... Otherwise, ignore this comment.

kazk commented 5 years ago

It means it's ready to be deployed (hover over the label or go to labels page). I'll close when it's deployed.

I might change the name to make it more clear.

kazk commented 5 years ago

Deployed

uniapi commented 5 years ago

Great! It does work now... :rainbow: