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

shared libraries - something_to_do #3187

Closed
vicuna opened this issue Feb 7, 2002 · 4 comments
Closed

shared libraries - something_to_do #3187

vicuna opened this issue Feb 7, 2002 · 4 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Feb 7, 2002

Original bug ID: 869
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Hello,

I am getting the following message when trying to build a toplevel without
-custom and using (native) threads on a Digital Unix / Alpha with OCaml
3.04+4 (2002-01-23):

Error on dynamically loaded library: Unresolved symbol in
/net/loginsai/mottl/local/osf4.0e/lib/ocaml/dllthreads.so:
something_to_do

Considering the name of the unresolved symbol, you may already know
about this problem, but I just wanted to make sure. The problem is not
critical for me.

Best regards,
Markus

--
Markus Mottl markus@oefai.at
Austrian Research Institute
for Artificial Intelligence http://www.oefai.at/~markus

@vicuna
Copy link
Author

vicuna commented Feb 7, 2002

Comment author: administrator

I am getting the following message when trying to build a toplevel without
-custom and using (native) threads on a Digital Unix / Alpha with OCaml
3.04+4 (2002-01-23):

Error on dynamically loaded library: Unresolved symbol in
/net/loginsai/mottl/local/osf4.0e/lib/ocaml/dllthreads.so:
something_to_do

Are you using ocamlc.opt, or did you rename ocamlc.opt to ocamlc?

There is a known problem with ocamlc.opt and dynamic linking of shared
libraries. Basically, the compiler (ocamlc or ocamlc.opt) tries to
load the shared libraries involved in the link, just to make sure that
they exist and provide the required C functions. In doing so, the
shared libraries are linked against the runtime system that comes with
the compiler. For ocamlc.opt, this runtime system is that of the
native-code compiler, while the threading libraries refer to symbols
only present in the runtime for the bytecode interpreter.

If you're getting this error with plain bytecoded ocamlc, this is a
new issue that we'll have to investigate.

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented Feb 7, 2002

Comment author: administrator

On Thu, 07 Feb 2002, Xavier Leroy wrote:

Error on dynamically loaded library: Unresolved symbol in
/net/loginsai/mottl/local/osf4.0e/lib/ocaml/dllthreads.so:
something_to_do

Are you using ocamlc.opt, or did you rename ocamlc.opt to ocamlc?

Yes, I usually move "ocamlc" to "ocamlc.slw" and link the name to
"ocamlc.opt" instead. Evil me :-)

There is a known problem with ocamlc.opt and dynamic linking of shared
libraries. Basically, the compiler (ocamlc or ocamlc.opt) tries to
load the shared libraries involved in the link, just to make sure that
they exist and provide the required C functions. In doing so, the
shared libraries are linked against the runtime system that comes with
the compiler. For ocamlc.opt, this runtime system is that of the
native-code compiler, while the threading libraries refer to symbols
only present in the runtime for the bytecode interpreter.

Indeed, this is obviously the problem. It was a bit surprising to see
things work on other machines but not on the Alpha.

If you're getting this error with plain bytecoded ocamlc, this is a
new issue that we'll have to investigate.

No, things work fine with the bytecoded ocamlc. Good enough for me...

Regards,
Markus Mottl

--
Markus Mottl markus@oefai.at
Austrian Research Institute
for Artificial Intelligence http://www.oefai.at/~markus

@vicuna
Copy link
Author

vicuna commented Feb 7, 2002

Comment author: administrator

From: markus@oefai.at

I am getting the following message when trying to build a toplevel without
-custom and using (native) threads on a Digital Unix / Alpha with OCaml
3.04+4 (2002-01-23):

Error on dynamically loaded library: Unresolved symbol in
/net/loginsai/mottl/local/osf4.0e/lib/ocaml/dllthreads.so:
something_to_do

I couldn't reproduce your bug on ocaml 3.04+6 / osf4.0a.
Can you verify with the last version, and be more precise if it
doesn't work?

Jacques Garrigue

@vicuna
Copy link
Author

vicuna commented Feb 19, 2002

Comment author: administrator

Same bug as #3043

@vicuna vicuna closed this as completed Feb 21, 2002
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant