Finally we made it - Thanks to you all
for helping me! I attached my bb file for that case someone is searching
for a bitbake recipe for building the libhiredis
If you submit the recipe to meta-oe then you can share development of the recipe with others.
Oh, and I just noticed that you commented out SRCREV. Ideally don't use a tag name in the SRC_URI but set SRCREV to that tag's hash, so caches and offline builds can work.