Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 831016 - net-misc/socat-1.7.4.3 - fdname.c:(.text+<snip>): undefined reference to getprotobynumber_r
Summary: net-misc/socat-1.7.4.3 - fdname.c:(.text+<snip>): undefined reference to getp...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sam James
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 833027
  Show dependency tree
 
Reported: 2022-01-11 14:10 UTC by Toralf Förster
Modified: 2023-05-27 07:50 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,14.93 KB, text/plain)
2022-01-11 14:10 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,23.20 KB, text/plain)
2022-01-11 14:10 UTC, Toralf Förster
Details
environment (environment,67.99 KB, text/plain)
2022-01-11 14:10 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,11.71 KB, application/x-bzip)
2022-01-11 14:10 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,24.12 KB, application/x-bzip)
2022-01-11 14:10 UTC, Toralf Förster
Details
net-misc:socat-1.7.4.3:20220111-132151.log (net-misc:socat-1.7.4.3:20220111-132151.log,35.27 KB, text/plain)
2022-01-11 14:10 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,22.01 KB, application/x-bzip)
2022-01-11 14:10 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-01-11 14:10:06 UTC
x86_64-gentoo-linux-musl-ar: creating libxio.a
x86_64-gentoo-linux-musl-ranlib libxio.a
x86_64-gentoo-linux-musl-gcc -pipe -march=native -fno-diagnostics-color -O2 -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -o socat socat.o libxio.a -lrt -lutil -lbsd  -lreadline  -lssl -lcrypto
/usr/lib/gcc/x86_64-gentoo-linux-musl/11.2.1/../../../../x86_64-gentoo-linux-musl/bin/ld: fdname.o: in function `sockname':
fdname.c:(.text+0x2e3): undefined reference to `getprotobynumber_r'
collect2: error: ld returned 1 exit status
make: *** [Makefile:123: filan] Error 1

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl_hardened-j4-20220111-092048

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-11.2.1 *
Python 3.9.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.57.0 *
php cli:

  HEAD of ::gentoo
commit 8d4d312a9214607bc2f82ebf7e74f707b40ec953
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Jan 11 11:51:34 2022 +0000

    2022-01-11 11:51:33 UTC

emerge -qpvO net-misc/socat
[ebuild  N    ] net-misc/socat-1.7.4.3  USE="ipv6 readline ssl -bindist -tcpd"
Comment 1 Toralf Förster gentoo-dev 2022-01-11 14:10:07 UTC
Created attachment 761887 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-01-11 14:10:08 UTC
Created attachment 761888 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-01-11 14:10:09 UTC
Created attachment 761889 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-01-11 14:10:10 UTC
Created attachment 761890 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-01-11 14:10:11 UTC
Created attachment 761891 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-01-11 14:10:12 UTC
Created attachment 761892 [details]
net-misc:socat-1.7.4.3:20220111-132151.log
Comment 7 Toralf Förster gentoo-dev 2022-01-11 14:10:13 UTC
Created attachment 761893 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2022-02-10 07:50:22 UTC
The bug has been closed via the following commit(s):

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

commit a32c13886353c0a861cb0c140385d1bd8879fc79
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-02-10 06:59:31 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-02-10 07:50:09 +0000

    net-misc/socat: fix build on musl
    
    Closes: https://bugs.gentoo.org/831016
    Signed-off-by: Sam James <sam@gentoo.org>

 net-misc/socat/socat-1.7.4.3.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 9 Larry the Git Cow gentoo-dev 2022-11-23 01:45:15 UTC
The bug has been referenced in the following commit(s):

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

commit f335bad455c9308a8a4df5997f9e772b6288f056
Author:     Petr Vaněk <arkamar@atlas.cz>
AuthorDate: 2022-11-21 08:03:46 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-11-23 01:42:42 +0000

    net-misc/socat: fix 1.7.4.4 build on musl
    
    The issue with undefined reference to getprotobynumber_r for musl was
    fixed in 1.7.4.4 in commit [1]. It is no longer wanted to treat musl
    configuration specially.
    
    [1] https://repo.or.cz/socat.git/commitdiff/75cb44bc90577c3487458564ca803163681319f1
    
    Bug: https://bugs.gentoo.org/831016
    Closes: https://bugs.gentoo.org/879601
    Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
    Closes: https://github.com/gentoo/gentoo/pull/28358
    Signed-off-by: Sam James <sam@gentoo.org>

 net-misc/socat/socat-1.7.4.4.ebuild | 6 ------
 1 file changed, 6 deletions(-)
Comment 10 Celine Dion 2023-05-27 07:50:05 UTC
(In reply to Larry the Git Cow from comment #9)
> The bug has been referenced in the following commit(s):
> 
> https://gitweb.gentoo.org/repo/gentoo.git/commit/
>  https://mapquestdrivingdirections.app
> 
> commit f335bad455c9308a8a4df5997f9e772b6288f056
> Author:     Petr Vaněk <arkamar@atlas.cz>
> AuthorDate: 2022-11-21 08:03:46 +0000
> Commit:     Sam James <sam@gentoo.org>
> CommitDate: 2022-11-23 01:42:42 +0000
> 
>     net-misc/socat: fix 1.7.4.4 build on musl
>     
>     The issue with undefined reference to getprotobynumber_r for musl was
>     fixed in 1.7.4.4 in commit [1]. It is no longer wanted to treat musl
>     configuration specially.
>     
>     [1]
> https://repo.or.cz/socat.git/commitdiff/
> 75cb44bc90577c3487458564ca803163681319f1
>     
>     Bug: https://bugs.gentoo.org/831016
>     Closes: https://bugs.gentoo.org/879601
>     Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
>     Closes: https://github.com/gentoo/gentoo/pull/28358
>     Signed-off-by: Sam James <sam@gentoo.org>
> 
>  net-misc/socat/socat-1.7.4.4.ebuild | 6 ------
>  1 file changed, 6 deletions(-)

Thank you!