Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

Mozilla Weave broken because of crypto

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
dougm
n00b
n00b
Posts: 64
Joined: Tue Sep 30, 2003 8:20 pm
Location: France

Mozilla Weave broken because of crypto

  • Quote

Post by dougm » Tue Aug 19, 2008 4:02 pm

Hi,

I tried to install the Mozilla Weave firefox extension on my Gentoo system, and after restarting firefox, it tells me that there is a problem with the crypto in this installation. I did some searching, and the same problem pops up in Ubuntu when one of two crypto libraries aren't installed (nss, and another), but I have both installed. In addition, I saw some reference to needing to have at least Firefox 3.0.1 (I orignally had 3.0 rc1), but I upgraded to 3.0.1 and I still have the same problem. Has anyone else come across this?
Top
Dinini
Apprentice
Apprentice
Posts: 236
Joined: Wed Jun 11, 2003 12:22 am

  • Quote

Post by Dinini » Thu Aug 21, 2008 1:53 pm

The same error message occurs if you are trying to run the 32bit addon in a 64bit browser.

What platform are you using?

x86 (or firefox-bin) should work without modification (it works with firefox-bin, I don't run a 32bit system so I can't swear it works)


amd64 requires you to compile the addon yourself (the mozilla package only includes 32 bit programs which can't talk to the 64bit system libraries) it does take a couple of minor changes to the makefile, just ask if you need more info.
"There are nine and sixty ways of constructing tribal lays,
And every single one of them is right!" - Rudyard Kipling "In the Neolithic Age"
Top
dougm
n00b
n00b
Posts: 64
Joined: Tue Sep 30, 2003 8:20 pm
Location: France

  • Quote

Post by dougm » Thu Aug 21, 2008 2:04 pm

Ahh, and that would be the clue... I'm running the 64-bit browser compiled myself... I'll give it a shot myself, and then mention back if I get stuck... Is there an ebuild somewhere for the extension?
Top
Dinini
Apprentice
Apprentice
Posts: 236
Joined: Wed Jun 11, 2003 12:22 am

  • Quote

Post by Dinini » Thu Aug 21, 2008 3:12 pm

https://wiki.mozilla.org/Labs/Weave/Building

from memory (so check the preceeding link)

(source code is kept in mercurial, so either emerge it or download a source snapshot.)

checkout source: hg clone http://hg.mozilla.org/labs/weave

cd weave

edit src/Makefile (about half way into the file, you'll see a "headers =" section, change "-I/$(sdkdir)/include/nss \" to "-I/usr/include/nss \" and "-I$(sdkdir)/include/nspr \" to "-I/usr/include/nspr \" then a couple lines later there's "libdirs :=" line, add "/usr/lib/nspr /usr/lib/nss" to the end of that line.

edit install.rdf (verify there's a line <em:targetPlatform>Linux_x86_64-gcc3</em:targetPlatform> [something like that - the Linux_x86_64-gcc3 part is correct, just dont' trust my memory on the tags] add it if it doesn't exist.)

compile source: make sdkdir=/usr/lib64/xulrunner-1.9 xpi

install addon: firefox weave-Linux.xpi

Hope that helps!
"There are nine and sixty ways of constructing tribal lays,
And every single one of them is right!" - Rudyard Kipling "In the Neolithic Age"
Top
Dinini
Apprentice
Apprentice
Posts: 236
Joined: Wed Jun 11, 2003 12:22 am

  • Quote

Post by Dinini » Thu Aug 21, 2008 3:44 pm

Additional notes:

The code is NOT sandbox friendly, I need to compile as root since it's adding files to the sdkdir. :(

to keep the code up to date:

cd weave
hg pull
hg update
make sdkdir=/usr/lib64/xulrunner-1.9 clean
then build again :)

diff of the changes to src/Makefile

Code: Select all

diff -r 53e25c0c7e2e src/Makefile
--- a/src/Makefile	Wed Aug 20 18:24:08 2008 -0700
+++ b/src/Makefile	Thu Aug 21 10:36:55 2008 -0500
@@ -155,15 +155,15 @@
 
 headers = -I$(sdkdir)/include \
           -I$(sdkdir)/include/system_wrappers \
-          -I$(sdkdir)/include/nss \
+          -I/usr/include/nss \
           -I$(sdkdir)/include/xpcom \
           -I$(sdkdir)/include/string \
           -I$(sdkdir)/include/pipnss \
-          -I$(sdkdir)/include/nspr \
+          -I/usr/include/nspr \
           -I$(sdkdir)/sdk/include
 
 # libraries
-libdirs := $(sdkdir)/lib $(sdkdir)/bin
+libdirs := $(sdkdir)/lib $(sdkdir)/bin /usr/lib/nspr /usr/lib/nss
 libs := xpcomglue_s xpcom nspr4 \
         crmf smime3 ssl3 nss3 nssutil3 \
         plds4 plc4
"There are nine and sixty ways of constructing tribal lays,
And every single one of them is right!" - Rudyard Kipling "In the Neolithic Age"
Top
dougm
n00b
n00b
Posts: 64
Joined: Tue Sep 30, 2003 8:20 pm
Location: France

  • Quote

Post by dougm » Thu Aug 21, 2008 7:26 pm

Thanks, your help got me going and I have it installed now. For anyone else who wants to do this without a hassle, I created an ebuild and submitted it to Gentoo at [bug=235397]http://bugs.gentoo.org/show_bug.cgi?id=235397[/bug]
Top
Post Reply

6 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic