Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005600OCamlOCaml internal build/install (Makefiles, configure)public2012-04-24 05:552012-09-10 14:09
ReporterRaymond 
Assigned Toweis 
PriorityhighSeveritymajorReproducibilityalways
StatusresolvedResolutionunable to reproduce 
PlatformCygwinOSWindowsOS Version7
Product Version3.12.1 
Target Version4.00.1+devFixed in Version 
Summary0005600: undefined reference error when "make world"
DescriptionThe Configuration summary is shown as below:
Directories where Objective Caml will be installed:
        binaries.................. /usr/local/bin
        standard library.......... /usr/local/lib/ocaml
        manual pages.............. /usr/local/man (with extension .1)
Configuration for the bytecode compiler:
        C compiler used........... gcc
        options for compiling..... -fno-defer-pop -Wall -U_WIN32 -D_FILE_OFFSET_ BITS=64 -D_REENTRANT
        options for linking....... -lm -lcurses -lpthread
        shared libraries not supported
Configuration for the native-code compiler:
        hardware architecture..... i386
        OS variant................ cygwin
        C compiler used........... gcc
        options for compiling..... -Wall -U_WIN32 -D_FILE_OFFSET_BITS=64 -D_REEN TRANT
        options for linking....... -lm
        assembler ................ as
        preprocessed assembler ... gcc -c
        native dynlink ........... false
        profiling with gprof ..... not supported
Source-level replay debugger: supported
Additional libraries supported:
        unix str num dynlink bigarray systhreads threads graph dbm labltk
Configuration for the "num" library:
        target architecture ...... ia32 (asm level 2)
Configuration for the "graph" library:
        options for compiling ....
        options for linking ...... -lX11
Configuration for the "labltk" library:
        use tcl/tk version ....... 8.4
        options for compiling ....
        options for linking ...... -ltk84 -ltcl84 -lws2_32

** Objective Caml configuration completed successfully **

The link errors occurred during "make world" are shown as below:
../support/liblabltk.a(cltkMain.o):cltkMain.c:(.text+0x2d): undefined reference to `_Tcl_CreateTimerHandler'
../support/liblabltk.a(cltkMain.o):cltkMain.c:(.text+0xed): undefined reference to `_Tcl_FindExecutable'
../support/liblabltk.a(cltkMain.o):cltkMain.c:(.text+0xf2): undefined reference to `_Tcl_CreateInterp'
../support/liblabltk.a(cltkMain.o):cltkMain.c:(.text+0x151): undefined reference to `_Tcl_Init'
../support/liblabltk.a(cltkMain.o):cltkMain.c:(.text+0x188): undefined reference to `_Tcl_SetVar'
../support/liblabltk.a(cltkMain.o):cltkMain.c:(.text+0x24d): undefined reference to `_Tcl_SetVar'
../support/liblabltk.a(cltkMain.o):cltkMain.c:(.text+0x25f): undefined reference
......

collect2: ld returned 1 exit status
File "_none_", line 1, characters 0-1:
Error: Error while building custom runtime system
make[3]: *** [labltktop.exe] Error 2
make[3]: Leaving directory `/home/Ramon/ocaml-3.12.1/otherlibs/labltk/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/Ramon/ocaml-3.12.1/otherlibs/labltk'
make[1]: *** [otherlibraries] Error 2
make[1]: Leaving directory `/home/Ramon/ocaml-3.12.1'
make: *** [world] Error 2
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0007398)
weis (developer)
2012-05-02 16:41

Could you please check that Tcl/Tk is properly installed on your box ?
In particular, could you find C includes file tk.h (or tk84.h or tk8.4.h or tcltk84.h) ? And also the corresponding C libraries for tk and tcl ?

Since, the compilation went fine, I guess the headers where found but you probably lack the libraries.
(0007410)
weis (developer)
2012-05-03 22:19

Could you please check your Tcl/Tk installation ?
(0008047)
frisch (developer)
2012-09-10 14:09

Nobody else reported this problem, and there has been no activity on this issue for several months, so I assume it was caused by the local setup and went away magically.

- Issue History
Date Modified Username Field Change
2012-04-24 05:55 Raymond New Issue
2012-05-02 16:41 weis Note Added: 0007398
2012-05-03 22:19 weis Note Added: 0007410
2012-05-03 22:19 weis Assigned To => weis
2012-05-03 22:19 weis Status new => feedback
2012-07-06 16:12 doligez Target Version => 4.01.0+dev
2012-07-31 13:36 doligez Target Version 4.01.0+dev => 4.00.1+dev
2012-09-10 14:09 frisch Note Added: 0008047
2012-09-10 14:09 frisch Status feedback => resolved
2012-09-10 14:09 frisch Resolution open => unable to reproduce


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker