Subject Re: [firebird-support] Error opening database file on Mac OSX
Author Helen Borrie
At 02:45 AM 14/09/2004 +0000, you wrote:
>Hi
>We're developing a multi-platform application and currently using
>Firebird 1.5, developing under win XP/2000.
>Our app also runs on the Mac. We wanted to see how well the database
>ran when it was also on the Mac (and not remotely on a windows box).
>However we installed Firebird on the Mac (Firebird-cs-1.5.1-Macos.zip)
>and copied the database file on to it, but we get a runtime exception.
>We cannot use the database via the app or IBExpert. The errors imply
>that the internal database format is invalid.

True, it is invalid. You can (but shouldn't) copy a database file across
OS's if they have the same chip architecture; but a Mac is in a world of
its own!!

>What could be wrong? Please don't tell me that the internal database
>format is different on the Mac vs. the PC (I can't imagine it is).

The internal database format is the same at a higher level but, at the
level of CPU architecture, the database has to be reconstructed with the
correct endianness and other attributes that are not portable between
incompatible CPU architectures.

RTFM!! Never file-copy across platforms, not even across matching
platforms. Use gbak -b with the -transportable switch to make a backup
file on the source system and then use gbak -c to recreate the database on
the foreign target.

>
>... and if anyone can tell me what the obscure error "found 2560,
>support 10" is, please let me know...

It's just Firebird's way of telling you to RTFM.

./heLen