Mail Archives: cygwin/2002/01/27/10:10:21
Hallo Per,
Am 2002-01-26 um 01:12 schriebst du:
> I need to install the Perl Tcl and Tcl::Tk modules from CPAN.
> At the end of the installation, make fails. I think this is
> related to some libraries the CPAN module cannot find, specifically
> referenced as:
I don't understand what you say here. Do you mean after
'perl Makefile.PL' then 'make' fails?
BTW, I was not able to install these modules via the CPAN module.
Which modules did you try to install via CPAN shell?
> -ltcl -ltk and -lX11
Hmmm, I found this at CPAN:
Tcl-b3.tar.gz
TclTk-b2.tar.gz
Tcl doesn't need libX11:
$ perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Tcl
$ make
cp Tcl.pm blib/lib/Tcl.pm
/bin/perl -I/usr/lib/perl5/5.6.1/cygwin-multi -I/usr/lib/perl5/5.6.1 /usr/lib/perl5/5.6.1/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.6.1/ExtUtils/typemap -typemap typemap Tcl.xs > Tcl.xsc && mv Tcl.xsc Tcl.c
Please specify prototyping behavior for Tcl.xs (see perlxs manual)
gcc -c -I/usr/local/include -I/usr/include/tcl -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include -DUSEIMPORTLIB -O2 -DVERSION=\"b3\" -DXS_VERSION=\"b3\" -I/usr/lib/perl5/5.6.1/cygwin-multi/CORE Tcl.c
In file included from Tcl.xs:4:
/usr/include/tcl.h:114: warning: `STRINGIFY' redefined
/usr/lib/perl5/5.6.1/cygwin-multi/CORE/config.h:1165: warning: this is the location of the previous definition
Running Mkbootstrap for Tcl ()
chmod 644 Tcl.bs
rm -f blib/arch/auto/Tcl/Tcl.dll
LD_RUN_PATH="/usr/lib" ld2 -s -L/usr/local/lib Tcl.o -o blib/arch/auto/Tcl/Tcl.dll /usr/lib/perl5/5.6.1/cygwin-multi/CORE/libperl5_6_1.a -ltcl -lm
dllwrap --dllname Tcl.dll --driver-name gcc --dlltool dlltool --export-all-symbols --as as --output-def libTcl.def --output-lib libTcl.a \
-s -L/usr/local/lib Tcl.o /usr/lib/perl5/5.6.1/cygwin-multi/CORE/libperl5_6_1.a -ltcl -lm
dllwrap: no export definition file provided
dllwrap: creating one, but that may not be what you want
mv Tcl.dll libTcl.a blib/arch/auto/Tcl/
chmod 755 blib/arch/auto/Tcl/Tcl.dll
cp Tcl.bs blib/arch/auto/Tcl/Tcl.bs
chmod 644 blib/arch/auto/Tcl/Tcl.bs
Manifying blib/man3/Tcl.3
$ make test
PERL_DL_NONLAZY=1 /bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.6.1/cygwin-multi -I/usr/lib/perl5/5.6.1 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/createcmd....ok
t/eval.........ok
t/result.......ok
t/trace........ok
t/var..........ok
All tests successful.
Files=5, Tests=22, 4 wallclock secs ( 0.43 cusr + 0.43 csys = 0.86 CPU)
TclTk needs libX11:
$ perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Tcl::Tk
$ make
cp Tk.pm blib/lib/Tcl/Tk.pm
/bin/perl -I/usr/lib/perl5/5.6.1/cygwin-multi -I/usr/lib/perl5/5.6.1 /usr/lib/perl5/5.6.1/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.6.1/ExtUtils/typemap -typemap typemap Tk.xs > Tk.xsc && mv Tk.xsc Tk.c
Please specify prototyping behavior for Tk.xs (see perlxs manual)
gcc -c -I/usr/local/include -I/usr/include/tcl -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include -DUSEIMPORTLIB -O2 -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -I/usr/lib/perl5/5.6.1/cygwin-multi/CORE Tk.c
In file included from Tk.xs:4:
/usr/include/tcl.h:114: warning: `STRINGIFY' redefined
/usr/lib/perl5/5.6.1/cygwin-multi/CORE/config.h:1165: warning: this is the location of the previous definition
Running Mkbootstrap for Tcl::Tk ()
chmod 644 Tk.bs
rm -f blib/arch/auto/Tcl/Tk/Tk.dll
LD_RUN_PATH="/usr/lib:/usr/X11R6/lib" ld2 -s -L/usr/local/lib Tk.o -o blib/arch/auto/Tcl/Tk/Tk.dll /usr/lib/perl5/5.6.1/cygwin-multi/CORE/libperl5_6_1.a -ltk -ltcl -L/usr/X11R6/lib -lX11 -lm
dllwrap --dllname Tk.dll --driver-name gcc --dlltool dlltool --export-all-symbols --as as --output-def libTk.def --output-lib libTk.a \
-s -L/usr/local/lib Tk.o /usr/lib/perl5/5.6.1/cygwin-multi/CORE/libperl5_6_1.a -ltk -ltcl -L/usr/X11R6/lib -lX11 -lm
dllwrap: no export definition file provided
dllwrap: creating one, but that may not be what you want
mv Tk.dll libTk.a blib/arch/auto/Tcl/Tk/
chmod 755 blib/arch/auto/Tcl/Tk/Tk.dll
cp Tk.bs blib/arch/auto/Tcl/Tk/Tk.bs
chmod 644 blib/arch/auto/Tcl/Tk/Tk.bs
Manifying blib/man3/Tcl.Tk.3
$ make test
No tests defined for Tcl::Tk extension.
> I think whats happening (supposed to happen...) is that these libraries
> are supposed to be linked during compiling, but make cannot find them??
> I don't know gcc, nor make, that very well som maybe I'm wrong here.
No problems here...
> After installing XFree86, iI got rid of error messages complaining about
> missing tk and X11 libraries. I still get the one for tcl. I installed
> both tcltk libraries and Perl via setup.exe. I am all a bit confused at
> the time being. Is tcl actually installed when installing the tcltk
> libraries? eg. how do I launch tcl? There is no tcl command that I can
> find, eg. like Perl
There is one Cygwin package tcltk which includes all, Tcl and Tk.
These are special version, they are not linked against cygwin1.dll.
> Can anyone suggest how to proceed from here? Why cannot make find the
> tcl library?
Need some more infos, e.g. error messages.
Gerrit
--
=^..^= mailto:gp AT familiehaase DOT de
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -