Skip to content

vcpkg install on linux skip detect poll API #9921

Closed

Description

@comphilip

I did this

After running vcpkg install curl , running grep HAVE_POLL_FINE <VCPKG_DIR>/buildtrees/curl/x64-linux-rel/lib/curl_config.h, it shows

/* #undef HAVE_POLL_FINE */

Without poll API, curl multi-api cannot handle more than 1024 concurrent connections with select API.

I expected the following

curl build with poll api supported: HAVE_POLL_FINE should be defined in curl_config.h

curl/libcurl version

7.84.0

operating system

Linux phillip-dev 5.15.0-52-generic #58-Ubuntu SMP Thu Oct 13 08:03:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Root Cause

CMake script skip detecting poll API if CMAKE_TOOLCHAIN_FILE defined(My guess: skip detecting POLL API if cross-compile). CMAKE_TOOLCHAIN_FILE is always defined in vcpkg:https://vcpkg.io/en/docs/maintainers/vcpkg_cmake_configure.html#implicit-options

if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)

Activity

  1. added a commit that references this issue on Nov 16, 2022
    5081b76
  2. bagder commented on Nov 16, 2022

    @bagder
    Member

    Does #9923 fix the problem for you?

  3. comphilip commented on Nov 16, 2022

    @comphilip
    Author

    @bagder Yes it does fix the problem.

  4. bagder commented on Nov 16, 2022

    @bagder
    Member

    Excellent, thanks for confirming!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions