Google Hangouts (!) on FreeBSD

Johannes Meixner xmj at chaot.net
Fri Mar 28 07:31:08 UTC 2014


Hi everyone,

I've been working on porting Google Hangouts to FreeBSD. It seems to be possible
using the CentOS base/non-base ports I published at
https://github.com/xmj/linux-ports.

I ldd'd the relevant lib*.so files of the plugin, and all necessary libraries
are provided by the ports I uploaded.

I can hook Hangouts into Firefox' Plugin list (http://xmj.me/freebsd/google_hangout.png)
with a few modifications to ports/www/nspluginwrapper/files/patch-src__npw-config.c,
yet when trying to actually run a videochat I don't really get anywhere.

Here's the output of linux_ktrace'ing the npviewer.bin process that's responsible
for loading the 32-bit plugin:


1549 npviewer.bin RET   write 67/0x43
1549 npviewer.bin CALL  linux_fstat64(0x3,0xffff9be8)
1549 npviewer.bin UNKNOWN(8)    1549 npviewer.bin RET   linux_fstat64 0
1549 npviewer.bin CALL  linux_llseek(0x3,0,0x450d6d,0xffff9b74,0)
1549 npviewer.bin RET   linux_llseek 0
1549 npviewer.bin CALL  write(0x3,0x28fd7000,0x3c)
1549 npviewer.bin GIO   fd 3 wrote 60 bytes
            "*** NSPlugin Viewer  ***   NPN_UserAgent instance=0x80bdd70 " 
1549 npviewer.bin RET   write 60/0x3c
1549 npviewer.bin CALL linux_fstat64(0x3,0xffff9be8)
1549 npviewer.bin UNKNOWN(8)    1549 npviewer.bin RET   linux_fstat64 0
1549 npviewer.bin CALL linux_llseek(0x3,0,0x450da9,0xffff9b74,0)
1549 npviewer.bin RET   linux_llseek 0 
1549 npviewer.bin CALL write(0x3,0x28fd7000,0x79)
1549 npviewer.bin GIO   fd 3 wrote 121 bytes
            "*** NSPlugin Viewer  *** NPN_UserAgent return: 'Mozilla/5


When runnig firefox with
`NPW_DEBUG=1 NPW_LOG=nspluginwrapper.log firefox 2>&1`

I get

[4877:310] Error(flutemessagelistener.cc:80): Unable to bind socket handle named o1d1549-15000
[4877:310] Error(plugin.cc:154): Couldn't initialize flute message listener.  Quitting.
[4877:311] [o1d1549-15000] Shutting down instance.
[4877:311] [o1d1549-15000] Client disconnected.


Can anyone lend me a hand and tell me what other steps I could try to debug this
plugin?


Best,
-J

-- 
xmj at chaot.net
`http://xmj.me
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-emulation/attachments/20140328/9967935b/attachment.sig>


More information about the freebsd-emulation mailing list