| sirena@tippett.com 2005-01-22, 3:57 am |
| Hi-
I'm having a problem running some code on OS X 10.3.6 (Panther). I was
able to install and run perl 5.8.5 without a problem, as well as
Tk-804.027. I have a group of perl scripts that are currently running
fine on RedHat Linux and SGI IRIX, both under perl 5.6.0 and 5.8.5.
Some of these also run well on OS X. There are a few that crash with
Bus Errors, however. In particular, certain Tk gui's.
I've narrowed the problem down to certain incantations of the Tk::Label
and Tk::Entry widgets. Here is a block of code with such a problem.
The Bus Error is being dumped by the code that is commented out at the
bottom. Everything up to that point runs fine.
# Make a frame to hold everything
my $MainWin = new MainWindow;
my $mainFrame = $MainWin->Frame();
$mainFrame->configure(-background => $bgColor);
$mainFrame->pack(-side=>'top',-fill=>'x');
my $guiFrame = $mainFrame->Frame();
$guiFrame->configure(-background => $bgColor);
$guiFrame->pack(-side=>'top',-fill=>'x');
# make an internal frame
my $CurrFrame = $guiFrame->Frame(-bd => 2,
-relief => 'raised',
-background => $bgColor)
->pack(-side=>'top',-fill=>'x');
$logo = $CurrFrame->Photo(-file=>$logoPath,
-palette=>256);
$CurrFrame->Label(-image=>$logo)->pack(-side=>'left');
# $CurrFrame->Label(-text=>"ToolName",
# -font=>$fontBig,
# -background => $bgColor)->pack(-anchor=>'center');
Any suggestions?
Here's my perl setup:
Summary of my perl5 (revision 5 version 8 subversion 5) configuration:
Platform:
osname=darwin, osvers=7.5.0, archname=darwin-thread-multi-2level
uname='darwin existenz 7.5.0 darwin kernel version 7.5.0: thu aug 5
19:26:16 pdt 2004; root:xnuxnu-517.7.21.obj~3release_ppc power
macintosh powerpc '
config_args='-Dcc=gcc -Dusethreads -Duseshrlib'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -pipe -I/usr/local/include',
optimize='-Os',
cppflags='-no-cpp-precomp -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -pipe -I/usr/local/include'
ccversion='', gccversion='3.3 20030304 (Apple Computer, Inc. build
1666)', 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',
ls size=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags ='
-L/usr/local/lib'
libpth=/usr/local/lib /usr/lib
libs=-ldbm -ldl -lm -lc
perllibs=-ldl -lm -lc
libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true,
libperl=libperl.dylib
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup
-L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
PERL_IMPLICIT_CONTEXT
Built under darwin
Compiled at Oct 18 2004 17:27:04
@INC:
/usr/local/lib/perl5/5.8.5/darwin-thread-multi-2level
/usr/local/lib/perl5/5.8.5
/usr/local/lib/perl5/site_perl/5.8.5/darwin-thread-multi-2level
/usr/local/lib/perl5/site_perl/5.8.5
/usr/local/lib/perl5/site_perl
..
Thank you very much for any help you can offer!
Sirena
|