Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 855047 - net-fs/samba-4.16.2 - access.c:(.text+<snip>): undefined reference to innetgr
Summary: net-fs/samba-4.16.2 - access.c:(.text+<snip>): undefined reference to innetgr
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL: https://gitlab.com/samba-team/samba/-...
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-06-29 07:47 UTC by Toralf Förster
Modified: 2023-01-27 05:42 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.79 KB, text/plain)
2022-06-29 07:47 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,96.74 KB, text/plain)
2022-06-29 07:47 UTC, Toralf Förster
Details
environment (environment,177.68 KB, text/plain)
2022-06-29 07:47 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,11.45 KB, application/x-bzip)
2022-06-29 07:47 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,303.01 KB, application/x-bzip)
2022-06-29 07:47 UTC, Toralf Förster
Details
net-fs:samba-4.16.2:20220629-072841.log.bz2 (net-fs:samba-4.16.2:20220629-072841.log.bz2,39.58 KB, application/x-bzip)
2022-06-29 07:47 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,107.48 KB, application/x-bzip)
2022-06-29 07:47 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 2022-06-29 07:47:34 UTC
too long lines were shrinked:

[ 893/3005] Compiling libcli/auth/smbdes.c
09:30:32 runner ['x86_64-gentoo-linux-musl-gcc', '-D_SAMBA_BUILD_=4', '-DHAVE_CONFIG_H=1', '-pipe', '-march=native', '-fno-diagnostics-color', '-O2', '-MMD', '-D_GNU_SOURCE=1', '-D_XOPEN_SOURCE_EXTENDED=1', '-DHAVE_CONFIG_H=1', '-fPIC', '-D__STDC_WANT_LIB_EXT1__=1', '-D_REENTRANT', '-fstack-clash-pr
/usr/lib/gcc/x86_64-gentoo-linux-musl/12.1.1/../../../../x86_64-gentoo-linux-musl/bin/ld: /usr/lib/gcc/x86_64-gentoo-linux-musl/12.1.1/../../../../lib/libc.so: warning: The fgetln() function cannot be safely ported, use getline(3) instead, as it is supported by GNU and POSIX.1-2008.
/usr/lib/gcc/x86_64-gentoo-linux-musl/12.1.1/../../../../x86_64-gentoo-linux-musl/bin/ld: lib/util/access.c.103.o: in function `string_match':
access.c:(.text+0x119): undefined reference to `innetgr'
collect2: error: ld returned 1 exit status


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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-j4-20220628-041652

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-12.1.1 *
clang/llvm (if any):
clang version 14.0.6
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/14/bin
/usr/lib/llvm/14
14.0.6
Python 3.9.13
Available Rust versions:
  [1]   rust-1.61.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.3_p7 [openjdk-bin-17]
Available Java Virtual Machines:
  [1]   openjdk-bin-17  system-vm

php cli:

  HEAD of ::gentoo
commit 93fccc6c89cbb93fcee509fd0cd7fa85e59f83f8
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Jun 29 07:16:29 2022 +0000

    2022-06-29 07:16:29 UTC

emerge -qpvO net-fs/samba
[ebuild  N    ] net-fs/samba-4.16.2  USE="acl ldap pam python regedit syslog system-mitkrb5 -addc -ads -ceph -client -cluster -cups -debug (-fam) -glusterfs -gpg -iprint -json -profiling-data -quota (-selinux) -snapper -spotlight (-system-heimdal) (-systemd) (-test) -winbind -zeroconf" CPU_FLAGS_X86="aes" PYTHON_SINGLE_TARGET="python3_9 -python3_8 -python3_10"
Comment 1 Toralf Förster gentoo-dev 2022-06-29 07:47:35 UTC
Created attachment 788609 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-06-29 07:47:36 UTC
Created attachment 788612 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-06-29 07:47:38 UTC
Created attachment 788615 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-06-29 07:47:39 UTC
Created attachment 788618 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-06-29 07:47:41 UTC
Created attachment 788621 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-06-29 07:47:43 UTC
Created attachment 788624 [details]
net-fs:samba-4.16.2:20220629-072841.log.bz2
Comment 7 Toralf Förster gentoo-dev 2022-06-29 07:47:44 UTC
Created attachment 788627 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2022-07-18 00:26:25 UTC
The bug has been closed via the following commit(s):

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

commit d68dbb343ba94e145423987a1d5d8e1869e27736
Author:     brahmajit das <brahmajit.xyz@gmail.com>
AuthorDate: 2022-06-29 18:36:50 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-07-18 00:26:11 +0000

    net-fs/samba: Fix undefined innetgr on musl
    
    Currently samba fails to build on musl with error message saying
    undefined reference to `innetgr'. This patch fixes that issue.
    
    Closes: https://bugs.gentoo.org/855047
    Signed-off-by: brahmajit das <brahmajit.xyz@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/26151
    Signed-off-by: Sam James <sam@gentoo.org>

 .../samba-4.16.2-fix-musl-without-innetgr.patch    | 23 ++++++++++++++++++++++
 net-fs/samba/samba-4.16.2.ebuild                   |  1 +
 2 files changed, 24 insertions(+)
Comment 9 Larry the Git Cow gentoo-dev 2023-01-27 05:42:59 UTC
The bug has been referenced in the following commit(s):

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

commit 00c0e38af0cff28d88a97262ae545c7cbabaa249
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-01-27 05:42:24 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-01-27 05:42:24 +0000

    net-fs/samba: add link to upstream commit for musl patch
    
    Bug: https://bugs.gentoo.org/855047
    Signed-off-by: Sam James <sam@gentoo.org>

 net-fs/samba/files/samba-4.16.2-fix-musl-without-innetgr.patch | 2 ++
 1 file changed, 2 insertions(+)