Subject: | Tk won't build |
Tk happens to be one of the most complicated/critical modules to build.
I know, I build it on HP-UX (10.20, 11.00, 11.11, and 11.23) in both
32bit and 64bit (PA-RISC and Itanium 2) for both the native compiler
and GNU gcc.
That is why I am so happy ActivePerl bundles it, and I do not have to
go through the trouble of building it myself.
Strawberry perl has a bundled developer suite. Hooray!
$ cpan.bat Text::CSV_XS
runs fine out of the box. Hooray again! but
$ cpan.bat Tk
fails.
gcc -c -IC:\strawberry\c\include -s -O2 -DWIN32 -
DHAVE_DES_FCRYPT -DPERL_
IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -
DPERL_MSVCRT_READFIX
-s -O2 -DVERSION=\"804.028\" -DXS_VERSION=\"804.028\" "-IC:
\strawber
ry\perl\lib\CORE" -Wall -Wno-implicit-int -Wno-comment -Wno-unused -
D__USE_FIX
ED_PROTOTYPES__ Tk.c
In file included from pTk/tkPort.h:28,
from Tk.xs:16:
pTk/tkWinPort.h:19:22: X11/Xlib.h: No such file or directory
pTk/tkWinPort.h:20:28: X11/cursorfont.h: No such file or directory
pTk/tkWinPort.h:21:24: X11/keysym.h: No such file or directory
pTk/tkWinPort.h:22:23: X11/Xatom.h: No such file or directory
pTk/tkWinPort.h:23:23: X11/Xutil.h: No such file or directory
In file included from pTk/tkInt.h:21,
from Tk.xs:17:
pTk/tk.h:599: error: syntax error before "Window"
pTk/tk.h:599: error: `Window' declared as function returning a function
pTk/tk.h:599: warning: parameter names (without types) in function
declaration
pTk/tk.h:602: error: syntax error before "XEvent"
pTk/tk.h:611: error: syntax error before "Tk_ClassCreateProc"
pTk/tk.h:611: warning: no semicolon at end of struct or union
pTk/tk.h:619: error: syntax error before '}' token
etc etc