Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Extensions not working for Firefox[SOLVED-partially]

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
14 posts • Page 1 of 1
Author
Message
darken
n00b
n00b
User avatar
Posts: 52
Joined: Wed Jan 04, 2006 9:31 am

Extensions not working for Firefox[SOLVED-partially]

  • Quote

Post by darken » Tue Mar 06, 2007 9:33 am

I have a problem, and it's a big one. When I first installed gentoo from the live cd, I had firefox already compiles. I installed a couple of extensions that worked. But when I tried Tidy for Firefox, the next time I restarted Firefox, I got a page saying that tidy could not start.
I got the version from mozilla.com, already compiled for linux, and guess what? It worked. The other day I compiled 2.0.0.2 version hoping that it will work. And surprise, it didn't :(
I recompiled it with mozbranding use flag set. It did not work. Firefox also does not work with it.
And yes, I removed .mozilla dir, starting from scratch.
Anyone has an idea? I searched the forum and did not find an answer.
Thanks in advance.
Last edited by darken on Mon Mar 12, 2007 2:04 pm, edited 2 times in total.
Top
red-wolf76
l33t
l33t
User avatar
Posts: 714
Joined: Wed Apr 13, 2005 6:20 pm
Location: Rhein-Main Area

  • Quote

Post by red-wolf76 » Tue Mar 06, 2007 11:54 am

What settings are you using when compiling firefox? Did you try toning down CFLAGS? What's your output for emerge --info
Also, try emerging firefox-bin instead (if that isn't what you meant by "I got the version from mozilla.com").
0mFg, G3nt00 r0X0r$ T3h B1g!1111 ;)

Use sane CFLAGS! If for no other reason, do it for the lulz!
Top
darken
n00b
n00b
User avatar
Posts: 52
Joined: Wed Jan 04, 2006 9:31 am

  • Quote

Post by darken » Tue Mar 06, 2007 1:49 pm

My use flags are:

Code: Select all

gnome java mozbranding moznopango xforms xprint -debug -filepicker -ipv6 -mozdevelop restrict-javascript -xinerama
Output from emerge --info:

Code: Select all

Portage 2.1.2-r12 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r9 i686)
=================================================================
System uname: 2.6.17-gentoo-r9 i686 AMD Athlon(tm) XP 2200+
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 28 Feb 2007 15:00:09 +0000
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=athlon-xp -O2 -pipe"
DISTDIR="/distfiles/"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.roedu.net/pub/mirrors/gentoo.org/ http://ftp.romnet.org/gentoo/ "
MAKEOPTS=""
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-* --prune-empty-dirs"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aiglx alsa apache2 arts avi berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dlloader dri dvd dvdr eds emboss encode esd fam firefox fortran gdbm gif glitz gnome gpm gtk hal iconv isdnlog jpeg jpeg2k kde kdehiddenvisibility lcms ldap libg++ mad midi mikmod mmx mng mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre pdf pdflib perl png ppds pppd python qt3 qt4 quicktime readline reflection sdl session spell spl sse ssl svg tcpd tcpdtruetype tiff truetype truetype-fonts type1-fonts udev unicode vorbis win32codecs wmf x86 xml xorg xv zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="savage nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
P.S.:
firefox-bin works ok, but the interface fonts look bery bad, same as with the last version, with moznopango set.
Top
red-wolf76
l33t
l33t
User avatar
Posts: 714
Joined: Wed Apr 13, 2005 6:20 pm
Location: Rhein-Main Area

  • Quote

Post by red-wolf76 » Tue Mar 06, 2007 2:36 pm

Ok, I can reassure you. It's not your CFLAGS! Probably not the use flags either. I found something on the website, though:
3. The extension does not work on Linux ( ex: Fedora Core 4, Mandriva 2006 )
Symptoms: The icon in the browser is always green and the text is -/-. Or an error windows appears after installing the extension in version 0.77 and after.

Cause: When installing the extension, you are using a C library that I compiled with a older LIBC++ version than the one distributed with Fedora Core 4. Unhapilly both are incompatible. Another symptom is that if you download the real Firefox compiled in the same way from the Mozilla.org website, it gives this error.

error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

[...]

On Gentoo
It seems that installing
> emerge libstdc++
solves the issue
Maybe this helps...
0mFg, G3nt00 r0X0r$ T3h B1g!1111 ;)

Use sane CFLAGS! If for no other reason, do it for the lulz!
Top
darken
n00b
n00b
User avatar
Posts: 52
Joined: Wed Jan 04, 2006 9:31 am

  • Quote

Post by darken » Tue Mar 06, 2007 3:00 pm

Thanks for the interest red-wolf76, but i have sys-libs/libstdc++-v3-3.3.6 installed, and the symlink /usr/lib/libstdc++-v3/libstdc++.so.5 -> libstdc++.so.5.0.7 in its place.
I was thinking that it could be some hidden settings from about:config. Any idea?
Last edited by darken on Tue Mar 06, 2007 3:07 pm, edited 2 times in total.
Top
red-wolf76
l33t
l33t
User avatar
Posts: 714
Joined: Wed Apr 13, 2005 6:20 pm
Location: Rhein-Main Area

  • Quote

Post by red-wolf76 » Tue Mar 06, 2007 3:05 pm

Yes, but maybe it's necessary to recompile it... and then firefox afterwards. I've had strange occurrences be solved by something like this, although granted it's not been firefox or .xpi-related before.
0mFg, G3nt00 r0X0r$ T3h B1g!1111 ;)

Use sane CFLAGS! If for no other reason, do it for the lulz!
Top
darken
n00b
n00b
User avatar
Posts: 52
Joined: Wed Jan 04, 2006 9:31 am

  • Quote

Post by darken » Tue Mar 06, 2007 3:07 pm

I found out something interesting: I did ldd on firefox-bin from mozilla-firefox-bin and guess what? it's linked against /usr/lib/libstdc++-v3/libstdc++.so.5
while the one I emerged is compiled against /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libstdc++.so.6.
Top
red-wolf76
l33t
l33t
User avatar
Posts: 714
Joined: Wed Apr 13, 2005 6:20 pm
Location: Rhein-Main Area

  • Quote

Post by red-wolf76 » Tue Mar 06, 2007 3:19 pm

Ah, so something is afoot here, Watson! 8)

It's probably dirty hacking that will send your soul to hell, but have you tried symlinking?
0mFg, G3nt00 r0X0r$ T3h B1g!1111 ;)

Use sane CFLAGS! If for no other reason, do it for the lulz!
Top
darken
n00b
n00b
User avatar
Posts: 52
Joined: Wed Jan 04, 2006 9:31 am

  • Quote

Post by darken » Tue Mar 06, 2007 3:55 pm

By linking I presume you mean ln -s /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libstdc++.so.6 libstdc++.so.5
Yes, I did it but no success. I even got the sources for the plugin but they are a mess, the scripts don't work.
I guess I'l get back to the bin version :(
Top
darken
n00b
n00b
User avatar
Posts: 52
Joined: Wed Jan 04, 2006 9:31 am

  • Quote

Post by darken » Sun Mar 11, 2007 12:00 pm

I found the solution for this problem. I've done a bit of a search on the internet, and I found this link:
http://groups.google.com/group/firebug/ ... 8e3a829ceb

Then all was clear! I had to enable mozdevelop USE flag, so firefox can be built with developer support.
As I type this lines, the compile is in progress, but I have no doubt that at least firebug will work.
Top
red-wolf76
l33t
l33t
User avatar
Posts: 714
Joined: Wed Apr 13, 2005 6:20 pm
Location: Rhein-Main Area

  • Quote

Post by red-wolf76 » Sun Mar 11, 2007 3:50 pm

Yay for google! :D

Strange, but once you know it, it seems ironically logical. :oops:
0mFg, G3nt00 r0X0r$ T3h B1g!1111 ;)

Use sane CFLAGS! If for no other reason, do it for the lulz!
Top
darken
n00b
n00b
User avatar
Posts: 52
Joined: Wed Jan 04, 2006 9:31 am

  • Quote

Post by darken » Mon Mar 12, 2007 2:02 pm

Sorry, I was hasty. The solution worked only for my home Gentoo install. At work, I recompiled it again TWICE, but it still doesn't work. Look what about:buildconfig shows:

Code: Select all

about:buildconfig

Build platform
target
i686-pc-linux-gnu

Build tools
Compiler 	Version 	Compiler flags
i686-pc-linux-gnu-gcc 	gcc version 4.1.1 (Gentoo 4.1.1) 	-Wall -W -Wno-unused -Wpointer-arith -Wcast-align -Wno-long-long -march=athlon-xp -pipe -Wno-return-type -w -pthread -pipe
i686-pc-linux-gnu-g++ 	gcc version 4.1.1 (Gentoo 4.1.1) 	-fno-rtti -fno-handle-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -march=athlon-xp -pipe -Wno-return-type -w -fshort-wchar -pthread -pipe -DARON_WAS_HERE
Configure arguments
--enable-application=browser --enable-optimize=-O2 --disable-installer --disable-pedantic --enable-crypto --with-system-jpeg --with-system-png --with-system-zlib --disable-updater --enable-default-toolkit=gtk2 --enable-pango --enable-svg --enable-svg-renderer=cairo --enable-system-cairo --disable-strip --disable-strip-libs --enable-single-profile --disable-profilesharing --disable-profilelocking --disable-ipv6 --disable-xinerama --enable-xprint --disable-freetype2 --disable-debug --disable-tests --enable-reorder --enable-elf-dynstr-gc --disable-gnomevfs --disable-gnomeui --enable-application=browser --enable-image-encoder=all --enable-canvas --with-system-nspr --with-system-nss --enable-official-branding --enable-oji --enable-mathml --enable-jsd --enable-xpctools --with-default-mozilla-five-home=/usr/lib/mozilla-firefox --enable-extensions=default,xforms,schema-validation,typeaheadfind,venkman --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=i686-pc-linux-gnu 
Look at this: -DARON_WAS_HERE. What the hell is this?
Top
red-wolf76
l33t
l33t
User avatar
Posts: 714
Joined: Wed Apr 13, 2005 6:20 pm
Location: Rhein-Main Area

  • Quote

Post by red-wolf76 » Mon Mar 12, 2007 4:34 pm

Obviously someone called Daron. In ur stuff. Doing thingz. :lol:

No, honestly, mate... I haven't got a clue, but it wouldn't be beyond the programmer to leave something like that in the code as a scent mark.
0mFg, G3nt00 r0X0r$ T3h B1g!1111 ;)

Use sane CFLAGS! If for no other reason, do it for the lulz!
Top
darken
n00b
n00b
User avatar
Posts: 52
Joined: Wed Jan 04, 2006 9:31 am

  • Quote

Post by darken » Mon Mar 12, 2007 5:45 pm

That line does not refer to a 'Daron' as you well know. It's a preprocessor define and it's here because of these lines in the ebuild file:

Code: Select all

       ####################################
        #
        #  Configure and build
        #
        ####################################

        CPPFLAGS="${CPPFLAGS} -DARON_WAS_HERE" \
        CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \
        econf || die

        # It would be great if we could pass these in via CPPFLAGS or CFLAGS prior
        # to econf, but the quotes cause configure to fail.
        sed -i -e \
                's|-DARON_WAS_HERE|-DGENTOO_NSPLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsplugins\\\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\\\"/usr/'"$(
get_libdir)"'/nsbrowser/plugins\\\"|' \
Now, I would like to ask this Aron just a thing: please, quit adding nonsense in the ebuilds and make them work, or at least give me a clue why they don't work as they should on all the systems.
Anyway, I'm doing an

Code: Select all

emerge system
on my work system now and I hope that will repair some things. If not, the next time I'll rebuild firefox will be the sixth failed attempt.
And btw, I also go in many places, but I don't write my name in people's walls.
Top
Post Reply

14 posts • Page 1 of 1

Return to “Networking & Security”

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