zsh-workers
 help / color / mirror / code / Atom feed
From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: zsh-workers@zsh.org
Subject: Can be a module linked to library to which Zsh isn't linked?
Date: Sat, 3 Oct 2015 16:24:13 +0200	[thread overview]
Message-ID: <CAKc7PVDefmDGLHrkBmLQJ2_DMY_K3LEjte99mbyk5V1As5fXDg@mail.gmail.com> (raw)

Hello,
on Ubuntu terminfo is separate from ncurses. As it is preferred over
ncurses (but not ncursesw) it is selected as the terminal handling
library. This results in "initscr" function not being found in $LIBS
and in not building of the zsh/curses module. As it can be seen, there
are one LIBS for Zsh and for modules.

Interesting is that when making ncurses preferred by
--with-term-lib=ncurses, the line executes:

gcc  -s -rdynamic -o zsh main.o  `cat stamp-modobjs`   -ldl -lncurses
-lrt -lm  -lc

but the result file is linked to:
    linux-gate.so.1 =>  (0xb77a6000)
    libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb7787000)
    libtinfo.so.5 => /lib/i386-linux-gnu/libtinfo.so.5 (0xb7768000)
    libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb773b000)
    libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb7590000)
    /lib/ld-linux.so.2 (0xb77a7000)

and curses.so to:
    linux-gate.so.1 =>  (0xb7737000)
    libncurses.so.5 => /lib/i386-linux-gnu/libncurses.so.5 (0xb76f3000)
    libtinfo.so.5 => /lib/i386-linux-gnu/libtinfo.so.5 (0xb76d4000)
    libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb7528000)
    libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb7523000)
    /lib/ld-linux.so.2 (0xb7738000)

Curses is linked to a library that zsh isn't and this is working fine
– zsh starts, module loads. Could it be that "one LIBS" isn't in fact
required? Modules gdbm and pcre aren't built by default and they make
zsh binary linked to libgdbm, libpcre. I thought that's why they
aren't build by default – because they add dependencies to zsh binary
– but maybe it's result of not flexible enough configure?

Best regards,
Sebastian Gniazdowski


             reply	other threads:[~2015-10-03 14:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-03 14:24 Sebastian Gniazdowski [this message]
2015-10-03 18:55 ` Bart Schaefer
2015-10-04 16:49   ` Sebastian Gniazdowski
2015-10-04 20:53     ` Bart Schaefer
2015-10-04 23:49       ` Mikael Magnusson
2015-10-05  8:44       ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKc7PVDefmDGLHrkBmLQJ2_DMY_K3LEjte99mbyk5V1As5fXDg@mail.gmail.com \
    --to=sgniazdowski@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).