unikraft / app-redis

Redis on Unikraft
5 stars 12 forks source link

`select()` and `poll()` error since release 0.10 #7

Closed razvand closed 2 years ago

razvand commented 2 years ago

Since the 0.10 release there is an poll() and select()-related error, due to missing inclusion if posix-event and posix-socket:

/home/razvan/projects/unicore/unikraft-my/apps/app-redis.git/build/redis_kvm-x86_64.o: In function `redisContextWaitReady':
/home/razvan/projects/unicore/unikraft-my/apps/app-redis.git/build/libredis/origin/redis-5.0.6/deps/hiredis/net.c:213: undefined reference to `poll'
/home/razvan/projects/unicore/unikraft-my/apps/app-redis.git/build/redis_kvm-x86_64.o: In function `aeApiPoll':
/home/razvan/projects/unicore/unikraft-my/apps/app-redis.git/build/libredis/origin/redis-5.0.6/src/ae_select.c:84: undefined reference to `select'
/home/razvan/projects/unicore/unikraft-my/apps/app-redis.git/build/redis_kvm-x86_64.o: In function `aeWait':
/home/razvan/projects/unicore/unikraft-my/apps/app-redis.git/build/libredis/origin/redis-5.0.6/src/ae.c:485: undefined reference to `poll'

The Config.uk file needs to be updated to use LIBPOSIX_SOCKET and LIBPOSIX_EVENT.

razvand commented 2 years ago

This has been moved to lib-redis.