VectorLinux
April 24, 2014, 12:08:19 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: How To Resolve Seg Faults with Mozilla Apps and Scim  (Read 5703 times)
JohnB316
Administrator
Vectorian
*****
Posts: 1346


Registered Linux User #386728


« on: January 27, 2008, 08:45:14 am »

Given that a couple of forum posts in other threads have referenced segmentation faults with Firefox from our repository and/or prebuilt binaries supplied by mozilla.org, I thought it would be appropriate to place this how-to here so that it can be found easily.

There is a known issue with Mozilla-based applications (Firefox, Seamonkey, Thunderbird, etc.) and scim that causes segmentation fault errors. The issue is not restricted to VL, but is common to all Linux distributions. The problem is discussed in some detail at http://anti.teamidiot.de/nei/2007/04/on_c_abis_or_debian_scim_input/

There are basically two ways to resolve this issue:
1) Use the scim-bridge input method for Firefox only. The author of the above post prefers that method, as it avoids having to recompile Firefox with scim on the box as a dependency. He also suggests using a wrapper to firefox to set up the environment. The following wrapper script will work with VL:

Code:
[ x"$GTK_IM_MODULE" = "xscim" ] && export GTK_IM_MODULE="$GTK_IM_MODULE-bridge"
/usr/bin/firefox "$@"

Change the name of the app to either seamonkey or whatever other mozilla app in the example above for your situation. Also make sure that you specify the correct path for the firefox, etc., executable. Finally, make sure that the wrapper script you're writing is set to be executable (permissions 755).

2) The second option is to compile Firefox, etc.,  yourself from source, ensuring that scim is installed on your box prior to building Firefox. If you choose to go that way, then the build scripts used to build Firefox and other Mozilla-based apps are in our repository in the sources tree.

Hope this helps.
John
« Last Edit: January 28, 2008, 08:17:05 pm by JohnB316 » Logged

VL 6.0 SOHO latest alpha on one box, VL 5.9 Lite on the other.
exeterdad
Packager
Vectorian
****
Posts: 2046



« Reply #1 on: January 27, 2008, 03:43:47 pm »

JohnB316,

The "from source" build scripts for firefox have been replaced in our sources tree.  The scripts are for the official Mozilla builds to be repacked.

With uelsk8s permission I made the scripts you are speaking of public here.
http://vectorlinux.osuosl.org/exeterdad/mozilla-builds/

Firefox is there now, and the others will be added when I can find them on one of these partitions.
Feel free to add the link and delete my post  Smiley
Logged
JohnB316
Administrator
Vectorian
*****
Posts: 1346


Registered Linux User #386728


« Reply #2 on: January 28, 2008, 08:15:38 pm »

exeterdad,

No need to delete your post - the fix for the scim issue will also work with prebuilt Firefox, etc., binaries as well. ;-)

HTH,
John
Logged

VL 6.0 SOHO latest alpha on one box, VL 5.9 Lite on the other.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!