IRC Log Viewer » #firebreath » 2015-09-10

IRC Nick Time (GMT-7) Message
matra 09:09 HI, any instruction how to link against libcrt instead of mozalloc, because of the Firefox 4.0 changes?
taxilian 09:09 ...
I haven't the slightest idea what you're talkinga bout
firefox 4.0 was released *years* ago
and FireBreath and NPAPI has nothing to do with mozalloc
are you confusing this with a channel dedicated to extensions, perhaps?
are you confusing this with a channel dedicated to extensions, perhaps?
matra 09:09 Sorry. I am talking about Firefox 40.0.3
taxilian 09:09 that makes a little more sense
matra 09:09 The mozalloc.lib was removed from FF 40.0.3. See: https://bugzilla.mozilla.org/show_bug.cgi?id=1168291
taxilian 09:09 okay; and how does that relate to a firebreath or npapi plugin?
matra 09:09 As condequence, the Firefox 40 on Linux and Mac refuses to load the plugin
taxilian 09:09 question before this conversation goes any further: do you know the difference between a plugin and an add-on or extension?
question before this conversation goes any further: do you know the difference between a plugin and an add-on or extension?
matra 09:09 The error is: Loadplugin: failed to initialized shared library /home/plugins/npmyPlugin.so [libmozalloc.so: can not open shared objet file: No such file or directory
taxilian 09:09 huh
huh
that does sound like it's a plugin
that does sound like it's a plugin
matra 09:09 I am using the plugin (npMyPlugin.so)
taxilian 09:09 are you linking against xulrunner or anything?
are you linking against xulrunner or anything?
matra 09:09 I am linking against the following files from xulrunnder: libnns3.so libmozalloc.so
taxilian 09:09 why are you linking against xulrunner?
matra 09:09 My plugin uses functions from libnss3.so
taxilian 09:09 I know nothing about libnss3.so
but linking against xulrunner is where your issue comes from
matra 09:09 nss3 is Netscape Security Library - it contains cryptographic functions that I need
is there a way to avoid xulrunner?
taxilian 09:09 pull the cryptographic functions from elsewhere?
might be that nss3 is part of https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSPR NSPR
matra 09:09 That's one option, but I would rather reuse existing code. The problem with current code is, that if I am not linking agains mozalloc.lib, the linker fails, because it can not find nre() and delete() operators that are redirected. Example: operator delete(void)* id redirected to moz_free() which can not be found by linker
taxilian 09:09 the problem with the current code is that you're linking against firefox and it changed
that's not a plugin issue; it's not related to Firebreath or npapi in any direct way
you might be able to find another solution -- I don't know -- but as long as you're depending on firefox and using libraries that you expect it to have installed, you're going to have issues like this if it ever updates
matra 09:09 You are probably right :-)
taxilian 09:09 it's not something that I would personally ever choose to do, but I imagine that if you work at it hard enough you can likely find a way to make it work
I wish you luck, though =]