Git Product home page Git Product logo

Comments (6)

anmonteiro avatar anmonteiro commented on July 17, 2024 1

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.

anmonteiro avatar anmonteiro commented on July 17, 2024 1

@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.

jonsterling avatar jonsterling commented on July 17, 2024

@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.

jonsterling avatar jonsterling commented on July 17, 2024

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.

jonsterling avatar jonsterling commented on July 17, 2024

Thanks very much for the suggestion! I will see if I can do this.

from ocaml-ssl.

jonsterling avatar jonsterling commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.