Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 945647 - app-text/multitail-7.1.5 - [gcc-15] mt.c: error: implicit declaration of function waddnwstr
Summary: app-text/multitail-7.1.5 - [gcc-15] mt.c: error: implicit declaration of func...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Shell Tools project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2024-12-01 21:26 UTC by Toralf Förster
Modified: 2024-12-31 07:21 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.06 KB, text/plain)
2024-12-01 21:26 UTC, Toralf Förster
Details
app-text:multitail-7.1.5:20241201-211412.log (app-text:multitail-7.1.5:20241201-211412.log,17.68 KB, text/plain)
2024-12-01 21:26 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,76.39 KB, text/plain)
2024-12-01 21:26 UTC, Toralf Förster
Details
environment (environment,101.34 KB, text/plain)
2024-12-01 21:26 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.34 KB, application/x-xz)
2024-12-01 21:26 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,14.78 KB, application/x-xz)
2024-12-01 21:26 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,7.30 KB, application/x-xz)
2024-12-01 21:26 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,169.18 KB, text/plain)
2024-12-01 21:27 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,23.37 KB, application/x-xz)
2024-12-01 21:27 UTC, Toralf Förster
Details
Missing header patch (44.patch,1.34 KB, patch)
2024-12-31 06:48 UTC, Andrew Udvare
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-12-01 21:26:51 UTC
In file included from /usr/include/ctype.h:25,
                 from /var/tmp/portage/app-text/multitail-7.1.5/work/multitail-7.1.5/mt.c:3:
/usr/include/features.h:228:10: note: this is the location of the previous definition
  228 | # define _LARGEFILE64_SOURCE    1
      |          ^~~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-text/multitail-7.1.5/work/multitail-7.1.5/mt.c: In function do_color_print:
/var/tmp/portage/app-text/multitail-7.1.5/work/multitail-7.1.5/mt.c:712:25: error: implicit declaration of function waddnwstr; did you mean waddnstr? [-Wimplicit-function-declaration]
  712 |                         waddnwstr(win -> win, &wcur, 1);
      |                         ^~~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_hardened_systemd-20241130-094502

  UNMASKED:
  <sys-devel/gcc-15.0.9999:15

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang version 19.1.4
llvm-config: 19.1.4
Python 3.12.7
go version go1.23.3 linux/amd64
Available Ruby profiles:
  [1]   ruby32 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.71.1
  [2]   rust-bin-1.82.0
  [3]   rust-bin-1.83.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.13_p11 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.5_p11 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.432_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm


  HEAD of ::gentoo
commit 52501a41c70a8b547e0209615798a80811f11ac3
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Dec 1 20:33:25 2024 +0000

    2024-12-01 20:33:25 UTC

emerge -qpvO =app-text/multitail-7.1.5
[ebuild  N    ] app-text/multitail-7.1.5  USE="examples unicode -debug"
Comment 1 Toralf Förster gentoo-dev 2024-12-01 21:26:52 UTC
Created attachment 913002 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-12-01 21:26:53 UTC
Created attachment 913003 [details]
app-text:multitail-7.1.5:20241201-211412.log
Comment 3 Toralf Förster gentoo-dev 2024-12-01 21:26:54 UTC
Created attachment 913004 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2024-12-01 21:26:56 UTC
Created attachment 913005 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-12-01 21:26:56 UTC
Created attachment 913006 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-12-01 21:26:57 UTC
Created attachment 913007 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-12-01 21:26:58 UTC
Created attachment 913008 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-12-01 21:27:00 UTC
Created attachment 913009 [details]
qlist-info.txt
Comment 9 Toralf Förster gentoo-dev 2024-12-01 21:27:01 UTC
Created attachment 913010 [details]
temp.tar.xz
Comment 10 Andrew Black 2024-12-11 18:10:24 UTC
I can confirm that this affects several of my Gentoo systems, both amd64 and arm64, but some similar systems are unaffected, and I can't work out why. Disabling the unicode USE flag allows the code to compile on all systems, however.
Comment 11 Andrew Udvare 2024-12-31 06:45:04 UTC
This issue is fixed if we add #include <ncursesw/ncurses.h> on line 46 in mt.c

...
    39  /* syslog receive */
    40  #include <sys/types.h>
    41  #include <sys/socket.h>
    42  #include <netdb.h>
    43  #include <netinet/in.h>
    44  #include <arpa/inet.h>
    45  #ifdef UTF8_SUPPORT
    46  #include <ncursesw/ncurses.h>
    47  #include <wchar.h>
    48  #include <wctype.h>
    49  #endif
...
Comment 12 Andrew Udvare 2024-12-31 06:48:55 UTC
Created attachment 915563 [details, diff]
Missing header patch

https://github.com/folkertvanheusden/multitail/pull/44
Comment 13 Andrew Udvare 2024-12-31 06:49:43 UTC
This bug should be in reference to app-text/multitail-7.1.5[unicode] specifically.