[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Building a program with tcl/tk8.4



Le Thu, May 24, 2007 at 07:49:53AM +0100, Neil Williams a écrit :
> Charles Plessy <charles-debian-nospam@plessy.org> wrote:
> >  /usr/include/tcl8.4/tk.h:68:20: error: tcl.h: No such file or
> > directory
> > The reason is that /usr/include/tcl8.4/tk.h contains #include <tcl.h>
> > instead of <tcl8.4/tcl.h>. Is it a bug?
> 
> No. (In fact, if it did what you suggest, it would break everything
> else using Tcl.) 
> 
> Check the source of other packages that use Tcl and check their
> configure.ac|in and Makefile.am variables, especially AM_CFLAGS in the
> Makefile.am for the directory containing the files that need Tcl.

Many thanks to you and Don for your quick answers. I located the place
where to fix the -I option, and now the compilation goes a bit further.
Unfortunately, the programs wants a file from the compat/ directory,
which is not in the -dev packages, probably because:

"When the whole world becomes POSIX- compliant this directory should be
unnecessary." (tcl8.4-8.4.12/compat/README)

What should I do: file a wishlist bug on tcl84 and tk84? Or is there an
easy fix to make the directory unnecessary for the program I am
building?

Here is the error in details:

In file included from /usr/include/tcl8.4/tk-private/generic/tkPort.h:34,
                 from /usr/include/tcl8.4/tk-private/generic/tkInt.h:27,
                 from tkCanvGraph.c:3:
/usr/include/tcl8.4/tk-private/generic/../unix/tkUnixPort.h:43:33: error: ../compat/limits.h: Aucun fichier ou répertoire de ce type
/usr/include/tcl8.4/tk-private/generic/../unix/tkUnixPort.h:75:33: error: ../compat/unistd.h: Aucun fichier ou répertoire de ce type
make[2]: *** [linux-binaries/tkCanvGraph.o] Erreur 1
make[2]: quittant le répertoire « /home/charles/src/staden-src-1-7-0/src/tk_utils »
make[1]: *** [tk_utils] Erreur 2
make[1]: quittant le répertoire « /home/charles/src/staden-src-1-7-0/src »
make: *** [all] Erreur 2

(« Aucun fichier ou répertoire de ce type » means "file not found"...)

Have a nice day,

-- 
Charles



Reply to: