Re: Linking problem with ncurses on rawhide, not f37

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 02, 2023 at 06:07:25PM +0100, Florian Weimer wrote:
> * Miroslav Lichvar:
> > /usr/bin/ld: /usr/lib64/libform.so.6: undefined reference to `wmove@NCURSES6_5.0.19991023'
> > /usr/bin/ld: /usr/lib64/libform.so.6: undefined reference to `derwin@NCURSES6_5.0.19991023'
> > /usr/bin/ld: /usr/lib64/libform.so.6: undefined reference to `wenclose@NCURSES6_5.0.19991023'
> > /usr/bin/ld: /usr/lib64/libpanel.so.6: undefined reference to `_nc_panelhook_sp@NCURSES6_5.8.20110226'
> > /usr/bin/ld: /usr/lib64/libform.so.6: undefined reference to `wcursyncup@NCURSES6_5.0.19991023'
> > /usr/bin/ld: /usr/lib64/libform.so.6: undefined reference to `copywin@NCURSES6_5.0.19991023'
> > /usr/bin/ld: /usr/lib64/libform.so.6: undefined reference to `newpad@NCURSES6_5.0.19991023'
> > /usr/bin/ld: /usr/lib64/libpanel.so.6: undefined reference to `wnoutrefresh@NCURSES6_5.0.19991023'
> > ...
> >
> > libform and libpanel depend on libncurses.
> 
> Could you give them a similar treatment, with more linker scripts?

It doesn't work if I add AS_NEEDED(libpanel libform) to libncurses. It
works if I add it to libtinfo. I guess that comes from the order of
NEEDED in liblldb.so.13git, which is included in the linker command.

  NEEDED               libtinfo.so.6
  NEEDED               libncurses.so.6
  NEEDED               libform.so.6
  NEEDED               libpanel.so.6

Would every ncurses library need to have all other libraries in
AS_NEEDED?

In any case, I don't like much the fact that with this approach it
would be possible to link ncurses/panel/form applications using just
-lncurses or -ltinfo. An application developed on Fedora might fail to
build on other systems.

-- 
Miroslav Lichvar
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux