Discussion:
[Libreoffice-bugs] [Bug 91966] New: LibreOffice 5 (64-bit) cannot load a UNO component on Windows OS
b***@bugs.documentfoundation.org
2015-06-09 13:28:20 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=91966

Bug ID: 91966
Summary: LibreOffice 5 (64-bit) cannot load a UNO component
on Windows OS
Product: LibreOffice
Version: 5.0.0.0.beta1
Hardware: x86-64 (AMD64)
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: LibreOffice
Assignee: libreoffice-***@lists.freedesktop.org
Reporter: ***@gmail.com

The 64-bit version of LibreOffice 5 cannot load a UNO component on Windows OS.
LibreOffice 5 display the following message «cannot get environments». The
problem doesn’t appear on the 32 bits version of LibrerOffice 5. My code uses
«CPPU_STRINGIFY( msci )» to set the name of the environment.
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2015-06-09 13:29:58 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=91966

--- Comment #1 from ***@gmail.com ---
Created attachment 116419
--> https://bugs.documentfoundation.org/attachment.cgi?id=116419&action=edit
the error message
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2015-06-11 15:11:10 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=91966

Beluga <***@suomi24.fi> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@suomi24.fi

--- Comment #2 from Beluga <***@suomi24.fi> ---
How about beta3, does it still have the problem
http://dev-builds.libreoffice.org/pre-releases/win/x86_64/
It's about half way through the list,
http://dev-builds.libreoffice.org/pre-releases/win/x86_64/LibreOfficeDev_5.0.0.0.beta3_Win_x64.msi
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2015-06-12 12:16:49 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=91966

--- Comment #3 from ***@gmail.com ---
Yes, it occurs with beta 3.
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2015-06-12 12:17:54 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=91966

--- Comment #4 from ***@gmail.com ---
Created attachment 116483
--> https://bugs.documentfoundation.org/attachment.cgi?id=116483&action=edit
the error message
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2015-07-31 15:49:59 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=91966

--- Comment #5 from ***@gmail.com ---
The problem still there with LibreOffice 5.0.0.4.

Is it possible to install an extension with a UNO componant generated with C ++
code in LibreOffice 5 (64-bit)?

The problem seems to be that LibreOffice does not recognize the "MSCI"
environment.
Reference: export function component_getImplementationEnvironment

Here tested conguration
- Windows 7 (64 bits)
- Visual Studio 2013
- LibreOffice 5.0.0.4 (64 bits)
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2016-09-08 21:32:32 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=91966

--- Comment #6 from Victor Laskurain <***@binovo.es> ---
The problem is still there with LibreOffice 5.2.1.2.

testdruide's diagnostic is not quite right though. The problem is not that
LibreOffice does not recognize msci, rather that msci is not the right value.
The right value for windows_x86_64 happens to be mscx. The
CPPU_CURRENT_LANGUAGE_BINDING_NAME should the correct value at any time but in
the 64 bit sdk for Windows its value is msci instead of the correct mscx.

For the time being I have been able to fix my extensions changing the
component_getImplementationEnvironment function from this:

SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment(
const sal_Char ** ppEnvTypeName, uno_Environment ** ppEnv )
{
*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}

to this:

SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment(
const sal_Char ** ppEnvTypeName, uno_Environment ** ppEnv )
{
#if _WIN64
*ppEnvTypeName = "mscx";
#else
*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
#endif
}
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2016-09-12 13:46:27 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=91966

Buovjaga <***@suomi24.fi> changed:

What |Removed |Added
----------------------------------------------------------------------------
Keywords| |implementationError
Status|UNCONFIRMED |NEW
CC| |***@binovo.es
Component|LibreOffice |sdk
Ever confirmed|0 |1

--- Comment #7 from Buovjaga <***@suomi24.fi> ---
NEW per comment 6.
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2016-09-12 14:08:27 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=91966

--- Comment #8 from Tor Lillqvist <***@iki.fi> ---
My guess is that simply changing the -DCPPU_ENV=msci to -DCPPU_ENV=$(CPPU_ENV)
in odk/settings/settings.mk might help
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2016-09-12 14:11:30 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=91966

Commit Notification <libreoffice-***@lists.freedesktop.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Whiteboard| |target:5.3.0
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2016-09-12 14:11:46 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=91966

--- Comment #9 from Commit Notification <libreoffice-***@lists.freedesktop.org> ---
Stephan Bergmann committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=3aaa820446f1ad3d3b0ddc557238b6fb3496dd54

tdf#91966: In SDK, set CPPU_ENV=mscx for 64-bit Windows

It will be available in 5.3.0.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2016-09-12 14:16:15 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=91966

Stephan Bergmann <***@redhat.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |***@redhat.com
Resolution|--- |FIXED
Assignee|libreoffice-***@lists.free |***@redhat.com
|desktop.org |

--- Comment #10 from Stephan Bergmann <***@redhat.com> ---
(In reply to Commit Notification from comment #9)
Post by b***@bugs.documentfoundation.org
Stephan Bergmann committed a patch related to this issue.
http://cgit.freedesktop.org/libreoffice/core/commit/
?id=3aaa820446f1ad3d3b0ddc557238b6fb3496dd54
tdf#91966: In SDK, set CPPU_ENV=mscx for 64-bit Windows
If someone confirms that that (blind) fix to the SDK's settings/settings.mk
actually helps, it can be backported to 5.1.6/5.2.2.
--
You are receiving this mail because:
You are the assignee for the bug.
Loading...