[jitsi-dev] Re: [jitsi~svn:10502] Implements contact details edition and notification for outlook.


#1

Hey Vincent

Something went wrong here. I cannot load the native dll anymore, it throws the following exception:
java.lang.UnsatisfiedLinkError: jitsi\lib\native\windows\jmsoutlookaddrbook.dll: The specified procedure could not be found

When I open the dll in the Dependency Walker it also greets me with error messages.
Could you please look at that?

I'll commit a short patch that logs the exception. In the current state it is just thrown back to Felix and nothing is seen in the log.

What does that change do anyway? I don't get it from the log message...

Ingo

···

-----Original Message-----
From: vincent_lucas@java.net [mailto:vincent_lucas@java.net]
Sent: Mittwoch, 27. Februar 2013 03:58
To: commits@jitsi.java.net
Subject: [jitsi~svn:10502] Implements contact details edition and
notification for outlook.
Project: jitsi
Repository: svn
Revision: 10502
Author: vincent_lucas
Date: 2013-02-27 02:57:35 UTC
Link:

Log Message:
------------
Implements contact details edition and notification for outlook.

Revisions:
----------
10502


#2

Hello Ingo,

Thank you for rising this issue. It looks like a cross compilation problem for the 32 bit "jmsoutlookaddrbook.dll". I have not found a way to deal with it yet, but I will keep you informed.

Regards,
Vincent

···

On 2/27/13 3:12 PM, Ingo Bauersachs wrote:

Hey Vincent

Something went wrong here. I cannot load the native dll anymore, it throws the following exception:
java.lang.UnsatisfiedLinkError: jitsi\lib\native\windows\jmsoutlookaddrbook.dll: The specified procedure could not be found

When I open the dll in the Dependency Walker it also greets me with error messages.
Could you please look at that?

I'll commit a short patch that logs the exception. In the current state it is just thrown back to Felix and nothing is seen in the log.

What does that change do anyway? I don't get it from the log message...

Ingo

-----Original Message-----
From: vincent_lucas@java.net [mailto:vincent_lucas@java.net]
Sent: Mittwoch, 27. Februar 2013 03:58
To: commits@jitsi.java.net
Subject: [jitsi~svn:10502] Implements contact details edition and
notification for outlook.
Project: jitsi
Repository: svn
Revision: 10502
Author: vincent_lucas
Date: 2013-02-27 02:57:35 UTC
Link:

Log Message:
------------
Implements contact details edition and notification for outlook.

Revisions:
----------
10502

--
Vincent Lucas, Ph.D. Jitsi developer
chenzo@jitsi.org http://jitsi.org


#3

FYI everyone, we are putting 2.0 on hold until we fix or revert this
issue. It should still happen this week.

Cheers,
Emil

···

On 27.02.13, 19:29, Vincent Lucas wrote:

Hello Ingo,

Thank you for rising this issue. It looks like a cross compilation
problem for the 32 bit "jmsoutlookaddrbook.dll". I have not found a way
to deal with it yet, but I will keep you informed.

Regards,
Vincent

On 2/27/13 3:12 PM, Ingo Bauersachs wrote:

Hey Vincent

Something went wrong here. I cannot load the native dll anymore, it throws the following exception:
java.lang.UnsatisfiedLinkError: jitsi\lib\native\windows\jmsoutlookaddrbook.dll: The specified procedure could not be found

When I open the dll in the Dependency Walker it also greets me with error messages.
Could you please look at that?

I'll commit a short patch that logs the exception. In the current state it is just thrown back to Felix and nothing is seen in the log.

What does that change do anyway? I don't get it from the log message...

Ingo

-----Original Message-----
From: vincent_lucas@java.net [mailto:vincent_lucas@java.net]
Sent: Mittwoch, 27. Februar 2013 03:58
To: commits@jitsi.java.net
Subject: [jitsi~svn:10502] Implements contact details edition and
notification for outlook.
Project: jitsi
Repository: svn
Revision: 10502
Author: vincent_lucas
Date: 2013-02-27 02:57:35 UTC
Link:

Log Message:
------------
Implements contact details edition and notification for outlook.

Revisions:
----------
10502

--
https://jitsi.org


#4

I have some more findings:
The libmapi32.a of the win32api-project is broken ([0]). The run dlltool with the -k switch, removing the @x from the function name. As the mapi32.dll only exports it with @x: nogo without it. This is what we see in the Dependency Walker. So I created a libmapi32.a without that -k switch, built the jmsoutlookaddrbook.dll (Dependency Walker is now happy about the mapi-imports) and ran Jitsi. Now it gets /really/ weird: it complains with java.lang.UnsatisfiedLinkError: no LocalhostRetriever in java.library.path.
I'm lost...

The only idea I have left: you were able to build that thing without <compilerarg value="-fno-exceptions"/>, maybe that’s the culprit for messing up with other, untouched DLLs. I'm attaching the libmapi32.a I've created (32bit) and the according makefile-patch of the source-package [1] in case you want to play with it.

Another point to note: Lyubomir's version didn't not have a compile time dependency on mapi32, but loaded all MAPI stuff through GetProcAddress. You might want to do the same because:
- If no Outlook/MAPI is installed, the DLL loading fails
- It would avoid all the fuss about the broken libmapi32.a

Ingo

[0] http://code.metager.de/source/xref/gnupg/gpgol/src/Makefile.am
[1] http://sourceforge.net/projects/mingw/files/MinGW/Base/w32api/w32api-3.17/w32api-3.17-1-mingw32-src.tar.lzma/download

libmapi32.a (119 KB)

libmapi32-no-at-stripping.patch (338 Bytes)

···

-----Original Message-----
From: Vincent Lucas [mailto:chenzo@jitsi.org]
Sent: Mittwoch, 27. Februar 2013 18:30
To: dev@jitsi.java.net
Subject: [jitsi-dev] Re: [jitsi~svn:10502] Implements contact details edition
and notification for outlook.
Hello Ingo,

Thank you for rising this issue. It looks like a cross compilation
problem for the 32 bit "jmsoutlookaddrbook.dll". I have not found a way
to deal with it yet, but I will keep you informed.

Regards,
Vincent

On 2/27/13 3:12 PM, Ingo Bauersachs wrote:

Hey Vincent

Something went wrong here. I cannot load the native dll anymore, it
throws the following exception: java.lang.UnsatisfiedLinkError:

jitsi\lib\native\windows\jmsoutlookaddrbook.dll: The specified procedure
could not be found

When I open the dll in the Dependency Walker it also greets me with
error messages. Could you please look at that?

I'll commit a short patch that logs the exception. In the current state
it is just thrown back to Felix and nothing is seen in the log.

What does that change do anyway? I don't get it from the log message...

Ingo

vincent_lucas@java.net wrote on 2013-02-27: >>> Project: jitsi

Repository: svn
Revision: 10502
Author: vincent_lucas
Date: 2013-02-27 02:57:35 UTC
Link:

Log Message:
------------
Implements contact details edition and notification for outlook.

Revisions:
----------
10502