gdbm compatibility between linux and freebsd
Arne Koewing
ark at gmx.net
Thu Aug 21 06:27:53 EDT 2003
bucket79 at daum.net (bucket79) writes:
> here's a problem
...
> and the problem is gdbm db file is not compatible between two system
> for example
...
> anyone know what is the casuse of this problem?
Yes and No ;-)
I do not think that gdbm-files could be considered 'portable'
(gdbm surely is, the files are (sometimes) not)
on freebsd systems `off_t` is (sometimes) 8 bytes, while on most
others it's just 4 bytes.
try changing off_t" to "loff_t" in gdbmdefs.h and recompile libgdmb
(breaking existing databases on the system !!!! )
or use some other format for interchanging information.
some people say bdb is not that problematic but I don't know...
(I'll treat all *db databases non-portable)
bdb databases can be be dumped to some interchangeable format.
Arne
--
More information about the Python-list
mailing list