Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000119OCamlOCaml generalpublic2000-05-18 20:262000-06-14 17:05
Reporteradministrator 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000119: problem with systhreads
DescriptionI 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)

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000392)
administrator (administrator)
2000-06-05 14:22

> 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


- Issue History
Date Modified Username Field Change
2005-11-18 10:13 administrator New Issue


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker