Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 939164 - app-misc/nnn-4.9 - [gcc-15] src/icons-hash.c: error: implicit declaration of function strcasecmp
Summary: app-misc/nnn-4.9 - [gcc-15] src/icons-hash.c: error: implicit declaration of ...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting gcc-14-stable
  Show dependency tree
 
Reported: 2024-09-06 07:08 UTC by Toralf Förster
Modified: 2024-10-25 19:00 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,22.74 KB, text/plain)
2024-09-06 07:08 UTC, Toralf Förster
Details
app-misc:nnn-4.9:20240906-034459.log (app-misc:nnn-4.9:20240906-034459.log,2.41 KB, text/plain)
2024-09-06 07:08 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,121.24 KB, application/x-xz)
2024-09-06 07:08 UTC, Toralf Förster
Details
environment (environment,91.92 KB, text/plain)
2024-09-06 07:08 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1020 bytes, application/x-xz)
2024-09-06 07:08 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,60.52 KB, application/x-xz)
2024-09-06 07:08 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,115.96 KB, application/x-xz)
2024-09-06 07:08 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,21.27 KB, application/x-xz)
2024-09-06 07:08 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-09-06 07:08:31 UTC
too long lines were shrinked:

>>> Configuring source in /var/tmp/portage/app-misc/nnn-4.9/work/nnn-4.9 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-misc/nnn-4.9/work/nnn-4.9 ...
make -j4 O_NORL=0 O_PCRE=1 O_CTX8=1 O_ICONS=0 O_NERD=0 O_EMOJI=1 O_QSORT=1 O_COLEMAK=0 O_GITSTATUS=0 O_NAMEFIRST=0 O_RESTOREPREVIEW=0 
x86_64-pc-linux-musl-gcc -DPCRE -DCTX8 -DEMOJI -DICONS_INCLUDE=\"icons-generated-emoji.h\" -DTOURBIN_QSORT -O2 -pipe -march=native -fno-diagnostics-color -lfts -std=c11 -Wall -Wextra -Wshadow -O3 -DNCURSES_WIDECHAR -I/usr/include/ncursesw -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--def
src/icons-hash.c: In function 'main':
src/icons-hash.c:168:47: error: implicit declaration of function 'strcasecmp'; did you mean 'strncmp'? [-Wimplicit-function-declaration]
  168 |                         if (table[z].match && strcasecmp(icons_ext[i].match, table[z].match) == 0) {
      |                                               ^~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_musl-20240824-035506

  UNMASKED:
    Please re-assign to toolchain@ if you get a test failure in C, C++, or Fortran code which makes no sense.
  /etc/portage/package.unmask/60gcc:<sys-devel/gcc-15.0.9999:15

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

gcc-config -l:
 [1] x86_64-pc-linux-musl-15 *
clang/llvm (if any):
clang version 18.1.8
Target: x86_64-pc-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-musl-clang.cfg
/usr/lib/llvm/18
18.1.8
Python 3.12.5
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.80.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.24_p8 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.12_p7 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.4_p7 [openjdk-bin-21]
Available Java Virtual Machines:
  [1]   openjdk-bin-11 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm

php cli (if any):
go version go1.23.0 linux/amd64

  HEAD of ::gentoo
commit 22b654b6e9bbe7151656fed73d54c18d7605c5a6
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Sep 6 00:49:00 2024 +0000

    2024-09-06 00:48:59 UTC

emerge -qpvO =app-misc/nnn-4.9
[ebuild  N    ] app-misc/nnn-4.9  USE="8contexts emoji pcre qsort readline -colemak -gitstatus -icons -namefirst -nerdfonts -restorepreview"
Comment 1 Toralf Förster gentoo-dev 2024-09-06 07:08:32 UTC
Created attachment 902216 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-09-06 07:08:33 UTC
Created attachment 902217 [details]
app-misc:nnn-4.9:20240906-034459.log
Comment 3 Toralf Förster gentoo-dev 2024-09-06 07:08:34 UTC
Created attachment 902218 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2024-09-06 07:08:35 UTC
Created attachment 902219 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-09-06 07:08:36 UTC
Created attachment 902220 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-09-06 07:08:37 UTC
Created attachment 902221 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-09-06 07:08:38 UTC
Created attachment 902222 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2024-09-06 07:08:39 UTC
Created attachment 902223 [details]
temp.tar.xz
Comment 9 Sebastian Hamann 2024-09-09 12:05:57 UTC
Upstream PR to fix this is here: https://github.com/jarun/nnn/pull/1928

Will add it as a downsteam patch to current packages.
Comment 10 Sebastian Hamann 2024-09-10 17:27:20 UTC
Fixed upstream.
I included the same patch in my PR for the nnn-5.0 version bump (https://github.com/gentoo/gentoo/pull/38293).

I'd rather not patch nnn-4.9 for the simple reason that it would take a Gentoo dev valuable time to review the PR. Instead, I'd prefer to stabilize 5.0 and phase out 4.9 soonish. I don't suppose c99 porting is on a strict timeline?

I'll happily apply the patch to 4.9, though, if that is preferable.