Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[zlib] Build error on x64-linux #43420

Open
244916896 opened this issue Jan 23, 2025 · 8 comments
Open

[zlib] Build error on x64-linux #43420

244916896 opened this issue Jan 23, 2025 · 8 comments
Assignees
Labels
category:question This issue is a question

Comments

@244916896
Copy link

Package: zlib:[email protected]

Host Environment

  • Host: x64-linux
  • Compiler: GNU 11.2.1
  • vcpkg-tool version: 2024-11-12-eb492805e92a2c14a230f5c3deb3e89f6771c321
    vcpkg-scripts version: b2cb0da 2024-11-15 (10 weeks ago)

To Reproduce

vcpkg install

Failure logs

Downloading madler-zlib-v1.3.1.tar.gz
Failed to download madler-zlib-v1.3.1.tar.gz.
If you are using a proxy, please ensure your proxy settings are correct.
Possible causes are:
1. You are actually using an HTTP proxy, but setting HTTPS_PROXY variable to `https//address:port`.
This is not correct, because `https://` prefix claims the proxy is an HTTPS proxy, while your proxy (v2ray, shadowsocksr, etc...) is an HTTP proxy.
Try setting `http://address:port` to both HTTP_PROXY and HTTPS_PROXY instead.
2. If you are using Windows, vcpkg will automatically use your Windows IE Proxy Settings set by your proxy software. See, https://github.com/microsoft/vcpkg-tool/pull/77
The value set by your proxy might be wrong, or have same `https://` prefix issue.
3. Your proxy's remote server is our of service.
If you've tried directly download the link, and believe this is not a temporay download server failure, please submit an issue at https://github.com/Microsoft/vcpkg/issues
to report this upstream download server failure.
error: https://github.com/madler/zlib/archive/v1.3.1.tar.gz: curl failed to download with exit code 7
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed connect to github.com:443; Connection refused

CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:231 (message):
  Download failed, halting portfile.
Call Stack (most recent call first):
  scripts/cmake/vcpkg_from_github.cmake:106 (vcpkg_download_distfile)
  /home/zhanghl/.cache/vcpkg/registries/git-trees/3f05e04b9aededb96786a911a16193cdb711f0c9/portfile.cmake:2 (vcpkg_from_github)
  scripts/ports.cmake:196 (include)



Additional context

vcpkg.json
{
  "dependencies": [
    {
      "name": "curl",
      "features": [
        "ssh"
      ]
    },
    "fmt",
    "libssh2",
    "redis-plus-plus",
    {
      "name": "sqlpp11",
      "features": [
        "mysql",
        "sqlite3"
      ]
    }
  ]
}

@JonLiu1993
Copy link
Member

I'm not able to reproduce this issue, can you try manually accessing this link? https://github.com/madler/zlib/archive/v1.3.1.tar.gz , There is no problem for me to download these links manually. This may be a problem with your local proxy or firewall.


Total install time: 1.6 min
libssh2 provides CMake targets:

  find_package(libssh2 CONFIG REQUIRED)
  target_link_libraries(main PRIVATE libssh2::libssh2)

curl is compatible with built-in CMake targets:

    find_package(CURL REQUIRED)
    target_link_libraries(main PRIVATE CURL::libcurl)

The package fmt provides CMake targets:

    find_package(fmt CONFIG REQUIRED)
    target_link_libraries(main PRIVATE fmt::fmt)

    # Or use the header-only version
    find_package(fmt CONFIG REQUIRED)
    target_link_libraries(main PRIVATE fmt::fmt-header-only)

redis-plus-plus provides CMake targets:

  # this is heuristically generated, and may not be correct
  find_package(redis++ CONFIG REQUIRED)
  target_link_libraries(main PRIVATE redis++::redis++_static)

redis-plus-plus provides pkg-config modules:

  # This is a Redis client, based on hiredis and written in C++11. It supports scritpting, pub/sub, pipeline, transaction, Redis Cluster, Redis Sentinel, connection pool, ACL, SSL and thread safety.
  redis++

sqlpp11 provides CMake targets:

  find_package(Sqlpp11 CONFIG REQUIRED COMPONENTS SQLite3)
  target_link_libraries(main PRIVATE sqlpp11::sqlite3)

  find_package(Sqlpp11 CONFIG REQUIRED COMPONENTS MySQL)
  target_link_libraries(main PRIVATE sqlpp11::mysql)

@JonLiu1993 JonLiu1993 added the category:question This issue is a question label Jan 23, 2025
@244916896
Copy link
Author

I'am in china

@JonLiu1993
Copy link
Member

Can you open this link manually? https://github.com/madler/zlib/archive/v1.3.1.tar.gz

@244916896
Copy link
Author

Image

@244916896
Copy link
Author

[root@zhanghl-notebook ~]# wget https://github.com/madler/zlib/archive/v1.3.1.tar.gz
--2025-01-23 15:53:56-- https://github.com/madler/zlib/archive/v1.3.1.tar.gz
Resolving github.com (github.com)... 127.0.0.1
Connecting to github.com (github.com)|127.0.0.1|:443... failed: Connection refused.
[root@zhanghl-notebook ~]#

@244916896
Copy link
Author

when i use watt toolkit
[root@zhanghl-notebook ~]# wget https://github.com/madler/zlib/archive/v1.3.1.tar.gz
--2025-01-23 15:54:33-- https://github.com/madler/zlib/archive/v1.3.1.tar.gz
Resolving github.com (github.com)... 127.0.0.1
Connecting to github.com (github.com)|127.0.0.1|:443... connected.
ERROR: cannot verify github.com's certificate, issued by ‘/CN=SteamTools Certificate/OU=Technical Department/O=BeyondDimension/C=CN’:
Unable to locally verify the issuer's authority.
To connect to github.com insecurely, use `--no-check-certificate'.
[root@zhanghl-notebook ~]#

@244916896
Copy link
Author

[root@zhanghl-notebook ~]# ping github.com
PING github.com (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=200 time=0.227 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=200 time=0.211 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=200 time=0.218 ms
64 bytes from localhost (127.0.0.1): icmp_seq=4 ttl=200 time=0.213 ms
64 bytes from localhost (127.0.0.1): icmp_seq=5 ttl=200 time=0.242 ms
^C
--- github.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4003ms
rtt min/avg/max/mdev = 0.211/0.222/0.242/0.014 ms
[root@zhanghl-notebook ~]#

@JonLiu1993
Copy link
Member

Network connection denied, please add a proxy and try again.

failed: Connection refused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

2 participants