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
-tkdefs not working correctly (can't find tk.h) #3081
Comments
Comment author: administrator From: luther@dpt-info.u-strasbg.fr
Are you sure that tk.h is in /usr/include/tcl8.3 ? Jacques Garrigue |
Comment author: administrator On Sun, Dec 16, 2001 at 08:20:43AM +0900, Jacques Garrigue wrote:
No it is in the right place : $ dpkg -L tk8.3-dev The problem i have traced is that the hasgot.sh script don't has cc set, and As said, my solution may not be the best there is, i don't fully understand I had the following lines added in : if test -z "$tcl_version"; then to detect tcl/tk in the right place (since then the tcl/tk maintainer moved But on some of the debian autobuilders there is 8.3 and 8.2 installed and Friendly, Sven Luther |
Comment author: administrator
Sorry for the delay. The above line contains an evident error: there should be Maybe we should write somewhere about that, but you can have a look at Cheers, Jacques Garrigue |
Comment author: administrator spurious space in parameter to configrue |
Comment author: administrator On Fri, Jan 04, 2002 at 09:57:39AM +0100, Jacques Garrigue wrote:
I was not really back at work this year, so the delay don't really is a
Ok, thanks, i will look into it.
Yes, that would be nice, mmm, i think the tcl/tk detection stuff needs some BTW, do you know why i have to add -cclib -lgtkgl, when building a program Friendly, Sven Luther |
Original bug ID: 716
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Hello, ...
In ocaml 3.04 and previous, the -tkdefs option don't seem to work properly for
tk.h files not in the standard place.
for example, consider the tcl/tk stuff in /usr/include/tcl8.3.
./configure -tkdefs "-I /usr/include/tcl8.3" -tklibs "-L/usr/lib -ltk8.3 -ltcl8.3"
gives :
...
Configuring LablTk...
tcl.h version 8.3 found.
tk.h not found.
Configuration failed, LablTk will not be built.
...
The problem is due in :
if test $has_tk = true; then
if sh ./hasgot $tk_x11_include $tk_defs -i tk.h; then
echo "tk.h found."
else
echo "tk.h not found."
has_tk=false
fi
fi
where the cc variables don't make it to the hasgot script, nor does it seem to
work well when both $tk_x11_include and $tk_defs are defined.
doing :
as in the attached patch, make it work well for me, but may not be the best
solution around. Also notice that this problem may be present also in other
places of the configure script, i have not checked further.
(Sorry for not having discovered this before the 3.04 release, i had not the
time :((()
Friendly,
Sven Luther
--- configure.orig Fri Dec 14 15:20:48 2001
+++ configure Fri Dec 14 15:26:09 2001
@@ -1148,7 +1148,7 @@
fi
if test $has_tk = true; then
echo "tk.h found."
else
echo "tk.h not found."
The text was updated successfully, but these errors were encountered: