Skip to content

Fix the way the ocamldoc bytecode executable is called under Windows.#906

Merged
alainfrisch merged 1 commit intoocaml:trunkfrom
shindere:fix-ocamldoc-build-system
Nov 10, 2016
Merged

Fix the way the ocamldoc bytecode executable is called under Windows.#906
alainfrisch merged 1 commit intoocaml:trunkfrom
shindere:fix-ocamldoc-build-system

Conversation

@shindere
Copy link
Copy Markdown
Contributor

@shindere shindere commented Nov 10, 2016

This is a follow-up to PR #808. More specifically, it fixes the problem
reported by @alainfrisch at
#808 (comment)

Many thanks to him for having both reported the issue and suggested a fix.

@shindere shindere force-pushed the fix-ocamldoc-build-system branch from be6b634 to a2616bc Compare November 10, 2016 10:56
@shindere shindere changed the title Fix the way ocamldoc is called under Windows. Fix the way the ocamldoc bytecode executable is called under Windows. Nov 10, 2016
This fixes a problem related to the way ocamldoc's bytecode executable
is called under Windows, reported by @alainfrisch at
ocaml#808 (comment)

As he explains, ``Even if the PATH is extended with explicit paths to
otherlibs/win32unix and otherlibs/str, ocamlrun will still look up
the stub dlls in the installation directory first, as can be seen by
setting OCAMLRUNPARAM=v=256. If another version was installed in the
same target directory before, the old dlls will be loaded which can lead
to failure (e.g. I just got "Fatal error: unknown C primitive 'unix_lstat'").
A fix could be to set:
CAML_LD_LIBRARY_PATH="../otherlibs/win32unix;../otherlibs/str"
instead of changing PATH''.

This commit implements the proposed fix, due to @alainfrisch.
@shindere shindere force-pushed the fix-ocamldoc-build-system branch from a2616bc to ed16260 Compare November 10, 2016 11:23
@alainfrisch alainfrisch merged commit b1e93a2 into ocaml:trunk Nov 10, 2016
@alainfrisch
Copy link
Copy Markdown
Contributor

Thanks for the confirmation. Since this is a complement to a recent (unreleased) PR, I guess we can go without a Changelog entry.

@shindere shindere deleted the fix-ocamldoc-build-system branch November 13, 2016 14:00
camlspotter pushed a commit to camlspotter/ocaml that referenced this pull request Oct 17, 2017
…ocaml#906)

This fixes a problem related to the way ocamldoc's bytecode executable
is called under Windows, reported by @alainfrisch at
ocaml#808 (comment)

As he explains, ``Even if the PATH is extended with explicit paths to
otherlibs/win32unix and otherlibs/str, ocamlrun will still look up
the stub dlls in the installation directory first, as can be seen by
setting OCAMLRUNPARAM=v=256. If another version was installed in the
same target directory before, the old dlls will be loaded which can lead
to failure (e.g. I just got "Fatal error: unknown C primitive 'unix_lstat'").
A fix could be to set:
CAML_LD_LIBRARY_PATH="../otherlibs/win32unix;../otherlibs/str"
instead of changing PATH''.

This commit implements the proposed fix, due to @alainfrisch.
stedolan pushed a commit to stedolan/ocaml that referenced this pull request Oct 25, 2022
EmileTrotignon pushed a commit to EmileTrotignon/ocaml that referenced this pull request Jan 12, 2024
…aml#906)

* consider reverse dependencies when ranking package search results

* Leaner interface

Co-authored-by: Sabine Schmaltz <sabine@tarides.com>
Co-authored-by: Cuihtlauac ALVARADO <cuihtmlauac@tarides.com>
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

Successfully merging this pull request may close these issues.

2 participants