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

I was not able to compile mingw version #4633

Closed
vicuna opened this issue Oct 31, 2008 · 5 comments
Closed

I was not able to compile mingw version #4633

vicuna opened this issue Oct 31, 2008 · 5 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Oct 31, 2008

Original bug ID: 4633
Reporter: matt
Status: closed (set by @xavierleroy on 2009-01-26T17:30:07Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.11.0+beta
Fixed in version: 3.11.0
Category: ~DO NOT USE (was: OCaml general)
Monitored by: @alainfrisch

Bug description

1/ What version of Tcl/Tk can be used?

I tried with the very last version in the 8.4 serial.
ActiveTcl8.4.19.1.286921-win32-ix86-threaded

But I've got errors when doing make -f Makefile.nt world:

make[2]: Entering directory `/cygdrive/c/Documents and Settings/matt/Bureau/ocam
l-3.11.0+beta1/otherlibs/labltk/support'
../../../boot/ocamlrun ../../../tools/ocamlmklib -o labltk cltkCaml.o cltkUtf.o
cltkEval.o cltkEvent.o cltkFile.o cltkMain.o cltkMisc.o cltkTimer.o cltkVar.o cl
tkWait.o cltkImg.o -ldopt "c:/tcl/lib/tk84.lib c:/tcl/lib/tcl84.lib -lws2_32"
Cannot export ⌂tcl84_NULL_THUNK_DATA: symbol not found
Cannot export ⌂tk84_NULL_THUNK_DATA: symbol not found
collect2: ld returned 1 exit status
** Fatal error: Error during linking

2/ In another computer, I have a Tcl/Tk 8.4 installed in "Program Files" directory: I was not able to configure the Makefile correctly with this spaced path

3/ Is it possible to use the ocamlbuild tool to compile this version?

@vicuna
Copy link
Author

vicuna commented Nov 2, 2008

Comment author: matt

Trying again at home: I'm using VirtualBox, with XP Pro as guest OS (only linux at home).

I can not have 'flexlink.exe' run. (binary 0.10 version, downloaded from Alain Frisch's web page).

@vicuna
Copy link
Author

vicuna commented Nov 4, 2008

Comment author: @xavierleroy

The linking problem with Tcl/Tk 8.4 should go away if you put in config/Makefile:

TK_LINK=$(TK_ROOT)/bin/tk84.dll $(TK_ROOT)/bin/tcl84.dll -lws2_32

i.e. link directly with the DLLs rather than with the import libraries, which Mingw doesn't like for some reason.

This will be fixed in the 3.11 release.

Regarding flexlink, it's been working flawlessly for me so far. Could you provide more details?

@vicuna
Copy link
Author

vicuna commented Nov 4, 2008

Comment author: matt

Sorry for the noise: I SHOULD have seen that!

About point 2/ : I used a dos path (cygpath -d)

About flexlink problem: I will check and report the problem (if reproduced) directly to Alain. Note that I had the problem inside a virtal box (XP guest OS, linux host OS).

Thanks for all

@vicuna
Copy link
Author

vicuna commented Nov 4, 2008

Comment author: matt

FlexDLL

I downloaded the binary files from Alain to both a virtual PC and a real one.
For some reason Windows does not want to run flexlink.exe.

On the virtual box, I then downloaded version 3.10.2 of Objective Caml, and had the mingw chain version of flexlink compiled and working.

strange

@vicuna
Copy link
Author

vicuna commented Nov 6, 2008

Comment author: matt

Informatiion à propos du problème flexlink, après analyse par Alain Frisch : il apparaît que la version binaire proposée au téléchargement a été compilée avec les outils Microsoft, et qu’elle dépend d’une DLL (MSVCR80) qu’on ne trouve pas sur une installation par défaut de Windows XP Pro ! Il va proposer une version compilée avec mingw, qui elle dépend de la plus classique (MSVCRT).

@vicuna vicuna closed this as completed Jan 26, 2009
@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