SliTaz SliTaz Forum

You are not logged in.

#1 2022-01-12 22:09:54

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

undefined reference to symbol 'nodelay'

Hello

I want to compile the kernel 5.10 but when I run [c]make menuconfig[/c] I get the message

[c]/usr/bin/ld: scripts/kconfig/lxdialog/util.o: undefined reference to symbol 'nodelay'

/usr/bin/ld: /lib/libtinfo.so.6: error adding symbols: DSO missing from command line[/c]

I thought maybe I needed to upgrade a package but according to https://www.kernel.org/doc/html/v5.10/process/changes.html#current-minimal-requirements all are OK (using gcc 6.2.0)

I searched on the internet but I didn't find anything that helped.

Someone can help?

Offline

#2 2022-01-13 04:32:27

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: undefined reference to symbol 'nodelay'

Hi Ceel,

Not sure but i seem have similar issue when i try to build 5.10 branch kernel on my own system.

I need to enable --enable-pc-files in configure step for ncursesw (ncursesw-dev).

Checked on cooking, it's case, maybe just need add ncursesw-dev deps.

Offline

#3 2022-01-13 19:04:04

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: undefined reference to symbol 'nodelay'

Hi shann,

Thank you for your answer.

[c]ncursesw[/c] and [c]ncursesw-dev[/c] are installed, and [c]--enable-pc-files[/c] is set in the ncurses/ncursesw's receipts.

sad

Offline

#4 2022-01-13 20:21:19

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: undefined reference to symbol 'nodelay'

Which version of kernel-5.10?

with 5.10.80 I have no errors...

root@slitaz:/usr/src/linux-5.10.80$ make menuconfig

  HOSTCC  scripts/basic/fixdep

  UPD     scripts/kconfig/mconf-cfg

  HOSTCC  scripts/kconfig/mconf.o

  HOSTCC  scripts/kconfig/lxdialog/checklist.o

  HOSTCC  scripts/kconfig/lxdialog/inputbox.o

  HOSTCC  scripts/kconfig/lxdialog/menubox.o

  HOSTCC  scripts/kconfig/lxdialog/textbox.o

  HOSTCC  scripts/kconfig/lxdialog/util.o

  HOSTCC  scripts/kconfig/lxdialog/yesno.o

  HOSTCC  scripts/kconfig/confdata.o

  HOSTCC  scripts/kconfig/expr.o

  LEX     scripts/kconfig/lexer.lex.c

  YACC    scripts/kconfig/parser.tab.[ch]

  HOSTCC  scripts/kconfig/lexer.lex.o

  HOSTCC  scripts/kconfig/parser.tab.o

  HOSTCC  scripts/kconfig/preprocess.o

  HOSTCC  scripts/kconfig/symbol.o

  HOSTCC  scripts/kconfig/util.o

  HOSTLD  scripts/kconfig/mconf

#

# using defaults found in arch/x86/configs/x86_64_defconfig

#

Your configuration changes were NOT saved.

Offline

#5 2022-01-13 22:32:12

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: undefined reference to symbol 'nodelay'

@ gibor,

5.10.82

I'll give a try with 5.10.80 tomorrow or the day after and tell you.

Thanks.

Offline

#6 2022-01-15 13:29:52

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: undefined reference to symbol 'nodelay'

@Ceel

Don't waste your time with that test, it works identical for me... the problems can be seen not to be in the sources.

root@slitaz:/usr/src/linux-5.10.82$ make menuconfig

  HOSTCC  scripts/basic/fixdep

  UPD     scripts/kconfig/mconf-cfg

  HOSTCC  scripts/kconfig/mconf.o

  HOSTCC  scripts/kconfig/lxdialog/checklist.o

  HOSTCC  scripts/kconfig/lxdialog/inputbox.o

  HOSTCC  scripts/kconfig/lxdialog/menubox.o

  HOSTCC  scripts/kconfig/lxdialog/textbox.o

  HOSTCC  scripts/kconfig/lxdialog/util.o

  HOSTCC  scripts/kconfig/lxdialog/yesno.o

  HOSTCC  scripts/kconfig/confdata.o

  HOSTCC  scripts/kconfig/expr.o

  LEX     scripts/kconfig/lexer.lex.c

  YACC    scripts/kconfig/parser.tab.[ch]

  HOSTCC  scripts/kconfig/lexer.lex.o

  HOSTCC  scripts/kconfig/parser.tab.o

  HOSTCC  scripts/kconfig/preprocess.o

  HOSTCC  scripts/kconfig/symbol.o

  HOSTCC  scripts/kconfig/util.o

  HOSTLD  scripts/kconfig/mconf

#

# using defaults found in arch/x86/configs/x86_64_defconfig

#

Your configuration changes were NOT saved.

-------------------------------------------------------------------------

my build is very different

gcc --version

gcc (GCC) 10.2.0

clang --version

clang version 11.1.0

Target: x86_64-unknown-linux-gnu

Thread model: posix

InstalledDir: /usr/bin

make --version

GNU Make 4.3

ld -v

ld di GNU (GNU Binutils) 2.35

flex --version

flex 2.6.4

bison --version

bison (GNU Bison) 3.7.1

fdformat --version

fdformat da util-linux 2.36

depmod -V

kmod version 27

+XZ +ZLIB -LIBCRYPTO -EXPERIMENTAL

e2fsck -V

e2fsck 1.45.6 (20-Mar-2020)

        Utilizzando EXT2FS Library version 1.45.6, 20-Mar-2020

fsck.jfs -V

fsck.jfs: comando non trovato

reiserfsck -V

reiserfsck: comando non trovato

xfs_db -V

xfs_db: comando non trovato

mksquashfs -version

mksquashfs: comando non trovato

btrfsck

btrfsck: comando non trovato

pccardctl -V

pccardctl: comando non trovato

quota -V

quota: comando non trovato

dmesg | grep -i ppp | grep version

[    3.637868] PPP generic driver version 2.4.2

showmount --version

showmount: comando non trovato

ps --version

ps from procps-ng 3.3.16

oprofiled --version

oprofiled: comando non trovato

udevd --version

172

grub --version || grub-install --version

grub: comando non trovato

grub-install (GRUB) 2.04

mcelog --version

mcelog: comando non trovato

iptables -V

iptables v1.8.7 (legacy)

openssl version

OpenSSL 1.1.1g  21 Apr 2020

bc --version

bc 3.1.5

sphinx-build --version

sphinx-build: comando non trovato

Offline

#7 2022-01-15 15:47:42

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: undefined reference to symbol 'nodelay'

Hi gibor,

Thank you for your help. To be honest, I think I'd have tested it in a last resort.

Long story short: reading articles on the internet about "undefined reference to symbol" and "error adding symbols: DSO missing from command line", it appeared that libtinfo.so.6 wasn't not linked. Modifying line #38 in [c]linux-5.10.82/scripts/kconfig/mconf-cfg.sh[/c] from [c]echo libs=\"-lncurses\"[/c] in [c]echo libs=\"-lncurses -ltinfo\"[/c] allows to add [c]-ltinfo[/c] and generates a correct [c]mconf-cfg[/c] file for SliTaz.

I assume you run [c]make menuconfig[/c] on your LFS system and use a [c]ncurses[/c] package you've built, don't you?

My understanding is, but maybe I'm totally wrong, to keep SliTaz as small as possible [c]ncurses[/c] is splitted in several packages (libform libmenu libpanel libtic libtinfo ncurses ncurses-common ncurses-dev ncurses-extra ncurses-man) and we just install the necessary "sub" package(s). So, [c]libs="-lncurses"[/c] in the mconf-cfg file wasn't sufficient.

Thanks again.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.55 MiB (Peak: 1.77 MiB) ]