From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Alex Lai (Scotia Capital)" Newsgroups: gmane.emacs.help Subject: emacs GUI please help Date: Mon, 21 Feb 2011 18:36:37 -0500 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_BDAB2503F626C149AD67860EA418BFB00366EB3AC8sctormail6_" X-Trace: dough.gmane.org 1298383042 25328 80.91.229.12 (22 Feb 2011 13:57:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 Feb 2011 13:57:22 +0000 (UTC) Cc: "Andrei Dragalin \(Scotia Capital\)" , "Quazi Islam \(Scotia Capital\)" , "Mark Giziewicz \(Scotia Capital\)" To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 22 14:57:16 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PrshP-0000Hh-Fm for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Feb 2011 14:57:16 +0100 Original-Received: from localhost ([127.0.0.1]:41808 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Prsas-00087p-Gl for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Feb 2011 08:47:58 -0500 Original-Received: from [140.186.70.92] (port=44438 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrfMQ-0004gB-JV for help-gnu-emacs@gnu.org; Mon, 21 Feb 2011 18:40:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PrfML-0006kb-Ed for help-gnu-emacs@gnu.org; Mon, 21 Feb 2011 18:40:10 -0500 Original-Received: from mx11.scotiacapital.com ([199.166.9.31]:17560) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PrfML-0006kM-7V for help-gnu-emacs@gnu.org; Mon, 21 Feb 2011 18:40:05 -0500 Original-Received: from sbtormlr11.scotia-capital.com by mx11.ScotiaCapital.com with ESMTP id p1LNe2uQ015916 for ; Mon, 21 Feb 2011 18:40:02 -0500 Original-Received: from SCTORHUB101.scglobal.ad.scotiacapital.com (sctorhub101.scglobal.ad.scotiacapital.com [172.20.104.142]) by sbtormlr11.scotiacapital.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id p1LNe0gr030846 for ; Mon, 21 Feb 2011 18:40:02 -0500 Original-Received: from SCTORMAIL6.scglobal.ad.scotiacapital.com ([172.22.31.141]) by SCTORHUB101.scglobal.ad.scotiacapital.com ([::1]) with mapi; Mon, 21 Feb 2011 18:36:39 -0500 Thread-Topic: emacs GUI please help Thread-Index: AcvSIC63xw6BapjETQmXycWsK6tFPw== Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 199.166.9.31 X-Mailman-Approved-At: Tue, 22 Feb 2011 08:35:55 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:79316 Archived-At: --_000_BDAB2503F626C149AD67860EA418BFB00366EB3AC8sctormail6_ Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi emacs gurus, I'm wondering if you would help me with an emacs GUI issue I ha= ve recently when I installed emacs 23.2 for use by our financial engineerin= g group. [Problem] $ DISPLAY=3Dsbtorsvr329:23.0; export DISPLAY $ /usr/local/bin/emacs ld.so.1: emacs: fatal: relocation error: file /usr/local/bin/emacs: symbol = rsvg_handle_get_dimensions: referenced symbol not found Killed $ DISPLAY=3Dsbdevsvr286.dev:148.0; export DISPLAY $ /usr/local/bin/emacs --> successful We use the emacs and dependent packages compiled by sunfreeware.com (SMC* p= ackages) for Solaris 10 sparc. The problem I have with GUI emacs lauch is that the success depends on the= display set. It will launch fine for one display but crash for the other. As you can see below, when the display is set to sbtorsvr329:23.0, the dyna= mic linker try to resolve the symbol rsvg_handle_get_dimensions, which is n= ot defined in librsvg-2.so.2 being used, therefore it crashes; however, wh= en the display is set to bdevsvr286.dev:148.0, the dynamic linker never tr= y to resolve that symbol, as such, the GUI successfully gets launched: -------------------------- $ LD_DEBUG=3Daudit,reloc,symbols $ DISPLAY=3Dsbtorsvr329:23.0; export DISPLAY $ /usr/local/bin/emacs 2>emacs.disp=3Dsbtorsvr329:23.0 = --> emacs GUI crashed Killed $ grep rsvg_handle_get_dimensions emacs.dis=3Dsbtorsvr329:23.0|wc -l 569 $ grep rsvg_handle_get_dimensions emacs.dis=3Dsbtorsvr329:23.0|grep librsvg= -2.so.2 13815: 1: symbol=3Drsvg_handle_get_dimensions; lookup in file=3D/usr/lib/l= ibrsvg-2.so.2 [ ELF ] 13815: 1: symbol=3Drsvg_handle_get_dimensions; lookup in file=3D/usr/lib/l= ibrsvg-2.so.2 [ ELF ] 13815: 1: symbol=3Drsvg_handle_get_dimensions; lookup in file=3D/usr/lib/l= ibrsvg-2.so.2 [ ELF ] 13815: 1: symbol=3Drsvg_handle_get_dimensions; lookup in file=3D/usr/lib/l= ibrsvg-2.so.2 [ ELF ] $ DISPLAY=3Dsbdevsvr286.dev:148.0; export DISPLAY $ /usr/local/bin/emacs 2>emacs.disp=3Dsbdevsvr286.dev:148.0 = --> emacs GUI successfully launched $ grep rsvg_handle_get_dimensions emacs.disp=3Dsbdevsvr286.dev:148.0 -------------------------- $ ldd /usr/local/bin/emacs|grep librsvg librsvg-2.so.2 =3D> /usr/lib/librsvg-2.so.2 The above library is installed with SUNWgnome-base-libs package and doesn't= contain the definition for symbol rsvg_handle_get_dimensions: $ ls -l /usr/lib/librsvg* lrwxrwxrwx 1 root root 18 Oct 17 2006 /usr/lib/librsvg-2.so= -> librsvg-2.so.2.5.0 lrwxrwxrwx 1 root root 18 Oct 17 2006 /usr/lib/librsvg-2.so= .2 -> librsvg-2.so.2.5.0 -rwxr-xr-x 1 root other 112408 Dec 15 2004 /usr/lib/librsvg-2.so= .2.5.0 $ echo $LD_LIBRARY_PATH /usr/lib:/usr/lib/X11 $ /usr/ccs/bin/nm /usr/lib/librsvg-2.so.2 | grep rsvg_handle_get_dimensions= --> return empty The behaviour that emacs resolve the rsvg_handle_get_dimensions symbol for = one display but not for the other is really a mystery for me. Continuing investigation, if I add path /usr/local/lib before /usr/lib, the= n the rsvg_handle_get_dimensions error doesn't appear since the librsvg pro= vided by SMClrsvg contains the definition for the symbol, but then, emacs c= rashes with /usr/local/lib/libgtk-x11-2.0.so.0.1200.0 segmentation fault: $ LD_LIBRARY_PATH=3D/usr/local/lib:/usr/lib:/usr/lib/X11; export LD_LIBRARY= _PATH $ echo $DISPLAY sbdevsvr285.dev:148.0 $ ldd /usr/local/bin/emacs|grep svg librsvg-2.so.2 =3D> /usr/local/lib/librsvg-2.so.2 $ /usr/ccs/bin/nm /usr/local/lib/librsvg-2.so.2 | grep rsvg_handle_get_dime= nsions [1594] | 163320| 1144|FUNC |GLOB |0 |13 |rsvg_handle_get_dime= nsions $ /usr/local/bin/emacs GLib: Cannot convert message: Conversion from character set 'UTF-8' to '646= ' is not supported (emacs:19813): Gtk-WARNING **: Conversion from character set '646' to 'UTF-= 8' is not supported Fatal error (11)Segmentation Fault $ mdb /usr/local/bin/emacs > :r GLib: Cannot convert message: Conversion from character set 'UTF-8' to '646= ' is not supported (emacs:19831): Gtk-WARNING **: Conversion from character set '646' to 'UTF-= 8' is not supported mdb: stop on SIGSEGV mdb: target stopped at: libgtk-x11-2.0.so.0.1200.0`gtk_rc_reparse_all_for_settings+0x17c: ld = [%o5], %g1 > For most of the graphics libraries, there are two versions: the native SUNW= gnome-base-libs version located in /usr/lib and SMCgtk version from sunfree= ware.com located in /usr/local/lib: $ ls -l /usr/local/lib/libgtk-x11* -rw-r--r-- 1 bin bin 834 Dec 9 2007 /usr/local/lib/libgtk= -x11-2.0.la lrwxrwxrwx 1 root root 26 Apr 21 2009 /usr/local/lib/libgtk= -x11-2.0.so -> libgtk-x11-2.0.so.0.1200.0 lrwxrwxrwx 1 root root 26 Apr 21 2009 /usr/local/lib/libgtk= -x11-2.0.so.0 -> libgtk-x11-2.0.so.0.1200.0 -rwxr-xr-x 1 bin bin 4823188 Dec 9 2007 /usr/local/lib/libgtk= -x11-2.0.so.0.1200.0 $ ls -l /usr/lib/libgtk-x11* lrwxrwxrwx 1 root root 25 Oct 17 2006 /usr/lib/libgtk-x11-2= .0.so -> libgtk-x11-2.0.so.0.400.9 lrwxrwxrwx 1 root root 25 Oct 17 2006 /usr/lib/libgtk-x11-2= .0.so.0 -> libgtk-x11-2.0.so.0.400.9 -rwxr-xr-x 1 root other 3617016 Dec 1 2009 /usr/lib/libgtk-x11-2= .0.so.0.400.9 SMCemacs 23.2 requires SMCgtk 2.12.0, which means the correct version of l= ibrary was loaded. I was thinking to try the native libgtk-x11 library, to do this, /usr/lib h= as been be put before /usr/local/lib, but then it will hit the rsvg_handle_= get_dimensions error again. Can someone please help? Regards, Alex Lai Email: Alex_lai@scotiacapital.com Tel: (416)6074789 --- The information transmitted is intended only for the person or entity to wh= ich it is addressed and may contain confidential and/or privileged material= . Any review, re-transmission, dissemination or other use of, or taking of = any action in reliance upon this information by persons or entities other t= han the intended recipient is prohibited. If you received this email in err= or, please contact the sender immediately by return electronic transmission= and then immediately delete this transmission, including all attachments, = without copying, distributing or disclosing same. No member of the Scotiaba= nk Group is liable for any errors or omissions in the content or transmissi= on of this email or accepts any responsibility or liability for loss or dam= age arising from the receipt or use of this transmission. Scotiabank Group = may monitor, retain and/or review email. Trading instructions received by e= -mail or voicemail will not be accepted or acted upon. Unless indicated in = writing, opinions contained in this email are those of the author and are n= ot endorsed by any member of the Scotiabank Group.=20 For information on some members of the Scotiabank Group: http://www.scotiac= apital.com/EmailDisclaimer/English_entities.htm For authorized users of the Scotia Capital trademark: http://www.scotiacapi= tal.com/EmailDisclaimer/English_trademark.htm Pour obtenir la traduction en fran=E7ais: http://www.scotiacapital.com/Emai= lDisclaimer/French.htm Traducci=F3n en espa=F1ol: http://www.scotiacapital.com/EmailDisclaimer/Spa= nish.htm --_000_BDAB2503F626C149AD67860EA418BFB00366EB3AC8sctormail6_ Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable

Hi emacs gurus,

 

         &n= bsp;  I’m wondering if you would help me with an emacs GUI issue I have recently when= I installed emacs 23.2 for use by our financial engineering group.

 

         &n= bsp;  [Problem]

 

         &n= bsp;  $ DISPLAY=3Dsbtorsvr329:23.0; export DISPLAY

$ /usr/local/bin/emacs=
ld.so.1: emacs: fatal: relocation error: file /usr/local/bin/emacs: symbol rsvg_handle_get_dimensions: referenced symbol not found
Killed

 

$ DISPLAY=3Dsbdevsvr286.dev:148.0; export DISPLAY

$ /usr/local/bin/emacs=             &nb= sp;            =       à successful

 

We use the emacs and dependent packages compiled by sunfreeware.com (SMC* packages) for Solaris 10 sparc. =

The problem I have with GUI em= acs lauch  is that the success depends on the display set. It will launch = fine for one display but crash for the other.
As you can see below, when the display is set to sbtorsvr329:23.0, the dyna= mic linker try to resolve the symbol rsvg_handle_get_dimensions, which is not defined in
librsvg-2.so.2 = be= ing used, t= herefore it crashes;  however, when  the display is set to bdevsvr286.dev:148.0, the dynamic linker never try to resolve that symbol, = as such, the GUI successfully gets launched:

 

-------------------------- $ LD_DEBUG=3Daudit,reloc,symbols <= font size=3D2 face=3DArial>

$ DISPLAY=3Dsbtorsvr32= 9:23.0; export DISPLAY
$ /usr/local/bin/emacs 2>emacs.disp=3Dsbtorsvr329:23.0   =             &nb= sp;            =             &nb= sp;            =  
à emacs GUI crashed Killed

$ grep rsvg_handle_get_dimensions emacs.dis=3Dsbtorsvr329:23.0|wc -l
     569
$ grep rsvg_handle_get_dimensions emacs.dis=3Dsbtorsvr329:23.0|grep librsvg-2.so.2
13815: 1: symbol=3Drsvg_handle_get_dimensions;  lookup in file=3D/usr/lib/librsvg-2.so.2  [ ELF ]
13815: 1: symbol=3Drsvg_handle_get_dimensions;  lookup in file=3D/usr/lib/librsvg-2.so.2  [ ELF ]
13815: 1: symbol=3Drsvg_handle_get_dimensions;  lookup in file=3D/usr/lib/librsvg-2.so.2  [ ELF ]
13815: 1: symbol=3Drsvg_handle_get_dimensions;  lookup in file=3D/usr/lib/librsvg-2.so.2  [ ELF ]
=

$ DISPLAY=3Dsbdevsvr286.dev:148.0; export DISPLAY
$ /usr/local/bin/emacs 2>emacs.disp=3Dsbdevsvr286.dev:148.0  &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;         
à emacs GUI successfull= y launched

$ grep rsvg_handle_get_dimensions emacs.disp=3Dsbdevsvr286.dev:148.0
--------------------------

 

$ ldd /usr/local/bin/emacs|grep librsvg
        librsvg-2.so.2 =3D>        /usr/lib/librsvg-2.so.2 <= o:p>

 

The above library is installed= with SUNWgnome-base-libs package and doesn’t contain the definition for symbol <= font size=3D2 face=3D"Courier New">rsvg_handle_get_dimensions:

 

$ ls -l /usr/lib/librs= vg*
lrwxrwxrwx   1 root     root          18 Oct 17  = 2006 /usr/lib/librsvg-2.so -> librsvg-2.so.2.5.0
lrwxrwxrwx   1 root     root          18 Oct 17  = 2006 /usr/lib/librsvg-2.so.2 -> librsvg-2.so.2.5.0
-rwxr-xr-x   1 root     other     112408 Dec 15  2004 /usr/lib/librsvg-2.so.2.5.0

 

$ echo $LD_LIBRAR= Y_PATH
/usr/lib:/usr/lib/X11

 

$ /us= r/ccs/bin/nm /usr/lib/librsvg-2.so.2 | grep rsvg_handle_get_dimensions   =             &nb= sp;            =             &nb= sp;   à r= eturn empty

 

 

The behaviour that emacs resol= ve the rsvg_handle_get_dimensions symbol for one display but not for the other is really a mystery for me.

 

Continuing investigation, if I= add path /usr/local/lib before /usr/lib, then the rsvg_handle_get_dimensio= ns error doesn't appear since the librsvg provided by SMClrsvg contains the definiti= on for the symbol, but then, emacs crashes with /usr/local/lib/libgtk-x11-2.0.so.0.1200.0 segmentation fault:

 

$ LD_LIBRARY_PATH=3D/usr/local/lib:/usr/lib:/usr/lib/X11; export LD_LIBRARY_P= ATH
$ echo $DISPLAY
sbdevsvr285.dev:148.0

 

$ ldd /usr/local/bin/emacs|grep svg

   &nbs= p;    librsvg-2.so.2 =3D>        /usr/local/lib/librsvg-2.so.2

 

$ /us= r/ccs/bin/nm /usr/local/lib/librsvg-2.so.2 | = grep rsvg_handle_get_dimensions

[1594]  |  &nbs= p; 163320|    1144|FUNC |GLOB |0    |13     |rsvg_handle_get_dimensions


$ /usr/local/bin/emacs
GLib: Cannot convert message: Conversion from character set 'UTF-8' to '646= ' is not supported

(emacs:19813): Gtk-WAR= NING **: Conversion from character set '646' to 'UTF-8' is not supported
Fatal error (11)Segmentation Fault

$ mdb /usr/local/bin/emacs
> :r
GLib: Cannot convert message: Conversion from character set 'UTF-8' to '646= ' is not supported

(emacs:19831): Gtk-WAR= NING **: Conversion from character set '646' to 'UTF-8' is not supported
mdb: stop on SIGSEGV
mdb: target stopped at:
libgtk-x11-2.0.so.0.1200.0`gtk_rc_reparse_all_for_settings+0x17c: &nbs= p;     ld        [%o5], %g1
>

 

For most of the graphics libra= ries, there are two versions: the native SUNWgnome-base-libs version located in /usr/lib and SMCgtk version from sunfreeware.com located in /usr/local/lib:

 

$ ls -l /usr/local/lib/libgtk-x11*
-rw-r--r--   1 bin      bin          834 Dec  9&n= bsp; 2007 /usr/local/lib/libgtk-x11-2.0.la
lrwxrwxrwx   1 root     root          26 Apr 21  = 2009 /usr/local/lib/libgtk-x11-2.0.so -> libgtk-x11-2.0.so.0.1200.0
lrwxrwxrwx   1 root     root          26 Apr 21  = 2009 /usr/local/lib/libgtk-x11-2.0.so.0 -> libgtk-x11-2.0.so.0.1200.0
-rwxr-xr-x   1 bin      bin      4823188 Dec  9  2007 /usr/local/lib/libgtk-x11-2.0.so.0.1200.0

 

$ ls -l /usr/lib/libgtk-x11*
lrwxrwxrwx   1 root     root          25 Oct 17  = 2006 /usr/lib/libgtk-x11-2.0.so -> libgtk-x11-2.0.so.0.400.9
lrwxrwxrwx   1 root     root          25 Oct 17  = 2006 /usr/lib/libgtk-x11-2.0.so.0 -> libgtk-x11-2.0.so.0.400.9
-rwxr-xr-x   1 root     other  &nbs= p; 3617016 Dec  1  2009 /usr/lib/libgtk-x11-2.0.so.0.400.9

 

SMCemacs 23.2 requires SMCgtk  2.12.0, which means the correct version of library was loaded.

 

I was thinking to try the native libgtk-x11 library, to do this, /usr/lib has been be put before /usr/local/lib, but then it will hit the rsvg_handle_get_dimensions error again.

 

Can someone please help?<= /o:p>

 

 

 

 

Regards,

 

 

Alex Lai

 

Email: Ale= x_lai@scotiacapital.com

Tel: (416)6074789

 

 


---
The information transmitted is intended onl= y for the person or entity to which it is addressed and may contain confide= ntial and/or privileged material. Any review, re-transmission, disseminatio= n or other use of, or taking of any action in reliance upon this informatio= n by persons or entities other than the intended recipient is prohibited. I= f you received this email in error, please contact the sender immediately b= y return electronic transmission and then immediately delete this transmiss= ion, including all attachments, without copying, distributing or disclosing= same. No member of the Scotiabank Group is liable for any errors or omissi= ons in the content or transmission of this email or accepts any responsibil= ity or liability for loss or damage arising from the receipt or use of this= transmission. Scotiabank Group may monitor, retain and/or review email. Tr= ading instructions received by e-mail or voicemail will not be accepted or = acted upon. Unless indicated in writing, opinions contained in this email a= re those of the author and are not endorsed by any member of the Scotiabank= Group. For information on some members of the Scotiabank Group, click h= ere. For authorized users of the Scotia Capital trademark, click he= re.

Pour obtenir la traduction en fran=E7ais: http://www.scotiacapital.com/EmailDi= sclaimer/French.htm
Traducci=F3n en espa=F1ol: http://www.scotiacapital.com/EmailDisclaimer/Spani= sh.htm

--_000_BDAB2503F626C149AD67860EA418BFB00366EB3AC8sctormail6_--