Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 713434 - app-crypt/mit-krb5-appl-1.0.3-r4 : fake-addrinfo.c: error: too few arguments to function gethostbyname_r
Summary: app-crypt/mit-krb5-appl-1.0.3-r4 : fake-addrinfo.c: error: too few arguments ...
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: PullRequest
Depends on:
Blocks:
 
Reported: 2020-03-19 11:21 UTC by Toralf Förster
Modified: 2025-02-07 12:18 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.37 KB, text/plain)
2020-03-19 11:21 UTC, Toralf Förster
Details
app-crypt:mit-krb5-appl-1.0.3:20200319-083502.log (app-crypt:mit-krb5-appl-1.0.3:20200319-083502.log,16.36 KB, text/plain)
2020-03-19 11:21 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,137.36 KB, text/plain)
2020-03-19 11:21 UTC, Toralf Förster
Details
environment (environment,107.82 KB, text/plain)
2020-03-19 11:21 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.95 KB, application/x-bzip)
2020-03-19 11:21 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,14.23 KB, application/x-bzip)
2020-03-19 11:21 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,28.78 KB, application/x-bzip)
2020-03-19 11:21 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 2020-03-19 11:21:02 UTC
      |                                                              ^~~~~~~~~~~~~~~~~

fake-addrinfo.c:162:9: error: too few arguments to function gethostbyname_r
  162 |  (HP) = gethostbyname_r((NAME), &TMP.ent,   \
      |         ^~~~~~~~~~~~~~~
fake-addrinfo.c:945:2: note: in expansion of macro GET_HOST_BY_NAME

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

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

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.3.0 *
clang version 10.0.0 
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.41.1 *

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Wed, 18 Mar 2020 13:38:27 +0000
emerge -qpvO app-crypt/mit-krb5-appl
[ebuild  N    ] app-crypt/mit-krb5-appl-1.0.3
Comment 1 Toralf Förster gentoo-dev 2020-03-19 11:21:05 UTC
Created attachment 622532 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-19 11:21:08 UTC
Created attachment 622534 [details]
app-crypt:mit-krb5-appl-1.0.3:20200319-083502.log
Comment 3 Toralf Förster gentoo-dev 2020-03-19 11:21:11 UTC
Created attachment 622536 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-03-19 11:21:14 UTC
Created attachment 622538 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-03-19 11:21:17 UTC
Created attachment 622540 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-19 11:21:19 UTC
Created attachment 622542 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-03-19 11:21:22 UTC
Created attachment 622544 [details]
temp.tbz2
Comment 8 Agostino Sarubbo gentoo-dev 2021-12-31 06:56:47 UTC
tinderbox_musl has reproduced this issue with version 1.0.3-r3 - Updating summary.
Comment 9 Agostino Sarubbo gentoo-dev 2024-01-17 09:22:16 UTC
tinderbox_musl has reproduced this issue with version 1.0.3-r4 - Updating summary.
Comment 10 NHO 2025-02-01 13:41:45 UTC
There's define GETHOSTBYNAME_R_RETURNS_INT, but it's never set. Setting it manually tells the program that we have six-argument gethostbyname_r() both in glibc and musl scenarios
Comment 11 NHO 2025-02-01 13:45:08 UTC
But it fails after that with 

login.c:1745:12: error: call to undeclared function 'ruserok'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 1745 |     return(ruserok(host, (pwd->pw_uid == 0), rusername, username));
      |            ^

musl doesn't implement ruserok
Comment 12 Larry the Git Cow gentoo-dev 2025-02-07 12:18:14 UTC
The bug has been referenced in the following commit(s):

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

commit 1e2c804146919d1d8dd5c9c22b70b4633e77ea5c
Author:     NHOrus <jy6x2b32pie9@yahoo.com>
AuthorDate: 2025-02-01 13:55:15 +0000
Commit:     Eray Aslan <eras@gentoo.org>
CommitDate: 2025-02-07 12:11:51 +0000

    profiles/features/musl: mask app-crypt/mit-krb5-appl
    
    Not ported to musl
    
    Bug: https://bugs.gentoo.org/713434
    Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
    Closes: https://github.com/gentoo/gentoo/pull/40406
    Signed-off-by: Eray Aslan <eras@gentoo.org>

 profiles/features/musl/package.mask | 4 ++++
 1 file changed, 4 insertions(+)