From nobody Tue May 16 17:08:48 2023 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QLN4J4V8Mz4BFQ6 for ; Tue, 16 May 2023 17:08:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QLN4J3LMvz40q4 for ; Tue, 16 May 2023 17:08:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684256928; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7ynbvZ6Solwfm/kQzlaytg9wxKPnjlZDbqi9HZfN69I=; b=jT6tVBbIfJiY0H4t1qIQwJETNROwfVGw5rwSYjCNz0Z+QGSKakGew4AoAMp1gzuuJbWOtZ oKilpZ4DSlAxZ5ObHC4chuz9ZaQ1G9y4ZNXmRgaSXph2XzqmdQQelV88zRGluEXmzw1hK8 LuM7vN8DktQIlUcYIlmWggJux39uF7+NvxHOHEwFnh4yAOOfslnFpZF0L8dQ8ZUQy1dkqq Klxhe0D6V6XLRIBjyku5PV69ILKZIcSQ0YYmmergyht004TQcX7wD9/LlRcc79poDnL1fM XavRDW9EDc5jobljGhmw3eGJasmpJcy//KNwVxpspr3VBv/XeCOi1fbVc3PLVg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684256928; a=rsa-sha256; cv=none; b=f1Op3KCS033q3jsYWkmZWCGoV39ftQdSxsn5cM/1iw1fQUvMPxH3xtX8G/ISm+zZZxFUF6 9qN1sx+NSWAyrZYwTjeE08ViZZL37T6Mm4Ep+if2BHD8ITW8qlXMRqzuy6u67s/75dSrR7 UjmKRi+/ZGLFVCat0qydEdELGAjBm6Lg/K0hX4fDuIia2Gm7ie01zP8JDjIxfkSvxo7XYO 11hylcoveBFCGm9pDc3Nr3BgPJRKmg2hWN2rv7SjfsvU1fh8Ln+7ApSqvL4hLwQhRRbVAN b27n4LPLytsRsnsZQGX6U+OKKmwY2lExdkl0D8Nx19N/C9eV6a3YcjkJdv9J3Q== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QLN4J2D48zWC4 for ; Tue, 16 May 2023 17:08:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 34GH8m8S019740 for ; Tue, 16 May 2023 17:08:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 34GH8mup019739 for ports-bugs@FreeBSD.org; Tue, 16 May 2023 17:08:48 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 271454] mail/neomutt: build fails if ncurses port is installed (12.x) Date: Tue, 16 May 2023 17:08:48 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jcfyecrayz@liamekaens.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bapt@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271454 Bug ID: 271454 Summary: mail/neomutt: build fails if ncurses port is installed (12.x) Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: bapt@FreeBSD.org Reporter: jcfyecrayz@liamekaens.com Assignee: bapt@FreeBSD.org Flags: maintainer-feedback?(bapt@FreeBSD.org) 'make -C mail/neomutt build' fails with an undefined symbol [[1]] in the ncurses port is installed on FreeBSD 12.4. This is a new change between neomutt-20230407 and neomutt-20230512. The key is this addition: --- work/neomutt-20230407/gui/mutt_curses.h 2023-04-07 08:00:22.0000000= 00 -0600 +++ work/neomutt-20230512/gui/mutt_curses.h 2023-05-12 05:31:15.0000000= 00 -0600 @@ -37,6 +37,12 @@ #include #endif +#if (((NCURSES_VERSION_MAJOR > 6) ||=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20 \ + ((NCURSES_VERSION_MAJOR =3D=3D 6) && (NCURSES_VERSION_MINOR >=3D 1))= ) &&=20=20=20=20=20=20 \ + defined(NCURSES_EXT_COLORS)) +#define NEOMUTT_DIRECT_COLORS +#endif + If it detects ncurses 6.x it uses "direct colors" which now calls init_extended_pair() as of neomut-20230512. That function is not in ncurse= s 5 which is the base ncurses library in 12.4 Here is what's happening - the build uses the ncurses header file from ports (in /usr/local/include) but links with the ncurses lib from base (in /usr/l= ib). 13.2 has ncurses 6 in /usr/lib and has the missing symbol from ncurses 5, s= o it does not have this failure. However, it is still including the header from /usr/local and linking with the library in /usr/lib. It's just luck if it d= oes not fail to compile with headers from /usr/local and link with the lib from /usr/lib. There could be failures at run time if it DOES build and potenti= al build failures as the ports and base ncurses diverge in the future. [[1]] linker error: cc -o neomutt alternates.o commands.o conststrings.o copy.o editmsg.o=20 enriched.o external.o flags.o functions.o git_ver.o globals.o handler.o hdrline.o help.o hook.o init.o keymap.o mailcap.o maillist.o main.o muttli= b.o mutt_account.o mutt_body.o mutt_config.o mutt_header.o mutt_history.o mutt_logging.o mutt_mailbox.o mutt_signal.o mutt_socket.o mutt_thread.o=20 mview.o mx.o opcodes.o recvcmd.o resize.o rfc3676.o score.o sort.o status.o subjectrx.o system.o version.o libindex.a libpager.a libpop.a libbrowser.a libcompmbox.a libstore.a libprogress.a libquestion.a libpostpone.a libalia= s.a libsend.a libconvert.a libcompose.a libattach.a libgui.a libenter.a libcomplete.a libnntp.a libpattern.a libmenu.a libcolor.a libenvelope.a=20= =20 libhelpbar.a libmbox.a libnotmuch.a libmaildir.a libncrypt.a libimap.a libconn.a libhcache.a libsidebar.a libbcache.a libhistory.a libcore.a libparse.a libconfig.a libemail.a libaddress.a libmutt.a -Wl,-rpath,/usr/local/lib:/usr/local/lib -Wl,-rpath=3D/usr/local/lib -fstack-protector-strong -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr/local/lib:/usr/lib -Wl,-rpath,/usr/local/lib -L/usr/local/l= ib -fstack-protector-strong -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lz -ltinfow -lnotmuch -L/usr/local/lib -lgpgme -lgpg-error -lsasl2 -lintl -liconv -lssl -lcrypto -lidn2 -lpcre2-8 -llmdb -ltokyocabinet -lbz2 -lz -lrt -lpthread -lm -lc ld: error: undefined symbol: init_extended_pair >>> referenced by curses.c >>> curses.o:(curses_color_new) in archive libcolor.a cc: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 Note: In the cases where the link succeeds (e.g., on 12.x without the ncurs= es port installed or on 13.x), the linker line does not reference libncurses (= or libncursesw), and yet the neomutt binary is dynamically linked with libncursesw.so. So it's getting pulled into the linked binary implicitly somewhere. --=20 You are receiving this mail because: You are the assignee for the bug.=