Menu

#1314 Fix incompatible integer to pointer conversion on non glibc systems

v1.0 (example)
closed-rejected
None
5
2023-11-30
2023-09-14
listout
No

musl libc only supports XSI-compliant version of strerror_r. Hence we
need to check if GLIBC is defined or not.

Also it's incorrectly assumed to use a differnt version of gethostbyname_r than
that's available with glibc or musl libc. Without the extra !defined(__GLIBC__)
the condition goes straight to the following section of the code

#elif defined(HAVE_GETHOSTBYNAME_R)
  hostent = gethostbyname_r(addr, hostent, tmpbuf, tmplen, &soap->errnum);
#elif defined(VXWORKS)

Which is not the correct implementation of gethostbyname_r present.

I've this patch that makes it compile correctly on musl and parts of it were taken from older version of gsoap but a proper fix would very much be appreciated.

1 Attachments

Discussion

  • listout

    listout - 2023-09-14

    Please refer https://bugs.gentoo.org/897870 for more information and a complete build log.

     
  • Robert van Engelen

    The suggested change will not compile on other systems, such as MacOS.

     
  • Robert van Engelen

    • status: open --> closed-rejected
     

Log in to post a comment.

MongoDB Logo MongoDB