fatal error: tcl.h: No such file or directory
[email protected] ("Konovalov, Vadim") Mon, 16 Jul 2018 15:17:00 +0000
| Newsgroups | perl.tcltk |
|---|---|
| Message-ID | <[email protected]> |
Hi,
Such an error I can not reproduce:
https://www.cpantesters.org/cpan/report/6abf7f68-6d61-1014-8cbe-f6af8038f30=
8
Tcl.xs:32:10: fatal error: tcl.h: No such file or directory
I see in log:
Please specify prototyping behavior for Tcl.xs (see perlxs manual)
"C:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command -e mv -- Tcl.xsc Tcl.=
c
gcc -c -s -O2 -DWIN32 -D__USE_MINGW_ANSI_STDIO -DPERL_TEXTMODE_SCRIPTS -D=
PERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fwrapv -fno-strict-=
aliasing -mms-bitfields -s -O2 -DVERSION=3D\"1.16\" -DXS_VERSION=3D\"1.16=
\" "-IC:\STRAWB~1\perl\lib\CORE" Tcl.c
yet indeed - there is no "-Isomething" is there;
I am also using strawberry with gcc which comes with it; but in my case all=
is good, as long as I do have this in tclConfig.sh
TCL_INCLUDE_SPEC=3D'-IC:\apps\tcl-866-as86\include'
C:\vad\perl-dev\tcl.pm>perl Makefile.PL
tclsh=3DC:/apps/tcl-866-as86/bin/tclsh.exe
tclConfig.sh=3DC:/apps/tcl-866-as86/lib/tclConfig.sh
tcl_library=3DC:/apps/tcl-866-as86/lib/tcl8.6
tcl_version=3D8.6
Using config data in C:/apps/tcl-866-as86/lib/tclConfig.sh
LIBS =3D C:\apps\tcl-866-as86\lib\tcl86t.lib
INC =3D -IC:\apps\tcl-866-as86\include
DEFINE =3D
tclConfig.sh =3D C:/apps/tcl-866-as86/lib/tclConfig.sh
Generating a gmake-style Makefile
Writing Makefile for Tcl
Writing MYMETA.yml and MYMETA.json
"C:\apps\perl-5.26.0-32\perl\bin\perl.exe" -MExtUtils::Command::MM -e cp_no=
nempty -- Tcl.bs blib\arch\auto\Tcl\Tcl.bs 644
gcc -c -IC:\apps\tcl-866-as86\include -s -O2 -DWIN32 -D__USE_MINGW_ANSI_ST=
DIO -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DU=
SE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2 -DVERSION=3D=
\"1.16\" -DXS_VERSION=3D\"1.16\" "-IC:\apps\perl-5.26.0-32\perl\lib\CORE" =
Tcl.c
but we do have these lines I Makefile.PL now:
...
$incpath =3D $tclcfg{TCL_INCLUDE_SPEC};
# https://www.cpantesters.org/cpan/report/18397198-6bf4-1014-85e5-4e79f459=
b9c5
# Tcl.xs:32:10: fatal error: tcl.h: No such file or directory
if ($incpath) {
my @tclh =3D grep {-f "$_/tcl.h"} $incpath=3D~/-I(\S+)/g;
if ($#tclh=3D=3D-1) {
_die "incpath $incpath from your tclconfig $tclconfig does not provide tc=
l.h"
}
} else {_die "can not figure out incpath from your tclconfig $tclconfig"}
How come this happen to avoid my otherwise perfect check??
Any ideas?