Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Perl / November 2003



Tip: Looking for answers? Try searching our database.

$^E bug and perl 5.8.0

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris Nandor - 19 Nov 2003 01:13 GMT
  $ perl5.8.0 -le '$! = -1728; print $^E+0 for 0,1'
  -1728
  22

This appears to be fixed in perl5.8.1, in the RC3 version that ships with
Panther:

  $ perl5.8.1 -le '$! = -1728; print $^E+0 for 0,1'
  -1728
  -1728

Bu in a perl 5.8.1 RC1 I built myself:

  $ perl5.8.1 -le '$! = -1728; print $^E+0 for 0,1'
  -1728
  22

And in a fresh build of perl 5.8.2:

  $ perl5.8.2 -le '$! = -1728; print $^E+0 for 0,1'
  -1728
  22

Is this a known issue?  Anyone know if it's been reported, or what the
problem might be?

Signature

Chris Nandor                      pudge@pobox.com    http://pudge.net/
Open Source Development Network    pudge@osdn.com     http://osdn.com/

emoy@apple.com - 19 Nov 2003 09:05 GMT
For what it's worth, I've been trying out 5.8.2, and I get the same  
value for 5.8.1-RC3 and 5.8.1 final, both the same negative numbers.  I  
am building with the same options as the Panther version  
(darwin-thread-multi-2level); are you?
------------------------------------------------------------------------
--
Edward Moy
Apple

(This message is from me as a reader of this list, and not a statement
from Apple.)

>    $ perl5.8.0 -le '$! = -1728; print $^E+0 for 0,1'
>    -1728
[quoted text clipped - 22 lines]
> Is this a known issue?  Anyone know if it's been reported, or what the
> problem might be?
John Delacour - 19 Nov 2003 09:51 GMT
>  For what it's worth, I've been trying out 5.8.2, and I get the same
> value for 5.8.1-RC3 and 5.8.1 final, both the same negative
> numbers.  I am building with the same options as the Panther
> version (darwin-thread-multi-2level); are you?

FWIW I get the same results as Chris with 5.8.2 and have used the
build configuration as Apple recommended for _Jaguar_ and 5.8.  So
maybe this is the problem in my case at least -- might explain my
problems with with Tk also perhaps.

Can you please post the parameters I should use with Configure.

JD
Chris Nandor - 19 Nov 2003 15:16 GMT
>>  For what it's worth, I've been trying out 5.8.2, and I get the same
>> value for 5.8.1-RC3 and 5.8.1 final, both the same negative
[quoted text clipped - 5 lines]
>maybe this is the problem in my case at least -- might explain my
>problems with with Tk also perhaps.

Are the problems you are having with Tk similar?  At least someone else has
the problem, so I know I am not crazy (well, at least, that this is not
evidence of it).

I'm doing some more test builds now.  On the dual G5, they go by pretty
quickly.  :)

Signature

Chris Nandor                      pudge@pobox.com    http://pudge.net/
Open Source Development Network    pudge@osdn.com     http://osdn.com/

Jerry Levan - 19 Nov 2003 15:30 GMT
I built Perl/Tk on Panther and found that the standard file selection
and file save widgets generate a bus error.

( The "widget" demo will provide a working "example" of the failure ).

I posted the problem on comp.lang.perl.tk and Steve Lidy(?) verified
the problem. I have not seen any movement on the problem.

Does anyone know who manages the OS X port of Perl/Tk?

--Jerry
Chris Nandor - 19 Nov 2003 15:33 GMT
(For the porters: the bug is that this:

    % perl -le '$^E = -1728; print $^E+0 for 0,1'

Should return this:

    -1728
    -1728

But in some cases, returns this:

    -1728
    22

Odd.)

>For what it's worth, I've been trying out 5.8.2, and I get the same
>value for 5.8.1-RC3 and 5.8.1 final, both the same negative numbers.  I
>am building with the same options as the Panther version
>(darwin-thread-multi-2level); are you?

I am building with the defaults, not with anything in particular.

[Slash:local/src/perl-5.8.2] apple% ./perl -Ilib -V
Summary of my perl5 (revision 5.0 version 8 subversion 2) configuration:
 Platform:
   osname=darwin, osvers=7.0.0, archname=darwin-2level
   uname='darwin slash.local 7.0.0 darwin kernel version 7.0.0: wed sep 24
15:48:39 pdt 2003; root:xnuxnu-517.obj~1release_ppc power macintosh powerpc
'
   config_args='-des'
   hint=recommended, useposix=true, d_sigaction=define
   usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
   useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
   use64bitint=undef use64bitall=undef uselongdouble=undef
   usemymalloc=n, bincompat5005=undef
 Compiler:
   cc='cc', ccflags ='-pipe -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing',
   optimize='-Os',
   cppflags='-no-cpp-precomp -pipe -fno-common -DPERL_DARWIN
-no-cpp-precomp -fno-strict-aliasing'
   ccversion='', gccversion='3.3 20030304 (Apple Computer, Inc. build
1495)', gccosandvers=''
   intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
   d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
   ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
   alignbytes=8, prototype=define
 Linker and Libraries:
   ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =''
   libpth=/usr/lib
   libs=-ldbm -ldl -lm -lc
   perllibs=-ldl -lm -lc
   libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false, libperl=libperl.a
   gnulibc_version=''
 Dynamic Linking:
   dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
   cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup'

Characteristics of this binary (from libperl):
 Compile-time options: USE_LARGE_FILES
 Built under darwin
 Compiled at Nov 19 2003 06:36:12
 @INC:
   lib
   /usr/local/lib/perl5/5.8.2/darwin-2level
   /usr/local/lib/perl5/5.8.2
   /usr/local/lib/perl5/site_perl/5.8.2/darwin-2level
   /usr/local/lib/perl5/site_perl/5.8.2
   /usr/local/lib/perl5/site_perl
   .

Differences I see off the bat:

    usethreads
    useithreads
    usemultiplicity
    -g for ccflags
    ld (though mine is right, RC3's is wrong, I believe)
    useshrplib (though I did it both ways, with and without)

Using your exact config_args from RC3, I get the proper values.  Lessee ...
I know it is not -g or useshrplib.  Trying with only '-ds -e
-Duseithreads': yep, now I get the proper values.  But I don't want threads.

But trying to dig deeper, I'll try enabling usemultiplicity on its own:
nope, that gives me the same bug.

So, it looks like if I turn on ithreads, it is fine.  If not, it isn't.  I
have no idea WHY it would be the case, and I really wish it weren't, as I
really don't want to have threads, if I can avoid it (unless I am just
being ignorant: last I heard, a threaded perl still had trouble with
mod_perl).  But there's gotta be a bug here, regardless.

Anyone, a little help?  :)

Signature

Chris Nandor                      pudge@pobox.com    http://pudge.net/
Open Source Development Network    pudge@osdn.com     http://osdn.com/

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.