Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 907177

Summary: net-misc/socat-2.0.0_beta9 - xio-ip4.c:49:28: error: 'NETDB_INTERNAL' undeclared
Product: Gentoo Linux Reporter: orbea <orbea>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED FIXED    
Severity: normal Keywords: PullRequest
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/31158
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 430702    
Attachments: Build log

Description orbea 2023-05-25 13:28:46 UTC
Created attachment 862604 [details]
Build log

When building socat-2.0.0_beta9 on musl systems it fails.

In file included from xioopen.h:10,
                 from xio-ip4.c:11:
xio-ip4.c: In function 'xioparsenetwork_ip4':
xio-ip4.c:49:28: error: 'NETDB_INTERNAL' undeclared (first use in this function)
   49 |                 h_errno == NETDB_INTERNAL ? strerror(errno) :
      |                            ^~~~~~~~~~~~~~
error.h:47:42: note: in definition of macro 'Error2'
   47 | #define Error2(m,a1,a2) msg(E_ERROR,m,a1,a2)
      |                                          ^~
xio-ip4.c:49:28: note: each undeclared identifier is reported only once for each function it appears in
   49 |                 h_errno == NETDB_INTERNAL ? strerror(errno) :
      |                            ^~~~~~~~~~~~~~
error.h:47:42: note: in definition of macro 'Error2'
   47 | #define Error2(m,a1,a2) msg(E_ERROR,m,a1,a2)
      |                                          ^~
make: *** [<builtin>: xio-ip4.o] Error 1
make: *** Waiting for unfinished jobs....
xio-socket.c: In function 'xiocheckpeer':
xio-socket.c:1798:8: warning: unused variable 'result' [-Wunused-variable]
 1798 |    int result;
      |        ^~~~~~
Comment 1 Larry the Git Cow gentoo-dev 2023-05-26 09:35:29 UTC
The bug has been closed via the following commit(s):

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

commit 720d4808a276e29d61ff552cfd090a688fe0052f
Author:     orbea <orbea@riseup.net>
AuthorDate: 2023-05-25 13:30:11 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-26 09:35:16 +0000

    net-misc/socat: drop 2.0.0_beta9
    
    The socat2 build fails with musl and the most recent 2.0.0_beta9 release
    came out 7 years ago on January 26 2016. However several socat1 releases
    have since been made. In the event that upstream ever resumes their work
    on socat2 then it can be added back to Gentoo.
    
    Closes: https://bugs.gentoo.org/907177
    Signed-off-by: orbea <orbea@riseup.net>
    Closes: https://github.com/gentoo/gentoo/pull/31158
    Signed-off-by: Sam James <sam@gentoo.org>

 net-misc/socat/Manifest                            |  1 -
 .../socat/files/socat-1.7.3.0-filan-build.patch    | 30 ---------
 net-misc/socat/files/socat-1.7.3.1-stddef_h.patch  | 38 -----------
 .../socat/files/socat-1.7.3.4-fno-common.patch     | 24 -------
 net-misc/socat/socat-2.0.0_beta9.ebuild            | 74 ----------------------
 5 files changed, 167 deletions(-)