From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29282 invoked by alias); 3 Oct 2015 14:24:37 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 36758 Received: (qmail 11520 invoked from network); 3 Oct 2015 14:24:35 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=ZNSloHg8XavmMQYGIg5oNaxmLc5tY0tQKTHmLfTYLWE=; b=FOm79s1JNk4L/cDTsgwiHF49h95jEPI2bNywaES60Tr3iEOviNVxDdTbj8yh3ff/nX m/WpSaGgNf+motGVEYykefckEscavdPKwIDZH/gTW3CIVrHOE4l1SsAKDbLIO4/YsmLK S4a2xUVyjBNzZrWbzurdoBEozfFoURocMGrWPrSxmTm30VyPi8JgP/A9+yqPSO7+/RLb gbSnvigIxmhb+VCSCrYghAcmxyxF4fjhJOD1l/IOeAzT0nwWErKFMn0WTL+OaVsASc2S p/CQRP7x4J3aBg+OYK4onkT0KwzaNrsRhKXxoOu5ql1hcg6z9cTloOgfvzCMrWSXta02 QL3A== X-Received: by 10.25.209.80 with SMTP id i77mr5150012lfg.92.1443882272464; Sat, 03 Oct 2015 07:24:32 -0700 (PDT) MIME-Version: 1.0 From: Sebastian Gniazdowski Date: Sat, 3 Oct 2015 16:24:13 +0200 Message-ID: Subject: Can be a module linked to library to which Zsh isn't linked? To: zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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=3Dncurses, 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 =3D> (0xb77a6000) libdl.so.2 =3D> /lib/i386-linux-gnu/libdl.so.2 (0xb7787000) libtinfo.so.5 =3D> /lib/i386-linux-gnu/libtinfo.so.5 (0xb7768000) libm.so.6 =3D> /lib/i386-linux-gnu/libm.so.6 (0xb773b000) libc.so.6 =3D> /lib/i386-linux-gnu/libc.so.6 (0xb7590000) /lib/ld-linux.so.2 (0xb77a7000) and curses.so to: linux-gate.so.1 =3D> (0xb7737000) libncurses.so.5 =3D> /lib/i386-linux-gnu/libncurses.so.5 (0xb76f3000) libtinfo.so.5 =3D> /lib/i386-linux-gnu/libtinfo.so.5 (0xb76d4000) libc.so.6 =3D> /lib/i386-linux-gnu/libc.so.6 (0xb7528000) libdl.so.2 =3D> /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 =E2=80=93 zsh starts, module loads. Could it be that "one LIBS" isn't in fa= ct 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 =E2=80=93 because they add dependencies to zsh bina= ry =E2=80=93 but maybe it's result of not flexible enough configure? Best regards, Sebastian Gniazdowski