Subject Mingw compile
Author Elmar Haneke
Mingw-compile does fail with an undefined symbol error. How can I fix that?

make -j1 -f ../gen/Makefile.intl
make[2]: Entering directory `/userdir/firebird/gen'
g++ -Wl,--version-script,../builds/posix/fbintl.vers -shared
-Wl,--enable-stdcall-fixup -Wl,-s -Wl,-soname,libintl.dll.1
-Wl,-rpath,/usr/local/firebird/lib -o ../gen/firebird/intl/fbintl.dll
../temp/superclient/intl/ld.o ../temp/superclient/intl/cv_narrow.o
../temp/superclient/intl/cs_narrow.o ../temp/superclient/intl/lc_ascii.o
../temp/superclient/intl/lc_narrow.o
../temp/superclient/intl/lc_iso8859_1.o
../temp/superclient/intl/lc_iso8859_2.o
../temp/superclient/intl/lc_iso8859_13.o
../temp/superclient/intl/lc_dos.o
../temp/superclient/intl/cs_unicode_ucs2.o
../temp/superclient/intl/lc_unicode_ucs2.o
../temp/superclient/intl/cs_unicode_fss.o
../temp/superclient/intl/cv_unicode_fss.o
../temp/superclient/intl/cs_big5.o ../temp/superclient/intl/cv_big5.o
../temp/superclient/intl/lc_big5.o ../temp/superclient/intl/cs_gb2312.o
../temp/superclient/intl/cv_gb2312.o
../temp/superclient/intl/lc_gb2312.o ../temp/superclient/intl/cs_jis.o
../temp/superclient/intl/cv_jis.o ../temp/superclient/intl/lc_jis.o
../temp/superclient/intl/cs_ksc.o ../temp/superclient/intl/cv_ksc.o
../temp/superclient/intl/lc_ksc.o ../temp/superclient/intl/cs_icu.o
../temp/superclient/intl/cv_icu.o ../temp/superclient/intl/lc_icu.o
../temp/superclient/jrd/IntlUtil.o
../temp/superclient/jrd/unicode_util.o ../temp/superclient/jrd/CharSet.o
../temp/superclient/jrd/mod_loader.o
../temp/superclient/common/fb_exception.o
../temp/superclient/common/thd.o
../temp/superclient/common/classes/MetaName.o
../temp/superclient/common/StatusHolder.o
../temp/superclient/common/classes/init.o
../temp/superclient/common/StatusArg.o
../temp/superclient/common/classes/alloc.o
../temp/superclient/common/classes/locks.o
../temp/superclient/common/classes/fb_string.o
../temp/superclient/common/classes/timestamp.o ../gen/jrd/version.res
-L../gen/firebird/bin -licuuc -licudata -licui18n -mno-cygwin -mthreads
-lmpr -lversion -lws2_32 -lole32 -lm -lpthread
Info: resolving vtable for __cxxabiv1::__vmi_class_type_info by linking
to __imp___ZTVN10__cxxabiv121__vmi_class_type_infoE (auto-import)
Info: resolving vtable for __cxxabiv1::__si_class_type_info by linking
to __imp___ZTVN10__cxxabiv120__si_class_type_infoE (auto-import)
Info: resolving vtable for __cxxabiv1::__class_type_info by linking to
__imp___ZTVN10__cxxabiv117__class_type_infoE
(auto-importh:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe:
warning: auto-importing has been activated without --enable-auto-import
specified on the command line.
This should work unless it involves constant data structures referencing
symbols from auto-imported DLLs.
../temp/superclient/jrd/mod_loader.o:mod_loader.cpp:(.text+0x218):
undefined reference to `Firebird::bEmbedded'
../temp/superclient/jrd/mod_loader.o:mod_loader.cpp:(.text+0x385):
undefined reference to `Firebird::bEmbedded'
../temp/superclient/common/fb_exception.o:fb_exception.cpp:(.text+0xdd8): undefined
reference to `gds__log)
'
collect2: ld returned 1 exit status
make[2]: *** [../gen/firebird/intl/fbintl.dll] Error 1
make[2]: Leaving directory `/userdir/firebird/gen'
make[1]: *** [intl] Error 2
make[1]: Leaving directory `/userdir/firebird/gen'
make: *** [firebird] Error 2