Apache OpenOffice (AOO) Bugzilla – Issue 127731
AOO fails to open ODBC manager
Last modified: 2020-11-16 17:25:54 UTC
Created attachment 86363 [details] Error when trying to open ODBC administrator from within AOO This is a regression on Windows (AOO 4.1.5 works as expected). Steps to reproduce: - File | New | Database - Choose Connect to existing database - Choose ODBC as type - Click Next >> - Click Browse - Click Organize... Result: ODBC administrator can not be opened. Sometimes I get an error message, sometimes it fails to load silently. Expected behavior: On Windows32 the ODBC administrator (odbcad32.exe) should be opened. (On future Windows64 builds odbcad64.exe should be opened instead)
Actually AOO tries to open its own odbcconfig.exe which is only a "wrapper" to launch the ODBC manager from Windows. See (lines 364 ff.): https://svn.apache.org/repos/asf/openoffice/trunk/main/dbaccess/source/ui/dlg/odbcconfig.cxx and: https://svn.apache.org/repos/asf/openoffice/trunk/main/dbaccess/win32/source/odbcconfig/odbcconfig.cxx
Changes seem to be in Revision 1755455: https://svn.apache.org/viewvc?limit_changes=0&view=revision&revision=1755455 "Merge branches/gbuild-reintegration to trunk."
Hi Matthias, are you the only one with this error? Have you tried to fix this like suggested here: https://errortools.com/windows/fix-runtime-error-r6034/
Does this happen on a product build or non-product build? Please post all your ./configure flags. Also please post the output of: DUMPBIN /IMPORTS C:\path\to\odbcconfig.exe (you might need to run MSVC's VCVARS.BAT first)
(In reply to Peter from comment #3) > Hi Matthias, > > are you the only one with this error? > Have you tried to fix this like suggested here: > > https://errortools.com/windows/fix-runtime-error-r6034/ Hi Peter, Damjan could reproduce it, see also i127732.
(In reply to damjan from comment #4) > Does this happen on a product build or non-product build? > > Please post all your ./configure flags. > > Also please post the output of: > > DUMPBIN /IMPORTS C:\path\to\odbcconfig.exe > > (you might need to run MSVC's VCVARS.BAT first) This happens with trunk and 42x so I wouldn't call it a production build. But the configure is almost identical to a release version: http://svn.apache.org/repos/asf/openoffice/devtools/build-scripts/4.2.0-Dev1/wntmsci/ReadMe.txt dumpbin.exe gives me an error, see issue 127732.
Looking at the log from our Windows buildbot: https://ci.apache.org/projects/openoffice/buildlogs/win/main/dbaccess/wntmsci12.pro/misc/logs/prj.txt esp. this line seems wrong: R=/cygdrive/e/slave14/aoo-win7/build && S=$R/main && O=$S/solver/450/wntmsci12.pro && W=$O/workdir && mkdir -p $O/bin/ && /usr/bin/cp --remove-destination -R -P --force --preserve=timestamps $W/LinkTarget/Executable/odbcconfig.exe $O/bin/odbcconfig.exe && mkdir -p $O/bin/ && /usr/bin/cp --remove-destination -R -P --force --preserve=timestamps $W/LinkTarget/Executable//odbcconfig.exe.manifest $O/bin/odbcconfig.exe.manifest Where does the double slash (//) come from?
We should get hold of the odbcconfig.exe binary from before and after the commit that broke it, and examine its layout (imports, sections, symbols, etc.). There must be some difference there.
Funny fact: After building odbcconfig.exe in main\solver\420\wntmsci12.pro\bin starts without problem and shows the expected dialog.