* Tk usage with / from perl in Cygwin env
@ 2004-02-20 2:56 linda w
2004-02-20 11:30 ` Rafael Kitover
2004-02-22 11:40 ` Gerrit P. Haase
0 siblings, 2 replies; 7+ messages in thread
From: linda w @ 2004-02-20 2:56 UTC (permalink / raw)
To: cygwin, module-authors
Has anyone tried using Tk from perl?
I was using a simple script example that used Tk for graphics interaction.
It wouldn't run because it wanted Tk, so I cpanned / downloaded the Tk perl
libs and ran an a make and got:
/bin/perl.exe /usr/lib/perl5/5.8.2/ExtUtils/xsubpp -typemap
/usr/lib/perl5/5.8.
2/ExtUtils/typemap -typemap
//ishtar/share/CPAN/build-win/Tk-804.025_beta14/Tk/t
ypemap Xlib.xs > Xlib.xsc && mv Xlib.xsc Xlib.c
gcc -c -I.. -I../pTk/mTk/xlib -DPERL_USE_SAFE_PUTENV
-fno-strict-aliasing -DUSE
IMPORTLIB -O2 -DVERSION=\"804.025\" -DXS_VERSION=\"804.025\"
"-I/usr/lib/perl
5/5.8.2/cygwin-thread-multi-64int/CORE" -D__WIN32__ -D_WIN32 -Wall
-Wno-implici
t-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: warning: cast to pointer from integer of different size
Xlib.xs:378: warning: cast to pointer from integer of different size
Xlib.xs:378: warning: cast to pointer from integer of different size
Xlib.xs:378: warning: cast to pointer from integer of different size
Xlib.xs:378: warning: cast to pointer from integer of different size
Xlib.xs:378: warning: cast to pointer from integer of different size
Xlib.xs:378: warning: cast to pointer from integer of different size
Xlib.xs:378: warning: cast to pointer from integer of different size
Xlib.xs:378: warning: cast to pointer from integer of different size
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
make[1]: *** [Xlib.o] Error 1
make[1]: Leaving directory
`//ishtar/share/CPAN/build-win/Tk-804.025_beta14/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
================
My perl -V shows:
Summary of my perl5 (revision 5.0 version 8 subversion 2) configuration:
Platform:
osname=cygwin, osvers=1.5.5(0.9432), archname=cygwin-thread-multi-64int
uname='cygwin_nt-5.0 troubardix 1.5.5(0.9432) 2003-09-20 16:31 i686
unknown
unknown cygwin '
config_args='-de -Dmksymlinks -Duse64bitint -Dusethreads
-Doptimize=-O2 -Dma
n3ext=3pm'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define
usemultiplicity=de
fine
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=define use64bitall=undef uselongdouble=undef
usemymalloc=y, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing',
optimize='-O2',
cppflags='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing'
ccversion='', gccversion='3.3.1 (cygming special)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long long', ivsize=8, nvtype='double', nvsize=8,
Off_t='off_t', lsee
ksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='ld2', ldflags =' -s -L/usr/local/lib'
libpth=/usr/local/lib /usr/lib /lib
libs=-lgdbm -ldb -lcrypt -lgdbm_compat
perllibs=-lcrypt -lgdbm_compat
libc=/usr/lib/libc.a, so=dll, useshrplib=true, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' -s'
cccdlflags=' ', lddlflags=' -s -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS USE_64_BIT_INT
USE_LARGE_FILES
PERL_IMPLICIT_CONTEXT
Built under cygwin
Compiled at Nov 7 2003 12:06:28
%ENV:
PERL5LIB="/usr/local/lib/perl/5.8"
CYGWIN=""
@INC:
/usr/local/lib/perl/5.8
/usr/lib/perl5/5.8.2/cygwin-thread-multi-64int
/usr/lib/perl5/5.8.2
/usr/lib/perl5/site_perl/5.8.2/cygwin-thread-multi-64int
/usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl
.
--
In the marketplace of "Real goods", capitalism is limited by safety
regulations, consumer protection laws, and product liability. In
the computer industry, what protects the consumer?
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Tk usage with / from perl in Cygwin env
2004-02-20 2:56 Tk usage with / from perl in Cygwin env linda w
@ 2004-02-20 11:30 ` Rafael Kitover
2004-02-22 11:40 ` Gerrit P. Haase
1 sibling, 0 replies; 7+ messages in thread
From: Rafael Kitover @ 2004-02-20 11:30 UTC (permalink / raw)
To: cygwin
>-----Original Message-----
>From: linda w
>Sent: Thursday, February 19, 2004 5:24 PM
>Subject: Tk usage with / from perl in Cygwin env
>
>Has anyone tried using Tk from perl?
[SNIP]
According to Gerrit,
http://anfaenger.de/cygwin-1.5/perl/
--
Rafael
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Tk usage with / from perl in Cygwin env
2004-02-20 2:56 Tk usage with / from perl in Cygwin env linda w
2004-02-20 11:30 ` Rafael Kitover
@ 2004-02-22 11:40 ` Gerrit P. Haase
2004-02-22 18:30 ` Reini Urban
1 sibling, 1 reply; 7+ messages in thread
From: Gerrit P. Haase @ 2004-02-22 11:40 UTC (permalink / raw)
To: linda w; +Cc: cygwin, module-authors
Hallo linda,
Am Freitag, 20. Februar 2004 um 02:24 schriebst du:
> Has anyone tried using Tk from perl?
> I was using a simple script example that used Tk for graphics interaction.
> It wouldn't run because it wanted Tk, so I cpanned / downloaded the Tk perl
> libs and ran an a make and got:
[...error...]
It works out of the tarball when you configure Tk with the 'x' option:
perl Makefile.PL x
Ready to use Tk binary is here: http://anfaenger.de/cygwin-1.5/perl/
Gerrit
--
=^..^=
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Tk usage with / from perl in Cygwin env
2004-02-22 11:40 ` Gerrit P. Haase
@ 2004-02-22 18:30 ` Reini Urban
2004-02-23 1:19 ` Earl Grey
0 siblings, 1 reply; 7+ messages in thread
From: Reini Urban @ 2004-02-22 18:30 UTC (permalink / raw)
To: cygwin
Gerrit P. Haase schrieb:
>>Has anyone tried using Tk from perl?
>>I was using a simple script example that used Tk for graphics interaction.
>>It wouldn't run because it wanted Tk, so I cpanned / downloaded the Tk perl
>>libs and ran an a make and got:
>
> [...error...]
>
> It works out of the tarball when you configure Tk with the 'x' option:
> perl Makefile.PL x
>
> Ready to use Tk binary is here: http://anfaenger.de/cygwin-1.5/perl/
But without x it fails.
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Tk usage with / from perl in Cygwin env
2004-02-22 18:30 ` Reini Urban
@ 2004-02-23 1:19 ` Earl Grey
0 siblings, 0 replies; 7+ messages in thread
From: Earl Grey @ 2004-02-23 1:19 UTC (permalink / raw)
To: cygwin
I downloaded Tk-800.024 and built it on cygwin without the x option, so that
Tk works in Win native mode. It works great!
-Earl
-----Original Message-----
From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com]On Behalf
Of Reini Urban
Sent: Sunday, February 22, 2004 11:02 AM
To: cygwin@cygwin.com
Subject: Re: Tk usage with / from perl in Cygwin env
Gerrit P. Haase schrieb:
>>Has anyone tried using Tk from perl?
>>I was using a simple script example that used Tk for graphics interaction.
>>It wouldn't run because it wanted Tk, so I cpanned / downloaded the Tk
perl
>>libs and ran an a make and got:
>
> [...error...]
>
> It works out of the tarball when you configure Tk with the 'x' option:
> perl Makefile.PL x
>
> Ready to use Tk binary is here: http://anfaenger.de/cygwin-1.5/perl/
But without x it fails.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Tk usage with / from perl in Cygwin env
@ 2004-02-24 12:30 Konovalov, Vadim
0 siblings, 0 replies; 7+ messages in thread
From: Konovalov, Vadim @ 2004-02-24 12:30 UTC (permalink / raw)
To: linda w, cygwin, module-authors
Another option for you to try is using Tcl::Tk module from CPAN which uses
existing Tcl/Tk installation and therefore should be easier to use, because
its tiny.
> -----Original Message-----
> From: linda w [mailto:cygwin@tlinx.org]
> Sent: Friday, February 20, 2004 4:24 AM
> To: cygwin@cygwin.com; module-authors@perl.org
> Subject: Tk usage with / from perl in Cygwin env
>
>
> Has anyone tried using Tk from perl?
>
> I was using a simple script example that used Tk for graphics
> interaction.
> It wouldn't run because it wanted Tk, so I cpanned /
> downloaded the Tk perl
> libs and ran an a make and got:
> /bin/perl.exe /usr/lib/perl5/5.8.2/ExtUtils/xsubpp -typemap
> /usr/lib/perl5/5.8.
> 2/ExtUtils/typemap -typemap
> //ishtar/share/CPAN/build-win/Tk-804.025_beta14/Tk/t
> ypemap Xlib.xs > Xlib.xsc && mv Xlib.xsc Xlib.c
> gcc -c -I.. -I../pTk/mTk/xlib -DPERL_USE_SAFE_PUTENV
> -fno-strict-aliasing -DUSE
> IMPORTLIB -O2 -DVERSION=\"804.025\" -DXS_VERSION=\"804.025\"
> "-I/usr/lib/perl
> 5/5.8.2/cygwin-thread-multi-64int/CORE" -D__WIN32__ -D_WIN32 -Wall
> -Wno-implici
> t-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: warning: cast to pointer from integer of different size
> Xlib.xs:378: warning: cast to pointer from integer of different size
> Xlib.xs:378: warning: cast to pointer from integer of different size
> Xlib.xs:378: warning: cast to pointer from integer of different size
> Xlib.xs:378: warning: cast to pointer from integer of different size
> Xlib.xs:378: warning: cast to pointer from integer of different size
> Xlib.xs:378: warning: cast to pointer from integer of different size
> Xlib.xs:378: warning: cast to pointer from integer of different size
> Xlib.xs:378: warning: cast to pointer from integer of different size
> 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
> make[1]: *** [Xlib.o] Error 1
> make[1]: Leaving directory
> `//ishtar/share/CPAN/build-win/Tk-804.025_beta14/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
> ================
> My perl -V shows:
> Summary of my perl5 (revision 5.0 version 8 subversion 2)
> configuration:
> Platform:
> osname=cygwin, osvers=1.5.5(0.9432),
> archname=cygwin-thread-multi-64int
> uname='cygwin_nt-5.0 troubardix 1.5.5(0.9432) 2003-09-20
> 16:31 i686
> unknown
> unknown cygwin '
> config_args='-de -Dmksymlinks -Duse64bitint -Dusethreads
> -Doptimize=-O2 -Dma
> n3ext=3pm'
> hint=recommended, useposix=true, d_sigaction=define
> usethreads=define use5005threads=undef useithreads=define
> usemultiplicity=de
> fine
> useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
> use64bitint=define use64bitall=undef uselongdouble=undef
> usemymalloc=y, bincompat5005=undef
> Compiler:
> cc='gcc', ccflags ='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing',
> optimize='-O2',
> cppflags='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing'
> ccversion='', gccversion='3.3.1 (cygming special)',
> gccosandvers=''
> intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
> d_longlong=define, longlongsize=8, d_longdbl=define,
> longdblsize=12
> ivtype='long long', ivsize=8, nvtype='double', nvsize=8,
> Off_t='off_t', lsee
> ksize=8
> alignbytes=8, prototype=define
> Linker and Libraries:
> ld='ld2', ldflags =' -s -L/usr/local/lib'
> libpth=/usr/local/lib /usr/lib /lib
> libs=-lgdbm -ldb -lcrypt -lgdbm_compat
> perllibs=-lcrypt -lgdbm_compat
> libc=/usr/lib/libc.a, so=dll, useshrplib=true, libperl=libperl.a
> gnulibc_version=''
> Dynamic Linking:
> dlsrc=dl_dlopen.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' -s'
> cccdlflags=' ', lddlflags=' -s -L/usr/local/lib'
>
>
> Characteristics of this binary (from libperl):
> Compile-time options: MULTIPLICITY USE_ITHREADS USE_64_BIT_INT
> USE_LARGE_FILES
> PERL_IMPLICIT_CONTEXT
> Built under cygwin
> Compiled at Nov 7 2003 12:06:28
> %ENV:
> PERL5LIB="/usr/local/lib/perl/5.8"
> CYGWIN=""
> @INC:
> /usr/local/lib/perl/5.8
> /usr/lib/perl5/5.8.2/cygwin-thread-multi-64int
> /usr/lib/perl5/5.8.2
> /usr/lib/perl5/site_perl/5.8.2/cygwin-thread-multi-64int
> /usr/lib/perl5/site_perl/5.8.2
> /usr/lib/perl5/site_perl
> .
>
> --
> In the marketplace of "Real goods", capitalism is limited
> by safety
> regulations, consumer protection laws, and product liability. In
> the computer industry, what protects the consumer?
>
>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Tk usage with / from perl in Cygwin env
@ 2004-02-23 21:34 Jason Pearce
0 siblings, 0 replies; 7+ messages in thread
From: Jason Pearce @ 2004-02-23 21:34 UTC (permalink / raw)
To: cygwin
I am interested in doing exactly this.
I take you to mean that you downloaded the Tk source and compiled with
cygwin as per the normal instructions but built it without the x option.
Is there a binary for this compile I can install via setup.exe (or
planned?).
Jason
>I downloaded Tk-800.024 and built it on cygwin without the x option, so that
>Tk works in Win native mode. It works great!
>
>-Earl
>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-02-24 5:36 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-20 2:56 Tk usage with / from perl in Cygwin env linda w
2004-02-20 11:30 ` Rafael Kitover
2004-02-22 11:40 ` Gerrit P. Haase
2004-02-22 18:30 ` Reini Urban
2004-02-23 1:19 ` Earl Grey
2004-02-23 21:34 Jason Pearce
2004-02-24 12:30 Konovalov, Vadim
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).