Comments (6)
Could you provide more information about your issue? So far this and #153 seem like homebrew problems which should rather be reported in their issue tracker.
from ocaml-ssl.
@jonsterling if you still have a broken system, this is easy to debug:
- clone this repo
- run
dune build
- check
_build/default/src/c_library_flags.sexp
to see if they have the expected paths
post the results here
from ocaml-ssl.
@anmonteiro Thanks! And sorry if this is not caused by ssl
. The issue I have is a linker error. For example, one month ago, homebrew upgraded my system openssl
installation from 3.2.1
to 3.3.0
. After this upgrade, any OCaml builds that depended on the ssl
library would fail with an error like the following:
ld: warning: search path '/opt/homebrew/Cellar/openssl@3/3.2.1/lib' not
found
ld: warning: search path '/opt/Homebrew/Cellar/openssl@3/3.1.2/lib' not
found
ld: library 'ssl' not found
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
File "caml_startup", line 1:
Error: Error during linking (exit code 1)
Interestingly, after running opam upgrade
, this problem resolved itself — but I cannot figure out what exactly happened to fix it. This is the reason that I think, even if this is the Homebrew packagers' fault ultimately, there is seemingly some kind of opam
involvement — which led me to post on this package's ticket tracker.
Note that this happened again yesterday, when homebrew upgraded my openssl from 3.3.0
to 3.3.1
. Unfortunately, running opam upgrade
did not solve the problem like it did last time (and I guess I have no reason to believe it would have solved it, given that I still do not understand the mechanism by which the problem resolved itself last time).
Sorry for all the vagueness here — it's inherently very hard to nail down what is happening because we are dealing with a problem that involves a combination of edge cases in several tools and libraries, on a platform that (apparently) very few OCaml programmers use.
from ocaml-ssl.
If you do think that there is no way for this to be related to the ssl
opam package, please feel free to close this ticket and accept my apologies for the noise.
from ocaml-ssl.
Thanks very much for the suggestion! I will see if I can do this.
from ocaml-ssl.
Unfortunately, I can no longer reproduce this issue. Closing ticket, as I don't think there is anything that can be done at this time (and it's likely homebrew's fault).
from ocaml-ssl.
Related Issues (20)
- TLS1_3_VERSION needs to be ifdef'ed HOT 3
- weird certificate issue on libera.chat HOT 2
- `<openssl/ssl.h>` No such file or directory on 4.12+options opam switch with `ocaml-option-static` HOT 1
- Linking with Ssl causes segfault on multicore OCaml HOT 2
- Build fail when installing with opam HOT 7
- New release? (0.5.11) HOT 2
- Wrong clause number in LGPL special exception HOT 1
- flush with non blocking socket must raise an exception HOT 2
- output_string should be a loop HOT 2
- TLSv1, TLSv1_1 and TLSv1_2 are deprecated HOT 6
- Bindings for more ERR_* functions HOT 2
- simplify/optimize c interface HOT 5
- Do not force SSL_MODE_AUTO_RETRY HOT 4
- dune runtest gives an error in ssl_error test HOT 14
- Naked pointer - ocaml_ssl_get_current_cipher
- With non blocking socket some functions are a bit useless as it is.
- GC-linked segfault using `ocaml-ssl`
- Ssl.input_string fails with Ssl.Read_error exception
- Add support for [email protected] on macOS HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ocaml-ssl.