etcimon / botan

Block & stream ciphers, public key crypto, hashing, KDF, MAC, PKCS, TLS, ASN.1, BER/DER, etc.
Other
85 stars 22 forks source link

Error compiling on Ubuntu 14.04, x86 #26

Closed aberba closed 1 year ago

aberba commented 7 years ago

I get warning:

Running pre-generate commands for botan:base...
Notice: Botan uses many symbols. Look into switching from ld (bfd) to ld (Gold) linker to reduce link times from >15s to <2s
Performing "debug" build using dmd for x86.
botan-math 1.0.3: target for configuration "regular" is up to date.

and finally exit with error:

Enhanced memory security is enabled.
Memory debugger enabled
../../../../.dub/packages/vibe-d-0.7.30/vibe-d/source/vibe/stream/botan.d(775,16): Error: undefined identifier 'BigInt'
dmd failed with exit code 1.
etcimon commented 7 years ago

Hello

Could you try adding import botan.math.bigint.bigint: BigInt; at the top of the file at ../../../../.dub/packages/vibe-d-0.7.30/vibe-d/source/vibe/stream/botan.d ?

aberba commented 7 years ago

It worked!!

Was it a problem with vibe.d?

KrzaQ commented 7 years ago

Will this be fixed in vibe 0.7? I'm still getting it on arch linux.

aberba commented 7 years ago

I later found out botan was not well tested on x86. Some algorithms assumed x64 architecture. Bcrypt password in particular

KrzaQ commented 7 years ago

I'm getting it on x86_64, so this probably isn't it.

>  uname -a
Linux ArchVM 4.9.11-1-ARCH #1 SMP PREEMPT Sun Feb 19 13:45:52 UTC 2017 x86_64 GNU/Linux

I dunno if this deserves its own issue in this case...