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 Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Reply-To: From: "Alan Miles" To: Subject: PERL 5.8.0-2 and Haase_Gerrit/1.3/perl/Tk800.023-1.patch - taking this to Tk800.024 Date: Thu, 3 Apr 2003 18:48:03 -0600 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 All, I am running the latest cygwin dll, setup etc, with Perl 5.8.0-2 (the latest). BTW, I am running cygwin on a Windows 2000 Professional SP2 machine. The PERL package Tk800.023 is now Tk800.024 but Haase Gerrit's patch to get this package to work under Cygwin only works to Tk800.023. Since I wanted to use Tk800.024, I had to figure out how to do this. ftp://ftp.uni-erlangen.de/pub/pc/gnuwin32/cygwin/porters/Haase_Gerrit/1.3/pe rl/Tk800.023-1.patch http://www.cpan.org/authors/id/NI-S/Tk800.023.tar.gz http://www.cpan.org/authors/id/NI-S/Tk800.patch.023.024.gz To recreate for Tk800.024 I did the following: 1/ Got the above files 2/ Un-tarred the Tk800.023.tar.gz 3/ Applied Haase Gerrit's patch 4/ Applied Tk800.patch.023.024.gz 5/ Renamed the Tk800.023 "root" directory to: Tk800.024 During the make test I got: D_RUN_PATH="/lib/w32api:/usr/lib" gcc -shared -s -L/usr/local/lib Event.o pTkCallback.o tclEvent.o tclNotify.o tclPlatEvent.o tclPlatNotfy.o tclPlat Time.o tclTimer.o tkWin32Dll.o -o ../blib/arch/auto/Tk/Event/Event.dll ../pTk/libpTk.a /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/libperl.dll.a -L/ lib/w32api -lcomdlg32 -lgdi32 -lm Event.o(.text+0x245):Event.c: undefined reference to `_win32_get_osfhandle' collect2: ld returned 1 exit status make[1]: *** [../blib/arch/auto/Tk/Event/Event.dll] Error 1 make[1]: Leaving directory `/home/ammiles/Shared_Binaries/Source/Cygwin_Perl_Modules/TK/tmp/Tk800.024/E vent' make: *** [subdirs] Error 2 6/ To fix this: (a) I had to chmod a+w Event/Event.xs (couldn't edit the file) (b) Add the following in: /* * Fix required to fix: undefined reference to `_win32_get_osfhandle' issue as directed in: * * http://sources.redhat.com/ml/cygwin/2002-09/msg00752.html * */ #ifdef __CYGWIN__ # define win32_get_osfhandle _get_osfhandle # define win32_open_osfhandle _open_osfhandle #endif 6/ Re-ran make test. It compiles, however t/fileevent seems to be "stuck", i.e., it is blocked - that is I think the pipe read is waiting for pipe write and visa-versa. I go to the window this creates and select "quit" and all other tests seem to work fine. I am attaching my complete perl Makefile.PL, make, make test logs. Any ideas? Alan Miles some output from my log file: In file included from tkPort.h:28, from Xlib_f.c:1: tkWinPort.h:54:1: warning: "OPEN_MAX" redefined In file included from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/include/limits.h:132, from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/include/syslimits.h:7, from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/include/limits.h:11, from tkWinPort.h:31, from tkPort.h:28, from Xlib_f.c:1: /usr/include/limits.h:143:1: warning: this is the location of the previous definition In file included from Xlib_f.c:10: Xlib.t:28: warning: initialization from incompatible pointer type Xlib.t:32: warning: initialization from incompatible pointer type Xlib.t:36: warning: initialization from incompatible pointer type Xlib.t:40: warning: initialization from incompatible pointer type Xlib.t:56: warning: initialization from incompatible pointer type Xlib.t:66: warning: initialization from incompatible pointer type Xlib.t:76: warning: initialization from incompatible pointer type Xlib.t:80: warning: initialization from incompatible pointer type Xlib.t:96: warning: initialization from incompatible pointer type Xlib.t:144: warning: initialization from incompatible pointer type Xlib.t:148: warning: initialization from incompatible pointer type Xlib.t:158: warning: initialization from incompatible pointer type Xlib.t:162: warning: initialization from incompatible pointer type Xlib.t:172: warning: initialization from incompatible pointer type Xlib.t:176: warning: initialization from incompatible pointer type Xlib.t:180: warning: initialization from incompatible pointer type Xlib.t:184: warning: initialization from incompatible pointer type Xlib.t:200: warning: initialization from incompatible pointer type Xlib.t:204: warning: initialization from incompatible pointer type Xlib.t:208: warning: initialization from incompatible pointer type Xlib.t:212: warning: initialization from incompatible pointer type Xlib.t:224: warning: initialization from incompatible pointer type Xlib.t:228: warning: initialization from incompatible pointer type Xlib.t:232: warning: initialization from incompatible pointer type Xlib.t:248: warning: initialization from incompatible pointer type Xlib.t:252: warning: initialization from incompatible pointer type Xlib.t:278: warning: initialization from incompatible pointer type Xlib.t:378: warning: initialization from incompatible pointer type Xlib.t:382: warning: initialization from incompatible pointer type Xlib.t:386: warning: initialization from incompatible pointer type Xlib.t:390: warning: initialization from incompatible pointer type Xlib.t:394: warning: initialization from incompatible pointer type Xlib.t:412: warning: initialization from incompatible pointer type Xlib.t:422: warning: initialization from incompatible pointer type Xlib.t:434: warning: initialization from incompatible pointer type Xlib.t:450: warning: initialization from incompatible pointer type Xlib.t:454: warning: initialization from incompatible pointer type Xlib.t:462: warning: initialization from incompatible pointer type Xlib.t:470: warning: initialization from incompatible pointer type Xlib.t:480: warning: initialization from incompatible pointer type Xlib.t:484: warning: initialization from incompatible pointer type Xlib.t:488: warning: initialization from incompatible pointer type Xlib.t:492: warning: initialization from incompatible pointer type Xlib.t:500: warning: initialization from incompatible pointer type Xlib.t:504: warning: initialization from incompatible pointer type Xlib.t:508: warning: initialization from incompatible pointer type Xlib.t:518: warning: initialization from incompatible pointer type Xlib.t:522: warning: initialization from incompatible pointer type Xlib.t:560: warning: initialization from incompatible pointer type Xlib.t:564: warning: initialization from incompatible pointer type Xlib.t:568: warning: initialization from incompatible pointer type Xlib.t:572: warning: initialization from incompatible pointer type Xlib.t:576: warning: initialization from incompatible pointer type Xlib.t:580: warning: initialization from incompatible pointer type Xlib.t:612: warning: initialization from incompatible pointer type Xlib.t:616: warning: initialization from incompatible pointer type Xlib.t:630: warning: initialization from incompatible pointer type Xlib.t:644: warning: initialization from incompatible pointer type gcc -c -I.. -I../pTk/mTk/xlib -I. -Ibitmaps -I../pTk/mTk/xlib -DPERL_USE_SA FE_PUTENV -fno-strict-aliasing -DUSEIMPORTLIB -O2 -DVERSION=\"800.024\" -D XS_VERSION=\"800.024\" "-I/usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE" -D__WIN32__ -D_WIN32 -DWIN 32 -Wall -Wno-implicit-int -Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES __ XrmOption.c gcc -c -I.. -I../pTk/mTk/xlib -I. -Ibitmaps -I../pTk/mTk/xlib -DPERL_USE_SA FE_PUTENV -fno-strict-aliasing -DUSEIMPORTLIB -O2 -DVERSION=\"800.024\" -D XS_VERSION=\"800.024\" "-I/usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE" -D__WIN32__ -D_WIN32 -DWIN 32 -Wall -Wno-implicit-int -Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES __ exWinHandle.c gcc -c -I.. -I../pTk/mTk/xlib -I. -Ibitmaps -I../pTk/mTk/xlib -DPERL_USE_SA FE_PUTENV -fno-strict-aliasing -DUSEIMPORTLIB -O2 -DVERSION=\"800.024\" -D XS_VERSION=\"800.024\" "-I/usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE" -D__WIN32__ -D_WIN32 -DWIN 32 -Wall -Wno-implicit-int -Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES __ imgBMP.c In file included from tkPort.h:28, from tk.h:71, from imgBMP.c:11: tkWinPort.h:54:1: warning: "OPEN_MAX" redefined In file included from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/include/limits.h:132, from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/include/syslimits.h:7, from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/include/limits.h:11, from tkWinPort.h:31, from tkPort.h:28, from tk.h:71, from imgBMP.c:11: /usr/include/limits.h:143:1: warning: this is the location of the previous definition gcc -c -I.. -I../pTk/mTk/xlib -I. -Ibitmaps -I../pTk/mTk/xlib -DPERL_USE_SA FE_PUTENV -fno-strict-aliasing -DUSEIMPORTLIB -O2 -DVERSION=\"800.024\" -D XS_VERSION=\"800.024\" "-I/usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE" -D__WIN32__ -D_WIN32 -DWIN 32 -Wall -Wno-implicit-int -Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES __ imgGIF.c In file included from tkPort.h:28, from tk.h:71, from imgGIF.c:35: tkWinPort.h:54:1: warning: "OPEN_MAX" redefined In file included from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/include/limits.h:132, from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/include/syslimits.h:7, from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/include/limits.h:11, from tkWinPort.h:31, from tkPort.h:28, from tk.h:71, from imgGIF.c:35: .... .... t/balloon........ok t/browseentry....ok t/create.........ok t/dash...........ok t/fbox...........ok t/fileevent......Use of uninitialized value in subroutine entry at t/fileevent.t line 123, line 77. FAILED test 1 Failed 1/1 tests, 0.00% okay t/fileselect.....ok t/font...........ok t/geomgr.........ok t/list...........ok t/mega...........ok t/mwm............skipped all skipped: no reason given t/optmenu........ok t/photo..........ok t/progbar........ok t/Require........ok t/Trace..........ok t/widget.........ok t/X..............ok t/zzHList........ok t/zzPhoto........ok t/zzScrolled.....ok t/zzText.........ok t/zzTixGrid......# Test 18 got: '1' (t/zzTixGrid.t at line 81 *TODO*) # Expected: '' (oops col selection is not cleared) # Test 26 got: '1' (t/zzTixGrid.t at line 91 *TODO*) # Expected: '' (oops row selection is not cleared) # Test 32 got: '1' (t/zzTixGrid.t at line 99 *TODO*) # Expected: '0' (oops cell selection contain a not selected item) ok Failed 1/25 test scripts, 96.00% okay. 1/886 subtests failed, 99.89% okay. Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------------- --- t/fileevent.t 1 1 100.00% 1 1 test skipped. make: *** [test_dynamic] Error 14 -- 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/