unikraft / lib-python3

Unikraft port of Python 3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`select()` error since release 0.10

razvand opened this issue · comments

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

/home/razvan/projects/unicore/unikraft-my/apps/app-python3/build/python3_kvm-x86_64.o: In function `pysleep':
/home/razvan/projects/unicore/unikraft-my/apps/app-python3/build/libpython3/origin/Python-3.7.4/Modules/timemodule.c:1843: undefined reference to `select'
/home/razvan/projects/unicore/unikraft-my/apps/app-python3/build/python3_kvm-x86_64.o: In function `select_select':
/home/razvan/projects/unicore/unikraft-my/apps/app-python3/build/libpython3/origin/Python-3.7.4/Modules/selectmodule.c:269: undefined reference to `select'
/home/razvan/projects/unicore/unikraft-my/apps/app-python3/build/python3_kvm-x86_64.o: In function `internal_select':
/home/razvan/projects/unicore/unikraft-my/apps/app-python3/build/libpython3/origin/Python-3.7.4/Modules/socketmodule.c:772: undefined reference to `select'
/home/razvan/projects/unicore/unikraft-my/apps/app-python3/build/libpython3/origin/Python-3.7.4/Modules/socketmodule.c:769: undefined reference to `select'

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

Solved by #6