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

Invalid variable: DC #2677

Closed
jamesragray opened this issue Jul 21, 2022 · 8 comments
Closed

Invalid variable: DC #2677

jamesragray opened this issue Jul 21, 2022 · 8 comments

Comments

@jamesragray
Copy link

jamesragray commented Jul 21, 2022

When trying to use vibe-d 0.9.5 I get the error message "Invalid variable: DC" when compiling with dub build . Using vibe-d 0.9.5-beta.1 works fine.

My dub.selections looks like this:

{
        "fileVersion": 1,
        "versions": {
                "automem": "0.6.7",
                "diet-ng": "1.8.1",
                "eventcore": "0.9.20"
                "libasync": "0.8.6",
                "memutils": "1.0.4",
                "mir-linux-kernel": "1.0.1",
                "openssl": "3.2.2",
                "stdx-allocator": "2.77.5",
                "sumtype": "1.1.4",
                "taggedalgebraic": "0.11.22",
                "test_allocator": "0.3.3",
                "tinyredis": "2.2.1",
                "unit-threaded": "2.0.5",
                "vibe-core": "1.22.4",
                "vibe-d": "0.9.5"
        }
}

Here is the version that works:

{
        "fileVersion": 1,
        "versions": {
                "automem": "0.6.7",
                "botan": "1.12.19",
                "botan-math": "1.0.3",
                "diet-ng": "1.8.1",
                "eventcore": "0.9.20",
                "libasync": "0.8.6",
                "memutils": "1.0.4",
                "mir-linux-kernel": "1.0.1",
                "openssl": "1.1.6+1.0.1g",
                "stdx-allocator": "2.77.5",
                "sumtype": "1.1.4",
                "taggedalgebraic": "0.11.22",
                "test_allocator": "0.3.3",
                "tinyredis": "2.2.1",
                "unit-threaded": "2.0.5",
                "vibe-core": "1.22.4",
                "vibe-d": "0.9.5-beta.1"
        }
}
@Andriamanitra
Copy link

Looks like we filed the exact same bug at the same time (#2678) 😄

@Geod24
Copy link
Contributor

Geod24 commented Jul 21, 2022

This comes from https://github.com/D-Programming-Deimos/openssl/releases/tag/v3.2.1

There are a few possible workarounds:

  • Use library-manual-version as a subConfiguration to openssl as described here. Note that you might need to depend explicitly on openssl from your dub.json / dub.sdl for it to work;
  • Fix the openssl version to <=3.2.0 so that you don't get v3.2.1;
  • Disable SSL in Vibe.d (not tested);

I'll look into a proper fix.

@kinke
Copy link

kinke commented Jul 21, 2022

@Geod24
Copy link
Contributor

Geod24 commented Jul 21, 2022

@jamesragray : What version of DUB are you using ? @Andriamanitra mentions v1.23.0 which is a bit old (but should still be supported).

@jamesragray
Copy link
Author

Thanks for the workarounds. My dub is 1.26.1

@Geod24
Copy link
Contributor

Geod24 commented Jul 21, 2022

Can you try with v1.29.0 ? You can get a binary from here.

@jamesragray
Copy link
Author

My version of gzip doesn't seem to recognize those binaries as gzip files. So I cloned dub and build v1.29.0. It seems to work with openssl 3.2.2

@Geod24
Copy link
Contributor

Geod24 commented Jan 5, 2023

Confirmed fixed in #2678

@Geod24 Geod24 closed this as completed Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants