On 17.12.2013 21:24, Απόστολος Συρόπουλος wrote: > Hello, > > While building i18npool the process stops with the follwoing error message: > > Entering /extra/sources/OpenOffice/aoo4/main/i18npool/source/localedata/data > > : && > LD_LIBRARY_PATH=/extra/sources/OpenOffice/aoo4/main/solver/410/unxsogi.pro/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} > ../../../unxsogi.pro/bin/saxparser en_AU en_AU.xml > ../../../unxsogi.pro/misc/localedata_en_AU.cxx \ > > file:///extra/sources/OpenOffice/aoo4/main/i18npool/source/localedata/data/../../../unxsogi.pro/misc/saxparser.rdb > /extra/sources/OpenOffice/aoo4/main/solver/410/unxsogi.pro/bin/types.rdb \ > > -env:OOO_INBUILD_SHAREDLIB_DIR=file:///extra/sources/OpenOffice/aoo4/main/solver/410/unxsogi.pro/lib > Exception on createRegistryServiceFactory: "cannot get uno environments!" > dmake: Error code 1, while making > '../../../unxsogi.pro/misc/localedata_en_AU.cxx' > > The binary does not dump core (I have seen similar things in a google search > but in these cases there was a core dump involved). > Any ideas what might be the problem?
Debugging problems in the bootstrapping of the UNO framework (and especially problems in the UNO bridges itself) can be quite painful. In bringing up the UNO bridge for our new Mac64bit port I had to spend quite some time analyzing problems in heavily templated C++ code on assembler level. That's no fun... Anyway, if we're lucky the problem is just a missing library or the failed loading of a library. In that case the patch below might help you to analyze the problem: --- main/sal/osl/unx/module.c +++ main/sal/osl/unx/module.c @@ -81,10 +81,11 @@ oslModule SAL_CALL osl_loadAsciiModule(const sal_Char *pszModuleName, sal_Int32 ((nRtldMode & SAL_LOADMODULE_GLOBAL) ? RTLD_GLOBAL : RTLD_LOCAL); void* pLib = dlopen(pszModuleName, rtld_mode); -#if OSL_DEBUG_LEVEL > 1 - if (pLib == 0) - OSL_TRACE("error: osl_loadModule failed with %s\n", dlerror()); -#endif /* OSL_DEBUG_LEVEL */ + if (pLib == 0) { + const char* pErr = dlerror(); + OSL_TRACE("error: osl_loadModule failed with %s\n", pErr); + fprintf( stderr, "loadModule( \"%s\", %d) failed with %s\n", pszModuleName, nRtldMode, pErr); + } return ((oslModule)(pLib)); Hope that helps! Herbert --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org