Front page | perl.perl5.porters |
Postings from February 2004
[perl #27090] dbmopen across platforms.
Thread Next
From:
Warren Dodge
Date:
February 24, 2004 20:33
Subject:
[perl #27090] dbmopen across platforms.
Message ID:
rt-3.0.8-27090-79892.17.0735051598962@perl.org
# New Ticket Created by Warren Dodge
# Please include the string: [perl #27090]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=27090 >
This is a bug report for perl from warren.dodge@tektronix.com,
generated with the help of perlbug 1.34 running under perl v5.8.3.
-----------------------------------------------------------------
[Please enter your report here]
I just ran into something I did not expect. I am not very familiar when the
workings of dbm files so that may be the problem.
I had build some dbm files on solaris 8 using a loop similar to this
dbmopen %ARRAY, "array" , 0666 or die "can not open >array<\n";
foreach $key ( keys %array )
{
$ARRAY{$key} = $array{$key};
}
dbmclose %ARRAY;
I then went over to linux with the same version of perl and ran the script to
make them again and got the following.
can not open >array<
I removed the files and built them from scratch on linux and that seemed to
work.
I then went back to solaris and ran the script again and got a core dump.
So the last one is probably a problem to look at. But are these files
supposed to be compatible across os's?
Is it that solaris is using dbm and linux is using gdbm or some other
combination?
I can provide files if needed.
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=low
---
Site configuration information for perl v5.8.3:
Configured by warrend at Thu Jan 22 10:42:24 PST 2004.
Summary of my perl5 (revision 5.0 version 8 subversion 3) configuration:
Platform:
osname=linux, osvers=2.4.21-4.elhugemem, archname=i686-linux-thread-multi
uname='linux tekcs22 2.4.21-4.elhugemem #1 smp fri oct 3 17:31:20 edt 2003 i686 unknown unknown gnulinux '
config_args='-Dmksymlinks -Dprefix=/proj/wdt/gnu_i686_linux2.4/perl-5.8.3'
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 ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -I/proj/wdt/i686_linux2.4/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O3',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -I/proj/wdt/i686_linux2.4/include'
ccversion='', gccversion='3.3.2', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='gcc', ldflags =''
libpth=/lib /usr/lib /proj/wdt/i686_linux2.4/lib
libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=/lib/libc-2.3.2.so, so=so, useshrplib=true, libperl=libperl583.so
gnulibc_version='2.3.2'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic -Wl,-rpath,/proj/wdt/gnu_i686_linux2.4/perl-5.8.3/lib/5.8.3/i686-linux-thread-multi/CORE'
cccdlflags='-fpic', lddlflags='-shared'
Locally applied patches:
---
@INC for perl v5.8.3:
$HOME
/proj/wdt/gnu_i686_linux2.4/perl-5.8.3/lib/5.8.3/i686-linux-thread-multi
/proj/wdt/gnu_i686_linux2.4/perl-5.8.3/lib/5.8.3
/proj/wdt/gnu_i686_linux2.4/perl-5.8.3/lib/site_perl/5.8.3/i686-linux-thread-multi
/proj/wdt/gnu_i686_linux2.4/perl-5.8.3/lib/site_perl/5.8.3
/proj/wdt/gnu_i686_linux2.4/perl-5.8.3/lib/site_perl
.
---
Environment for perl v5.8.3:
HOME=/login/warrend/lxhome
LANG=C
LANGUAGE (unset)
LANGVAR=en_US.UTF-8
LD_LIBRARY_PATH=/proj/eda/ldv/ldv/cur/tools.lnx86/lib
LOGDIR (unset)
PATH=.:/proj/wdt/bin:/proj/wdt/i686_linux2.4/bin:/proj/wdt/X.V11R6/i686_linux2.4/bin:/login/warrend:/login/warrend/bin:/login/warrend/bin/i686_linux2.4:/bin:/usr/bin:/etc:/usr/sbin:/usr/X11R6/bin:/proj/eda/ldv/ldv/cur/tools.lnx86/bin:/proj/eda/ldt/debussy/cur/bin
PERLLIB=$HOME
PERL_BADLANG (unset)
SHELL=/bin/tcsh
Thread Next
-
[perl #27090] dbmopen across platforms.
by Warren Dodge