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 Date: Mon, 20 Oct 2003 09:18:18 -1000 (HST) From: Russell Tokuyama Subject: Re: 1.5.5: Problem with Convert::ASN1 module and Perl 5.8.0 In-reply-to: <168100755048.20031019203008@familiehaase.de> X-X-Sender: russ AT uhunix2 To: "Gerrit @ cygwin" Message-id: MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII References: <168100755048 DOT 20031019203008 AT familiehaase DOT de> Gerrit, Thanks for the suggestion but I wanted to avoid moving to a new version of Perl since the production application that I'm working on is 5.8.0. I noticed that after compiling 5.8.0 from the source distribution (5.8.0-5) perldoc fails with an error message about not being able to create a temporary file: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - $ date Mon Oct 20 08:19:25 HST 2003 $ perldoc perlfunc Error in tempfile() using /tmp/XXXXXXXXXX: Could not create temp file /tmp/w4piWtmuSt: at /usr/bin/perldoc line 564 $ ls -l /tmp total 0 -rw-r--r-- 1 russ None 0 Oct 20 08:19 w4piWtmuSt $ perl -V Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration: Platform: osname=cygwin, osvers=1.5.5(0.9432), archname=cygwin-multi-64int uname='cygwin_nt-5.0 baktu 1.5.5(0.9432) 2003-09-20 16:31 i686 unknown unkno wn cygwin ' config_args='-de -Dmksymlinks -Dusemultiplicity -Duse64bitint -Doptimize=-O3 -Dman3ext=3pm' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=defi ne 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='-O3', 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 -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_64_BIT_INT USE_LARGE_FILES PERL_IMPLICI T_CONTEXT Built under cygwin Compiled at Oct 19 2003 10:36:28 %ENV: CYGWIN="" @INC: /usr/lib/perl5/5.8.0/cygwin-multi-64int /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl . - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Checking the log.test file created by the build.sh script, I noticed that the test of tempfile failed: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - lib/File/Temp/t/tempfile.............Error in tempfile() using /tmp/XXXXXXXXXX.t xt: Could not create temp file /tmp/yvTTCjl9aJ.txt: at ../lib/File/Temp/t/tempfile.t line 48 FAILED at test 2 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - But, then I noticed this in the log: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Failed 46 test scripts out of 659, 93.02% okay. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Despite this, the build.sh script goes ahead and installs the recompiled Perl 5.8.0. Is this reasonable behavior? It appears that Cygwin doesn't support the creation and opening of a temporary file to avoid a race condition as intended by the File::Temp::tempfile function. The perldoc seems to indicate that the use of the File::Temp:tmpnam function would probably be a better choice under for perldoc under Cygwin since apparently Cygwin can't handle the file semantics as described in the perldoc for File::Temp::tempfile. Thanks, Russ On Sun, 19 Oct 2003, Gerrit P. Haase wrote: > Many thanks for the detailed report. One more point for 5.8.1 which > is already available, 5.8.1-2 seems to return the correct value with > your testcase, please consider upgrading to 5.8.1-2, though it is > still delivered as test it shold be much better than 5.8.0-5. -- 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/