Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@passgat
Copy link

@passgat passgat commented Oct 30, 2025

During the brltty bump to version 6.8 in Buildroot, the build failed on systems without libtinfo:

/usr/bin/ld: cannot find -ltinfo: No such file or directory

Link libtinfo only if the library is present.

During the brltty bump to version 6.8 in Buildroot, the build failed on
systems without libtinfo:

  /usr/bin/ld: cannot find -ltinfo: No such file or directory

Link libtinfo only if the library is present.

Signed-off-by: Dario Binacchi <[email protected]>
@DaveMielke
Copy link
Member

DaveMielke commented Oct 30, 2025 via email

@passgat
Copy link
Author

passgat commented Oct 31, 2025

I am doing the bump of brltty to version 6.8 in Buildroot:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

Without this patch I got this build error:

/home/dario/projects/buildroot/output/host/bin/arm-buildroot-linux-gnueabihf-gcc -shared -Wl,-export-dynamic -o ../../../lib/libbrlttyxfv.so screen.o -ltinfo
/home/dario/projects/buildroot/output/host/lib/gcc/arm-buildroot-linux-gnueabihf/14.3.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: cannot find -ltinfo: No such file or directory
collect2: error: ld returned 1 exit status

Looking online, it seems that tinfo is part of ncurses, but the tinfo library is not necessarily included in it — however, the symbols are still resolved.

https://bugs.launchpad.net/ubuntu/+source/ncurses/+bug/259139

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants