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

docker build fails #838

Closed
certguy opened this issue Aug 29, 2023 · 2 comments
Closed

docker build fails #838

certguy opened this issue Aug 29, 2023 · 2 comments

Comments

@certguy
Copy link

certguy commented Aug 29, 2023

Current stable (a1e5697) and master (4c0b8a3) docker build fails:

$ docker build --build-arg="APP=smp-server" --build-arg="APP_PORT=3456" .

cabal-3.6.2.0: Missing dependency on a foreign library:
* Missing (or bad) C library: crypto

Building sqlcipher-simple with openssl flag separately on Ubuntu 22.04 with installed openssl succeeds, but the resulting libHSsqlcipher-simple-0.4.18.1-inplace-ghc8.10.7.so attempts to link to both libcrypto.so.3 and libcrypto.so.1.1 where the latter doesn't exist.

@certguy
Copy link
Author

certguy commented Aug 29, 2023

Full error message:

Configuring library for direct-sqlcipher-2.3.27..
cabal-3.6.2.0: Missing dependency on a foreign library:
* Missing (or bad) C library: crypto
problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.If the
library file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.

cabal: Failed to build direct-sqlcipher-2.3.27 (which is required by
exe:smp-server from simplexmq-5.3.0.1). See the build log above for details.

@certguy
Copy link
Author

certguy commented Aug 29, 2023

my bad plz ignore

@certguy certguy closed this as completed Aug 29, 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

1 participant