[pkg-firebird-general] Bug#840666: firebird3.0: FTBFS on powerpc, segfaults during build

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Thu Oct 13 18:17:42 UTC 2016


On 10/13/2016 06:35 PM, John Paul Adrian Glaubitz wrote:
> I tried the fix from [3] in firebird3.0, but unfortunately it
> doesn't help. Currently, I'm out of ideas but it would be great
> to see this fixed as this also affects m68k for which I have
> added platform support to firebird upstream [4,5].

Ok, the following patch fixes the crash above:

glaubitz at partch:~/firebird$ git diff builds/posix/vers.sh.in
diff --git a/builds/posix/vers.sh.in b/builds/posix/vers.sh.in
index 69bd656..15d86a7 100644
--- a/builds/posix/vers.sh.in
+++ b/builds/posix/vers.sh.in
@@ -57,6 +57,7 @@ platform_linux() {
                echo "${TAB}$i;"
        done

+       echo "${TAB}_IO_stdin_used;"
        echo 'local:'
        echo "${TAB}*;"
        echo '};'
glaubitz at partch:~/firebird$

However, it crashes still when running isql during build:

make gpre
make[3]: Entering directory '/home/glaubitz/firebird/gen'
rm -f metadata.fdb
/home/glaubitz/firebird/gen/Release/firebird/bin/isql -q -i /home/glaubitz/firebird/src/dbs/metadata.sql
Makefile:339: recipe for target 'metadata.fdb' failed
make[3]: *** [metadata.fdb] Segmentation fault
make[3]: *** Deleting file 'metadata.fdb'
make[3]: Leaving directory '/home/glaubitz/firebird/gen'
Makefile:180: recipe for target 'master_process' failed
make[2]: *** [master_process] Error 2
make[2]: Leaving directory '/home/glaubitz/firebird/gen'
Makefile:74: recipe for target 'firebird' failed
make[1]: *** [firebird] Error 2
make[1]: Leaving directory '/home/glaubitz/firebird/gen'
Makefile:6: recipe for target 'firebird' failed
make: *** [firebird] Error 2

But calling the isql command line directly doesn't trigger a crash:

(sid_powerpc-dchroot)glaubitz at partch:~/firebird$ export LD_LIBRARY_PATH=/home/glaubitz/firebird/gen/Release/firebird/lib
(sid_powerpc-dchroot)glaubitz at partch:~/firebird$ /home/glaubitz/firebird/gen/Release/firebird/bin/isql -q -i /home/glaubitz/firebird/src/dbs/metadata.sql
can't format message 17:0 -- message file /usr/local/firebird/firebird.msg not found
Unable to complete network request to host "localhost".
-Failed to establish a connection.
can't format message 17:120 -- message file /usr/local/firebird/firebird.msg not found
(sid_powerpc-dchroot)glaubitz at partch:~/firebird$

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz at debian.org
`. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



More information about the pkg-firebird-general mailing list