Bug #83149 socklen_t CMake check is broken
Submitted: 26 Sep 2016 12:50 Modified: 27 Sep 2016 13:19
Reporter: Jon Olav Hauglid Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.1 OS:Any
Assigned to: CPU Architecture:Any

[26 Sep 2016 12:50] Jon Olav Hauglid
Description:
configure.cmake has this check:
  # needed for libevent
  CHECK_TYPE_SIZE("socklen_t" SIZEOF_SOCKLEN_T)
  IF(SIZEOF_SOCKLEN_T)
    SET(HAVE_SOCKLEN_T 1)
  ENDIF()

This check always fails since sys/socket.h is not included in the check.

How to repeat:
Notice that HAVE_SOCKLEN_T is always false.

Suggested fix:
SET(CMAKE_EXTRA_INCLUDE_FILES sys/socket.h)
before doing the check.
[27 Sep 2016 13:19] Paul Dubois
Posted by developer:
 
Fixed in 8.0.1.

Reported and fixed in same version. No changelog entry needed.