Thread overview | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
July 17, 2018 Re: DMD, Vibe.d, and Dub | ||||
---|---|---|---|---|
| ||||
Attachments:
| I then tried with ldc2, which on Debian Sid in 1.8.0 :-(
|> dub build --compiler=ldc2
Performing "debug" build using ldc2 for x86_64.
taggedalgebraic 0.10.11: building configuration "library"...
eventcore 0.8.35: building configuration "epoll"...
stdx-allocator 2.77.2: building configuration "library"...
vibe-core 1.4.1: building configuration "epoll"...
vibe-d:utils 0.8.4: building configuration "library"...
vibe-d:data 0.8.4: building configuration "library"...
mir-linux-kernel 1.0.0: building configuration "library"...
vibe-d:crypto 0.8.4: building configuration "library"...
diet-ng 1.5.0: building configuration "library"...
vibe-d:stream 0.8.4: building configuration "library"...
vibe-d:textfilter 0.8.4: building configuration "library"...
vibe-d:inet 0.8.4: building configuration "library"...
vibe-d:tls 0.8.4: building configuration "openssl"...
vibe-d:http 0.8.4: building configuration "library"...
vibe-d:mail 0.8.4: building configuration "library"...
vibe-d:mongodb 0.8.4: building configuration "library"...
vibe-d:redis 0.8.4: building configuration "library"...
vibe-d:web 0.8.4: building configuration "library"...
vibe-d 0.8.4: building configuration "vibe-core"...
server ~master: building configuration "application"...
/usr/bin/ld: cannot find -lssl
/usr/bin/ld: cannot find -lcrypto
collect2: error: ld returned 1 exit status
Error: /usr/bin/gcc failed with status: 1
ldc2 failed with exit code 1.
which came as a surprise. Is this a my project problem (I believe it shouldn't be) or a vibe.d/ldc2 problem?
--
Russel.
===========================================
Dr Russel Winder t: +44 20 7585 2200
41 Buckmaster Road m: +44 7770 465 077
London SW11 1EN, UK w: www.russel.org.uk
|
July 17, 2018 Re: DMD, Vibe.d, and Dub | ||||
---|---|---|---|---|
| ||||
Posted in reply to Russel Winder | On Tuesday, 17 July 2018 at 18:55:07 UTC, Russel Winder wrote:
> [...]
Missing openssl libs? Try installing openssl-dev package.
|
July 18, 2018 Re: DMD, Vibe.d, and Dub | ||||
---|---|---|---|---|
| ||||
Posted in reply to Radu Attachments:
| On Tue, 2018-07-17 at 21:46 +0000, Radu via Digitalmars-d wrote: > On Tuesday, 17 July 2018 at 18:55:07 UTC, Russel Winder wrote: > > [...] > > Missing openssl libs? Try installing openssl-dev package. The Debian Sid openssl package is definitely installed. There doesn't seem to be a separate openssl-dev package. -- Russel. =========================================== Dr Russel Winder t: +44 20 7585 2200 41 Buckmaster Road m: +44 7770 465 077 London SW11 1EN, UK w: www.russel.org.uk |
July 18, 2018 Re: DMD, Vibe.d, and Dub | ||||
---|---|---|---|---|
| ||||
Posted in reply to Russel Winder | On Wednesday, 18 July 2018 at 11:35:05 UTC, Russel Winder wrote:
> On Tue, 2018-07-17 at 21:46 +0000, Radu via Digitalmars-d wrote:
>> On Tuesday, 17 July 2018 at 18:55:07 UTC, Russel Winder wrote:
>> > [...]
>>
>> Missing openssl libs? Try installing openssl-dev package.
>
> The Debian Sid openssl package is definitely installed. There doesn't seem to be a separate openssl-dev package.
It's called libssl-dev
|
July 18, 2018 Re: DMD, Vibe.d, and Dub | ||||
---|---|---|---|---|
| ||||
Posted in reply to Seb Attachments:
| On Wed, 2018-07-18 at 11:41 +0000, Seb via Digitalmars-d wrote: > On Wednesday, 18 July 2018 at 11:35:05 UTC, Russel Winder wrote: > > On Tue, 2018-07-17 at 21:46 +0000, Radu via Digitalmars-d wrote: > > > On Tuesday, 17 July 2018 at 18:55:07 UTC, Russel Winder wrote: > > > > [...] > > > > > > Missing openssl libs? Try installing openssl-dev package. > > > > The Debian Sid openssl package is definitely installed. There doesn't seem to be a separate openssl-dev package. > > It's called libssl-dev libssl installed but libssl-dev not. I can't quite see why the linker ld needs the development files, it just needs the shared objects to be present. -- Russel. =========================================== Dr Russel Winder t: +44 20 7585 2200 41 Buckmaster Road m: +44 7770 465 077 London SW11 1EN, UK w: www.russel.org.uk |
July 18, 2018 Re: DMD, Vibe.d, and Dub | ||||
---|---|---|---|---|
| ||||
Posted in reply to Seb Attachments:
| On Wed, 2018-07-18 at 11:41 +0000, Seb via Digitalmars-d wrote: > On Wednesday, 18 July 2018 at 11:35:05 UTC, Russel Winder wrote: > > On Tue, 2018-07-17 at 21:46 +0000, Radu via Digitalmars-d wrote: > > > On Tuesday, 17 July 2018 at 18:55:07 UTC, Russel Winder wrote: > > > > [...] > > > > > > Missing openssl libs? Try installing openssl-dev package. > > > > The Debian Sid openssl package is definitely installed. There doesn't seem to be a separate openssl-dev package. > > It's called libssl-dev Package installed, now I get: /usr/bin/ld: ../../../../../.dub/packages/vibe-d-0.8.4/vibe-d/tls/.dub/build/openssl-debug-linux.posix-x86_64-ldc_2081-B4D8997CFF9906E4CA7C7DC4C81EF881/libvibe-d_tls.a(vibe.stream.openssl.o): in function `_D4vibe6stream7openssl14OpenSSLContext6__ctorMFNfEQBwQBu3tls14TLSContextKindEQCxQCvQBb10TLSVersionZ9__lambda3MFNbNeZv': /home/users/russel/Organisations/ACCU/CodeCritique/112/Original/../../../../../.dub/packages/vibe-d-0.8.4/vibe-d/tls/vibe/stream/openssl.d:470: undefined reference to `SSLv23_client_method' /usr/bin/ld: /home/users/russel/Organisations/ACCU/CodeCritique/112/Original/../../../../../.dub/packages/vibe-d-0.8.4/vibe-d/tls/vibe/stream/openssl.d:471: undefined reference to `SSLv23_client_method' /usr/bin/ld: /home/users/russel/Organisations/ACCU/CodeCritique/112/Original/../../../../../.dub/packages/vibe-d-0.8.4/vibe-d/tls/vibe/stream/openssl.d:475: undefined reference to `SSLv23_client_method' /usr/bin/ld: /home/users/russel/Organisations/ACCU/CodeCritique/112/Original/../../../../../.dub/packages/vibe-d-0.8.4/vibe-d/tls/vibe/stream/openssl.d:476: undefined reference to `SSLv23_client_method' /usr/bin/ld: /home/users/russel/Organisations/ACCU/CodeCritique/112/Original/../../../../../.dub/packages/vibe-d-0.8.4/vibe-d/tls/vibe/stream/openssl.d:483: undefined reference to `SSLv23_server_method' /usr/bin/ld: /home/users/russel/Organisations/ACCU/CodeCritique/112/Original/../../../../../.dub/packages/vibe-d-0.8.4/vibe-d/tls/vibe/stream/openssl.d:484: undefined reference to `SSLv23_server_method' /usr/bin/ld: /home/users/russel/Organisations/ACCU/CodeCritique/112/Original/../../../../../.dub/packages/vibe-d-0.8.4/vibe-d/tls/vibe/stream/openssl.d:486: undefined reference to `SSLv23_server_method' /usr/bin/ld: /home/users/russel/Organisations/ACCU/CodeCritique/112/Original/../../../../../.dub/packages/vibe-d-0.8.4/vibe-d/tls/vibe/stream/openssl.d:487: undefined reference to `SSLv23_server_method' /usr/bin/ld: ../../../../../.dub/packages/vibe-d-0.8.4/vibe-d/tls/.dub/build/openssl-debug-linux.posix-x86_64-ldc_2081-B4D8997CFF9906E4CA7C7DC4C81EF881/libvibe-d_tls.a(vibe.stream.openssl.o): in function `_D4vibe6stream7openssl14OpenSSLContext11setDHParamsMFNeAyaZv': /home/users/russel/Organisations/ACCU/CodeCritique/112/Original/../../../../../.dub/packages/vibe-d-0.8.4/vibe-d/tls/vibe/stream/openssl.d:725: undefined reference to `get_rfc3526_prime_2048' /usr/bin/ld: ../../../../../.dub/packages/vibe-d-0.8.4/vibe-d/tls/.dub/build/openssl-debug-linux.posix-x86_64-ldc_2081-B4D8997CFF9906E4CA7C7DC4C81EF881/libvibe-d_tls.a(vibe.stream.openssl.o): in function `_D4vibe6stream7openssl25_sharedStaticCtor_L911_C1FZv': /home/users/russel/Organisations/ACCU/CodeCritique/112/Original/../../../../../.dub/packages/vibe-d-0.8.4/vibe-d/tls/vibe/stream/openssl.d:914: undefined reference to `SSL_load_error_strings' /usr/bin/ld: /home/users/russel/Organisations/ACCU/CodeCritique/112/Original/../../../../../.dub/packages/vibe-d-0.8.4/vibe-d/tls/vibe/stream/openssl.d:915: undefined reference to `SSL_library_init' /usr/bin/ld: /home/users/russel/Organisations/ACCU/CodeCritique/112/Original/../../../../../.dub/packages/vibe-d-0.8.4/vibe-d/tls/vibe/stream/openssl.d:917: undefined reference to `CRYPTO_num_locks' /usr/bin/ld: /home/users/russel/Organisations/ACCU/CodeCritique/112/Original/../../../../../.dub/packages/vibe-d-0.8.4/vibe-d/tls/vibe/stream/openssl.d:925: undefined reference to `CRYPTO_set_id_callback' /usr/bin/ld: /home/users/russel/Organisations/ACCU/CodeCritique/112/Original/../../../../../.dub/packages/vibe-d-0.8.4/vibe-d/tls/vibe/stream/openssl.d:926: undefined reference to `CRYPTO_set_locking_callback' /usr/bin/ld: /home/users/russel/Organisations/ACCU/CodeCritique/112/Original/../../../../../.dub/packages/vibe-d-0.8.4/vibe-d/tls/vibe/stream/openssl.d:931: undefined reference to `SSL_get_ex_new_index' /usr/bin/ld: ../../../../../.dub/packages/vibe-d-0.8.4/vibe-d/tls/.dub/build/openssl-debug-linux.posix-x86_64-ldc_2081-B4D8997CFF9906E4CA7C7DC4C81EF881/libvibe-d_tls.a(vibe.stream.openssl.o): in function `_D6deimos7openssl9safestack__T10SKM_sk_numTSQBqQBm6x509v315GENERAL_NAME_stZ__TQBwZQCaFNbPSQDkQDgQDb__T8STACK_OFTQCrZQoZi': /home/users/russel/Organisations/ACCU/CodeCritique/112/Original/../../../../../.dub/packages/openssl-1.1.6_1.0.1g/openssl/deimos/openssl/safestack.d:140: undefined reference to `sk_num' /usr/bin/ld: ../../../../../.dub/packages/vibe-d-0.8.4/vibe-d/tls/.dub/build/openssl-debug-linux.posix-x86_64-ldc_2081-B4D8997CFF9906E4CA7C7DC4C81EF881/libvibe-d_tls.a(vibe.stream.openssl.o): in function `_D6deimos7openssl9safestack__T12SKM_sk_valueTSQBsQBo6x509v315GENERAL_NAME_stZ__TQByZQCcFNbPSQDmQDiQDd__T8STACK_OFTQCrZQoiZPQDa': /home/users/russel/Organisations/ACCU/CodeCritique/112/Original/../../../../../.dub/packages/openssl-1.1.6_1.0.1g/openssl/deimos/openssl/safestack.d:142: undefined reference to `sk_value' -- Russel. =========================================== Dr Russel Winder t: +44 20 7585 2200 41 Buckmaster Road m: +44 7770 465 077 London SW11 1EN, UK w: www.russel.org.uk |
July 18, 2018 Re: DMD, Vibe.d, and Dub | ||||
---|---|---|---|---|
| ||||
Posted in reply to Russel Winder | On Wednesday, 18 July 2018 at 12:56:05 UTC, Russel Winder wrote: > > Package installed, now I get: > > /usr/bin/ld: ../../../../../.dub/packages/vibe-d-0.8.4/vibe-d/tls/.dub/build/openssl-debug-linux.posix-x86_64-ldc_2081-B4D8997CFF9906E4CA7C7DC4C81EF881/libvibe-d_tls.a(vibe.stream.openssl.o): in function `_D4vibe6stream7openssl14OpenSSLContext6__ctorMFNfEQBwQBu3tls14TLSContextKindEQCxQCvQBb10TLSVersionZ9__lambda3MFNbNeZv': >[...] Perhaps this? https://github.com/vibe-d/vibe.d/issues/2153 |
July 18, 2018 Re: DMD, Vibe.d, and Dub | ||||
---|---|---|---|---|
| ||||
Posted in reply to Russel Winder | On Wednesday, 18 July 2018 at 12:56:05 UTC, Russel Winder wrote: > [...] You have openssl 1.1 installed, but vibe.d tries to link with openssl 1.0 by default. See https://github.com/vibe-d/vibe.d#switching-between-openssl-versions tl;dr: use dub --override-config vibe-d:tls/openssl-1.1 |
July 18, 2018 Re: DMD, Vibe.d, and Dub | ||||
---|---|---|---|---|
| ||||
Posted in reply to Timoses Attachments:
| On Wed, 2018-07-18 at 13:38 +0000, Timoses via Digitalmars-d wrote: > On Wednesday, 18 July 2018 at 12:56:05 UTC, Russel Winder wrote: > > > > > Package installed, now I get: > > > > /usr/bin/ld: > > ../../../../../.dub/packages/vibe-d-0.8.4/vibe- > > d/tls/.dub/build/openssl-debug-linux.posix-x86_64-ldc_2081- > > B4D8997CFF9906E4CA7C7DC4C81EF881/libvibe- > > d_tls.a(vibe.stream.openssl.o): in function > > `_D4vibe6stream7openssl14OpenSSLContext6__ctorMFNfEQBwQBu3tls14TLSC > > ontextKindEQCxQCvQBb10TLSVersionZ9__lambda3MFNbNeZv': > > [...] > > Perhaps this? > https://github.com/vibe-d/vibe.d/issues/2153 Indeed it is, but on Debian rather than (the inferior :-) Ubuntu. I'm with Sebastian Wilzbach on this, if 1.1 is available it should be used. https://github.com/vibe-d/vibe.d/issues/2053 https://github.com/vibe-d/vibe.d/pull/2137 -- Russel. =========================================== Dr Russel Winder t: +44 20 7585 2200 41 Buckmaster Road m: +44 7770 465 077 London SW11 1EN, UK w: www.russel.org.uk |
July 18, 2018 Re: DMD, Vibe.d, and Dub | ||||
---|---|---|---|---|
| ||||
Posted in reply to Seb Attachments:
| On Wed, 2018-07-18 at 14:20 +0000, Seb via Digitalmars-d wrote: > On Wednesday, 18 July 2018 at 12:56:05 UTC, Russel Winder wrote: > > [...] > > You have openssl 1.1 installed, but vibe.d tries to link with openssl 1.0 by default. > > See https://github.com/vibe-d/vibe.d#switching-between-openssl-versions > > tl;dr: use > > dub --override-config vibe-d:tls/openssl-1.1 I went for the: dependency "vibe-d:tls" version="*" subConfiguration "vibe-d:tls" "openssl-1.1" in the dub.sdl file. I now have a build. I believe 1.1 should be the default if available, falling back to 1.0, 0.9,… -- Russel. =========================================== Dr Russel Winder t: +44 20 7585 2200 41 Buckmaster Road m: +44 7770 465 077 London SW11 1EN, UK w: www.russel.org.uk |
Copyright © 1999-2021 by the D Language Foundation