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

problem with systhreads #2462

Closed
vicuna opened this issue May 18, 2000 · 1 comment
Closed

problem with systhreads #2462

vicuna opened this issue May 18, 2000 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented May 18, 2000

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

Bug description

I compiled O'Caml 3.00 using "-with-pthread" option and now
when i try to make a native code program with thread support, i
get linking errors like:

/usr/lib/ocaml/libthreads.a(posix_b.o): In function caml_thread_tick': posix_b.o(.text+0x28d): undefined reference to something_to_do'

and others.

I fixed this by changing the line 53 of
otherlibs/systhreads/Makefile

-cclib -lthreads -cclib -lunix $(PTHREAD_LINK)

with

-cclib -lthreadsnat -cclib -lunix $(PTHREAD_LINK)

(other info .. i'm running linux 2.2.14 with debian frozen)

@vicuna
Copy link
Author

vicuna commented Jun 5, 2000

Comment author: administrator

I compiled O'Caml 3.00 using "-with-pthread" option and now
when i try to make a native code program with thread support, i
get linking errors like:
I fixed this by changing the line 53 of
otherlibs/systhreads/Makefile
-cclib -lthreads -cclib -lunix $(PTHREAD_LINK)
with
-cclib -lthreadsnat -cclib -lunix $(PTHREAD_LINK)

Right, this is a known bug in the OCaml 3.00 distribution. Your fix
is correct.

Thanks for the bug report.

  • Xavier Leroy

@vicuna vicuna closed this as completed Jun 14, 2000
@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