emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GTK build crashes under X


From: Stephen Berman
Subject: Re: GTK build crashes under X
Date: Wed, 06 Dec 2006 13:32:00 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.90 (gnu/linux)

On Wed, 29 Nov 2006 08:00:23 +0100 Jan Djärv <address@hidden> wrote:

> Stephen Berman skrev:
>>
>> It turns out that the wxGTK package mentioned above was in fact
>> responsible for Emacs segfaulting; after uninstalling the wxGTK rpm,
>> the Emacs GTK build started under X with no problems, as before.  Do
>> you have any idea what the problem could be, or any suggestion how to
>> try tracking it down (if it is necessary to recompile pango or wxGTK
>> with debugging enabled, I probably cannot do it any time soon).
>
> You can see if there are any standard files wxGTK installs or
> modifies, like /etc/fonts/fonts.conf or some other font files.  The
> output from fc-cache does not look right (Can't save cache for
> "/usr/local/share/fonts") did you run it as root?  You seem to have
> duplicate entries in /etc/fonts/fonts.conf (all those looped directory
> messages), but I don't think that should cause any problems.
>
> My best bet would be to recompile fontconfig with debugging enabled
> and see exactly what font it tries to find when it crashes.  But I
> think this is more of a Suse problem than an Emacs problem.

In the mean time I've posted about this problem to wxwidget and SUSE
lists but still haven't gotten any solution and still cannot run
GTK-Emacs.  Running fc-cache as root didn't change anything.  AFAICT
wxGTK doesn't install or alter any standard files, and one of the
wxwidget developers said it doesn't touch pango or fontconfig.  So I
obtained the SUSE source of fontconfig, built and installed it under
/usr/local and configured Emacs like this:

CPPFLAGS='-I/usr/local/include/fontconfig' LDFLAGS='-L/usr/local/lib' 
LIBS='-llibfontconfig' ../emacs-22.0.90/configure --with-x-toolkit=gtk

make then built emacs without error, and as expected, it still
segfaults.  But when I run it under gdb, I still get the same
backtrace as before:

#0  0xb75748fa in strcmp () from /lib/libc.so.6
No symbol table info available.
#1  0xb7a7db45 in FcObjectToPtr () from /usr/lib/libfontconfig.so.1
No symbol table info available.
#2  0xb7a81741 in FcPatternAddWithBinding () from /usr/lib/libfontconfig.so.1
No symbol table info available.
#3  0xb7a81df8 in FcPatternAdd () from /usr/lib/libfontconfig.so.1
No symbol table info available.
#4  0xb7a81e84 in FcPatternBuild () from /usr/lib/libfontconfig.so.1
No symbol table info available.

It seems that the variable LIBS I passed to configure (following the
example in etc/INSTALL) wasn't used by make.  Did I do something
wrong?  How do I get emacs to use the libfontconfig I built?  (I also
tried LIBS='-l/usr/local/lib/libfontconfig.so.1' but that makes
configure fail.)

Thanks,
Steve Berman





reply via email to

[Prev in Thread] Current Thread [Next in Thread]