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

Unable to compile a program in bytecode, undefined symbol: extern_sp #3091

Closed
vicuna opened this issue Dec 17, 2001 · 1 comment
Closed

Unable to compile a program in bytecode, undefined symbol: extern_sp #3091

vicuna opened this issue Dec 17, 2001 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Dec 17, 2001

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

Bug description

Full_Name: FOREST
Version: 3.04
OS: Debian woody
Submission from: pc8-110.lri.fr (129.175.8.110)

Same problem as for the message id 643.

When compiling with ocamlc all works well but when compiling with ocamlc.opt
give
the following message:

Error on dynamically loaded library: /usr/local/lib/ocaml/dllthreads.so:
undefined symbol: extern_sp

The program should be any program using thread
for example:
bug.ml:
open Thread

let t1 = Thread.create (function () -> print_string "\nfoo\n\n") ()

let _ =
print_string "bar";
flush stdout;
Thread.join t1

The command lines are respectively:

ocamlc -o ok -I +thread -thread unix.cma threads.cma bug.ml

and

ocamlc.opt -o bug -I +thread -thread unix.cma threads.cma bug.ml

If neccesary I've put an archive on my web page
http://www.lri.fr/~forest/bug-thread.tar.gz

Thanks,
Julien FOREST

@vicuna
Copy link
Author

vicuna commented Feb 11, 2002

Comment author: administrator

Same bug as #3043, q.v.

@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