unikraft / lib-python3

Unikraft port of Python 3
Other
4 stars 7 forks source link

`select()` error since release 0.10 #7

Closed razvand closed 1 year ago

razvand commented 2 years ago

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.

razvand commented 1 year ago

Solved by #6