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

undefined reference error when "make world" #5600

Closed
vicuna opened this issue Apr 24, 2012 · 3 comments
Closed

undefined reference error when "make world" #5600

vicuna opened this issue Apr 24, 2012 · 3 comments

Comments

@vicuna
Copy link

vicuna commented Apr 24, 2012

Original bug ID: 5600
Reporter: Raymond
Assigned to: @pierreweis
Status: closed (set by @xavierleroy on 2015-12-11T18:08:03Z)
Resolution: unable to duplicate
Priority: high
Severity: major
Platform: Cygwin
OS: Windows
OS Version: 7
Version: 3.12.1
Target version: 4.00.1+dev
Category: configure and build/install

Bug description

The 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

@vicuna
Copy link
Author

vicuna commented May 2, 2012

Comment author: @pierreweis

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.

@vicuna
Copy link
Author

vicuna commented May 3, 2012

Comment author: @pierreweis

Could you please check your Tcl/Tk installation ?

@vicuna
Copy link
Author

vicuna commented Sep 10, 2012

Comment author: @alainfrisch

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants