Menu

#4 struct tcp_info

1.0
closed
nobody
None
2020-09-27
2016-05-10
No

The configure script check for struct tcp_info in linux/tcp.h, but the actual code uses (via headers.h) netinet/tcp.h

Those may not be the same, and in any case the check should really match what it's going to be used for.

Also, while in glib this works either way, this is not the case for musl. When compiling against musl the configure check succeeds, but the build fails -- because while netinet/tcp.h does have struct tcp_info, it's behind a '#ifdef _GNU_SOURCE". Since the build doesn't define _GNU_SOURCE, the struct is not found and the build fails.

FWIW iperf3 also needs _GNU_SOURCE defined for this reason.

Related

Tickets: #347

Discussion

  • Robert McMahon

    Robert McMahon - 2016-05-11

    Thanks for reporting this - will fix soon.

     
  • Robert McMahon

    Robert McMahon - 2016-05-17
    • status: open --> closed
     
  • Robert McMahon

    Robert McMahon - 2016-05-17
    • status: closed --> accepted
     
  • Robert McMahon

    Robert McMahon - 2016-06-02

    First part per

    The configure script check for struct tcp_info in linux/tcp.h, but the actual code uses (via headers.h) netinet/tcp.h

    has been fixed.

     
  • Robert McMahon

    Robert McMahon - 2020-09-27
    • status: accepted --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB