dellelce / mkit

build software from (latest available) source
1 stars 2 forks source link

readline issues while building python3 #75

Open dellelce opened 1 month ago

dellelce commented 1 month ago

the following test in Python configure log appears to be an issue with Python's configure (missing -lncurses):

configure:25125: checking for rl_pre_input_hook in -lreadline
configure:25151: gcc -std=gnu11 -pthread -o conftest  -I/app/shared/110524/include  -D_GNU_SOURCE -DNCURSES_WIDECHAR -I/app/shared/110524/include -I/app/shared/110524/include/ncurses  -L/app/shared/110524/lib -Wl,-rpath=/app/shared/110524/lib conftest.c -L/app/shared/110524/lib -lreadline   -lpthread -ldl  -lutil >&5
/app/shared/110524/lib/libreadline.so: undefined reference to `tputs'
/app/shared/110524/lib/libreadline.so: undefined reference to `tgoto'
/app/shared/110524/lib/libreadline.so: undefined reference to `tgetflag'
/app/shared/110524/lib/libreadline.so: undefined reference to `UP'
/app/shared/110524/lib/libreadline.so: undefined reference to `tgetent'
/app/shared/110524/lib/libreadline.so: undefined reference to `tgetnum'
/app/shared/110524/lib/libreadline.so: undefined reference to `PC'
/app/shared/110524/lib/libreadline.so: undefined reference to `tgetstr'
/app/shared/110524/lib/libreadline.so: undefined reference to `BC'
collect2: error: ld returned 1 exit status
dellelce commented 3 weeks ago

add missing PKG_CONFIG_PATH in build script for readline was not enough for fixing the issue: 64ab291

dellelce commented 3 weeks ago

latest run as of today 10 June 2024:

configure stage:

checking for readline... yes
checking how to link readline... readline (CFLAGS: -D_GNU_SOURCE -DNCURSES_WIDECHAR -I/app/shared/100624/include -I/app/shared/100624/include/ncurses, LIBS: -L/app/shared/100624/lib -lreadline  )
checking whether rl_completion_append_character is declared... yes
checking whether rl_completion_suppress_append is declared... yes
checking for rl_pre_input_hook in -lreadline... no
checking for rl_completion_display_matches_hook in -lreadline... no
checking for rl_resize_terminal in -lreadline... no
checking for rl_completion_matches in -lreadline... no
checking whether rl_catch_signals is declared... yes
checking for append_history in -lreadline... no
checking for rl_compdisp_func_t... yes

make step:

LC_ALL=C sed -e 's,\$(\([A-Za-z0-9_]*\)),\$\{\1\},g' < Misc/python-config.sh >python-config
[ERROR] readline failed to import: /app/shared/100624/lib/libreadline.so.8: undefined symbol: UP

readline is not loading because ncurses is not built or link options incorrect.