MINGW Notes


Date: March 06 2003
Author: Blas Rodriguez Somoza

0.-Introduction

This is the first available MSYS/MINGW and there are still some thinks to be solved, some in mingw libraries some in the FB sources and some in the building process.

The only difference between the msvc build and the mingw build, is that the later one does not support the ms SEH exception handling. This is an important difference because some exceptions will not be catched and thus FB will abort, the sources using this exception handling are jrd/blob_filter.cpp, jrd/exe.cpp and jrd/fun.epp.

1.-TODO

2.-INSTALLING MSYS and MINGW

The following packages from http://www.mingw.org are needed

MSYS

MinGW

STEPS

  1. Install minGW with the exe package
  2. Install MSYS
  3. Install msysDTK

PATCHES TO BUILD FILES AND MINGW HEADERS

BUILD PROCESS

  1. Start msys with the icon.
  2. Go to the firebird2 root directory. For instance, if your root is d:\cvs\firebird you must do cd /d/cvs/firebird2.
  3. Start configure
    autogen.sh --enable-superserver
  4. Make the build. For instance
    make > make.log 2>&1
  5. There are some problems in the build and the make process stop five times with errors before the process is complete, but it can be more if there are some stackdump. Also there are sometimes when the g++ hang and then g++ and make must be killed in the windows task manager.
    Known failures when building in their order