logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Tk-804.027 build failure on WinXP/Cygwin: msg#00088

Subject: Tk-804.027 build failure on WinXP/Cygwin
This occurs on a WinXP box with the cygwin environment and perl
v5.8.2:
$ perl -v

This is perl, v5.8.2 built for cygwin-thread-multi-64int


I want to install Tk, can't get it thru a Cygwin update, so I turn to
CPAN:
$ perl -MCPAN -e shell

cpan shell -- CPAN exploration and modules installation (v1.7601)
ReadLine support enabled

cpan> install Tk

.... This retrieves Tk-804.027.tar.gz, runs the Makefile.PL, starts
the make and some time later gets stuck on following error:

...
make[1]: Leaving directory `/docs/.cpan/build/Tk-804.027/demos'
make[1]: Entering directory `/docs/.cpan/build/Tk-804.027/Xlib'
cp Xlib.pm ../blib/lib/Tk/Xlib.pm
make[2]: Entering directory `/docs/.cpan/build/Tk-804.027/Xlib/X'
cp X.pm ../../blib/lib/Tk/X.pm
AutoSplitting ../../blib/lib/Tk/X.pm (../../blib/lib/auto/Tk/X)
/usr/bin/perl.exe /usr/lib/perl5/5.8.2/ExtUtils/xsubpp  -typemap \
/usr/lib/perl5/5.8.2/ExtUtils/typemap -typemap \
/docs/.cpan/build/Tk-804.027/Tk/typemap  X.xs > X.xsc && mv X.xsc X.c
gcc -c  -I../.. -I../../pTk/mTk/xlib -DPERL_USE_SAFE_PUTENV \
-fno-strict-aliasing -DUSEIMPORTLIB -O2   -DVERSION=\"804.027\" \
-DXS_VERSION=\"804.027\"  \
"-I/usr/lib/perl5/5.8.2/cygwin-thread-multi-64int/CORE"  -D__WIN32__ \
-D_WIN32 -Wall -Wno-implicit-int -Wno-comment -Wno-unused \
-D__USE_FIXED_PROTOTYPES__ X.c
Running Mkbootstrap for Tk::X ()
chmod 644 X.bs
rm -f ../../blib/arch/auto/Tk/X/X.dll
LD_RUN_PATH="" gcc -shared  -s -L/usr/local/lib X.o  -o \
../../blib/arch/auto/Tk/X/X.dll  \
/usr/lib/perl5/5.8.2/cygwin-thread-multi-64int/CORE/libperl.dll.a \
-L/lib/w32api -lcomdlg32 -lgdi32
chmod 755 ../../blib/arch/auto/Tk/X/X.dll
cp X.bs ../../blib/arch/auto/Tk/X/X.bs
chmod 644 ../../blib/arch/auto/Tk/X/X.bs
make[2]: Leaving directory `/docs/.cpan/build/Tk-804.027/Xlib/X'
/usr/bin/perl.exe /usr/lib/perl5/5.8.2/ExtUtils/xsubpp  -typemap \
/usr/lib/perl5/5.8.2/ExtUtils/typemap -typemap \
/docs/.cpan/build/Tk-804.027/Tk/typemap  Xlib.xs > Xlib.xsc && \
mv Xlib.xsc Xlib.c
gcc -c  -I.. -I../pTk/mTk/xlib -DPERL_USE_SAFE_PUTENV \
-fno-strict-aliasing -DUSEIMPORTLIB -O2   -DVERSION=\"804.027\" \
-DXS_VERSION=\"804.027\"  \
"-I/usr/lib/perl5/5.8.2/cygwin-thread-multi-64int/CORE"  -D__WIN32__ \
-D_WIN32 -Wall -Wno-implicit-int -Wno-comment -Wno-unused \
-D__USE_FIXED_PROTOTYPES__ Xlib.c
In file included from ../pTk/tkWinPort.h:19,
                 from ../pTk/tkPort.h:28,
                 from Xlib.xs:7:
../pTk/mTk/xlib/X11/Xlib.h:1206:35: ../pTk/tkIntXlibDecls.h: No such \
file or directory
make[1]: *** [Xlib.o] Error 1
make[1]: Leaving directory `/docs/.cpan/build/Tk-804.027/Xlib'
make: *** [subdirs] Error 2
  /usr/bin/make  -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible

cpan>


When I look at the code in ../pTk/mTk/xlib/X11/Xlib.h it indeed seems
wrong for the diectory tree as it is available inside the build
directory. Rather than ../pTk/tkIntXlibDecls.h it should read
../../../../pTk/tkIntXlibDecls.h 

cpan> exit
Lockfile removed.

I tried to edit Xlib.h as indicated above. And ran make again:

$ cd ~/.cpan/build/Tk-804.027/
$ make
...
make[1]: Entering directory `/docs/.cpan/build/Tk-804.027/Xlib'
make[2]: Entering directory `/docs/.cpan/build/Tk-804.027/Xlib/X'
make[2]: Leaving directory `/docs/.cpan/build/Tk-804.027/Xlib/X'
gcc -c  -I.. -I../pTk/mTk/xlib -DPERL_USE_SAFE_PUTENV \
-fno-strict-aliasing -DUSEIMPORTLIB -O2   -DVERSION=\"804.027\" \
-D XS_VERSION=\"804.027\" \
"-I/usr/lib/perl5/5.8.2/cygwin-thread-multi-64int/CORE"  \
-D__WIN32__ -D_WIN32 -Wall -Wno-implicit-int -Wno-comment \
-Wno-unused -D__USE_FIXED_PROTOTYPES__ Xlib.c
Xlib.xs:13: error: syntax error before '*' token
Xlib.xs:13: warning: data definition has no type or storage class
Xlib.xs: In function `boot_Tk__Xlib':
Xlib.xs:378: error: `XlibVtab' undeclared (first use in this function)
Xlib.xs:378: error: (Each undeclared identifier is reported only once
Xlib.xs:378: error: for each function it appears in.)
Xlib.xs:378: error: syntax error before ')' token
Xlib.xs:378: error: request for member `tabSize' in something not a
structure or union
make[1]: *** [Xlib.o] Error 1
make[1]: Leaving directory `/docs/.cpan/build/Tk-804.027/Xlib'
make: *** [subdirs] Error 2

$

I am a newbie at using the cpan shell, building perl modules etc., but
very willing to help out with any additional info that might be
required.

Guido.
-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server.  If you wish to unsubscribe from this mailing list, send the
message body of "unsubscribe ptk" to majordomo@xxxxxxxxxxxxxxxxxx



<Prev in Thread] Current Thread [Next in Thread>