Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 938756 - net-misc/frr-9.1 - [gcc-15] zebra/zebra_netns_notify.c: error: implicit declaration of function basename [-Wimplicit-function-declaration]
Summary: net-misc/frr-9.1 - [gcc-15] zebra/zebra_netns_notify.c: error: implicit decla...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo musl team
URL:
Whiteboard: fixed in 9.1-r1
Keywords: PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2024-08-30 18:06 UTC by Toralf Förster
Modified: 2024-11-01 16:56 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.48 KB, text/plain)
2024-08-30 18:06 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,78.92 KB, application/x-xz)
2024-08-30 18:06 UTC, Toralf Förster
Details
environment (environment,143.55 KB, text/plain)
2024-08-30 18:06 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1020 bytes, application/x-xz)
2024-08-30 18:06 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,43.56 KB, application/x-xz)
2024-08-30 18:06 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,21.34 KB, application/x-xz)
2024-08-30 18:06 UTC, Toralf Förster
Details
net-misc:frr-9.1:20240830-175842.log.xz (net-misc:frr-9.1:20240830-175842.log.xz,14.86 KB, application/x-xz)
2024-08-30 18:06 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,81.23 KB, application/x-xz)
2024-08-30 18:06 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,34.27 KB, application/x-xz)
2024-08-30 18:06 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-08-30 18:06:33 UTC
too long lines were shrinked:

x86_64-pc-linux-musl-gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc/frr/\" -DCONFDATE=0 -I.  -I./lib/assert -I. -I./include -I./lib -I.     -fms-extensions -fno-omit-frame-pointer -funwind-tables -Wall -Wextra -Wformat-nonliteral -Wformat-security -Wswitch-enum -Wstrict-prototypes -Wmissing-prototypes -Wmi
x86_64-pc-linux-musl-gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc/frr/\" -DCONFDATE=0 -I.  -I./lib/assert -I. -I./include -I./lib -I.     -fms-extensions -fno-omit-frame-pointer -funwind-tables -Wall -Wextra -Wformat-nonliteral -Wformat-security -Wswitch-enum -Wstrict-prototypes -Wmissing-prototypes -Wmi
x86_64-pc-linux-musl-gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc/frr/\" -DCONFDATE=0 -I.  -I./lib/assert -I. -I./include -I./lib -I.     -fms-extensions -fno-omit-frame-pointer -funwind-tables -Wall -Wextra -Wformat-nonliteral -Wformat-security -Wswitch-enum -Wstrict-prototypes -Wmissing-prototypes -Wmi
x86_64-pc-linux-musl-gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc/frr/\" -DCONFDATE=0 -I.  -I./lib/assert -I. -I./include -I./lib -I.     -fms-extensions -fno-omit-frame-pointer -funwind-tables -Wall -Wextra -Wformat-nonliteral -Wformat-security -Wswitch-enum -Wstrict-prototypes -Wmissing-prototypes -Wmi
In file included from zebra/zebra_netns_notify.c:7:
zebra/zebra_netns_notify.c: In function 'zebra_ns_ready_read':
zebra/zebra_netns_notify.c:265:40: error: implicit declaration of function 'basename' [-Wimplicit-function-declaration]
  265 |         if (strmatch(VRF_DEFAULT_NAME, basename(netnspath))) {
      |                                        ^~~~~~~~

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

  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 25f696f35a9e11838d80c37c62e62fd1bf90840b
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Aug 30 16:49:02 2024 +0000

    2024-08-30 16:49:01 UTC

emerge -qpvO =net-misc/frr-9.1
[ebuild  N    ] net-misc/frr-9.1  USE="ipv6 pam -doc -fpm -grpc -nhrp -ospfapi -rpki -snmp -test" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11"
Comment 1 Toralf Förster gentoo-dev 2024-08-30 18:06:34 UTC
Created attachment 901693 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-08-30 18:06:36 UTC
Created attachment 901694 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2024-08-30 18:06:37 UTC
Created attachment 901695 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-08-30 18:06:38 UTC
Created attachment 901696 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-08-30 18:06:39 UTC
Created attachment 901697 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-08-30 18:06:40 UTC
Created attachment 901698 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-08-30 18:06:41 UTC
Created attachment 901699 [details]
net-misc:frr-9.1:20240830-175842.log.xz
Comment 8 Toralf Förster gentoo-dev 2024-08-30 18:06:42 UTC
Created attachment 901700 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2024-08-30 18:06:43 UTC
Created attachment 901701 [details]
temp.tar.xz
Comment 10 Larry the Git Cow gentoo-dev 2024-09-24 05:50:35 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0479b98e30aef76df7c56dddeec1510edc766b2

commit e0479b98e30aef76df7c56dddeec1510edc766b2
Author:     Brahmajit Das <brahmajit.xyz@gmail.com>
AuthorDate: 2024-08-31 11:01:57 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2024-09-24 05:50:33 +0000

    net-misc/frr: Fix implicit declaration of function basename
    
    Closes: https://bugs.gentoo.org/938756
    Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/38351
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 ...-9.1-mimic-gnu-basename-api-for-non-glibc.patch |  26 ++++
 net-misc/frr/frr-9.1-r1.ebuild                     | 141 +++++++++++++++++++++
 2 files changed, 167 insertions(+)
Comment 11 Larry the Git Cow gentoo-dev 2024-11-01 16:56:41 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1527251ada5c6c327df071e0f3a8773a7acd9d2c

commit 1527251ada5c6c327df071e0f3a8773a7acd9d2c
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2024-11-01 16:55:50 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2024-11-01 16:56:25 +0000

    net-misc/frr: drop 9.0.4
    
    Bug: https://bugs.gentoo.org/938756
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 net-misc/frr/Manifest         |   1 -
 net-misc/frr/frr-9.0.4.ebuild | 156 ------------------------------------------
 2 files changed, 157 deletions(-)