Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Sun, 27 Jan 2002 16:12:42 +0100 From: "Gerrit P. Haase" X-Mailer: The Bat! (v1.53t) Business Reply-To: "Gerrit P. Haase @ cygwin" Organization: Esse keine toten Tiere X-Priority: 3 (Normal) Message-ID: <1341984560707.20020127161242@familiehaase.de> To: Per Magne Knutsen CC: Cygwin Users Subject: Re: Problem installing Tcl Perl module In-Reply-To: <09PK5YXSJHYFEZQO5ZIGGFEMGYWR.3c51f486@RAFIM2-PC> References: <09PK5YXSJHYFEZQO5ZIGGFEMGYWR DOT 3c51f486 AT RAFIM2-PC> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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/