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

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

bug#9056: 24.0.50; fails to compile when configured --with-x-toolkit=luc


From: Jan Djärv
Subject: bug#9056: 24.0.50; fails to compile when configured --with-x-toolkit=lucid
Date: Mon, 11 Jul 2011 21:54:49 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110624 Thunderbird/5.0

Hi.

Can you send your config.log?

        Jan D.


lee skrev 2011-07-11 20.35:
Emacs fails to compile after running ./configure --with-x-toolkit=lucid:

,----
| [...]
| /usr/bin/ld: xsettings.o: undefined reference to symbol 'g_settings_new'
| /usr/bin/ld: note: 'g_settings_new' is defined in DSO 
/usr/lib64/libgio-2.0.so.0 so try adding it to the linker command line
| /usr/lib64/libgio-2.0.so.0: could not read symbols: Invalid operation
| collect2: ld returned 1 exit status
| make[1]: *** [temacs] Fehler 1
| make[1]: Leaving directory `/home/lee/inst/emacs/emacs24/trunk/src'
| make: *** [src] Fehler 2
| address@hidden:~/inst/emacs/emacs24/trunk$
`----

When I modify the Makefile to add missing libraries (LDFLAGS=
-Wl,-znocombreloc -lgio-2.0 -lgobject-2.0), emacs compiles and crashes
when started:

,----
| address@hidden:~/inst/emacs/emacs24/trunk$ src/emacs
|
| (process:29845): GLib-GObject-CRITICAL **: 
/tmp/buildd/glib2.0-2.28.6/./gobject/gtype.c:2712: You forgot to call 
g_type_init()
|
| (process:29845): GLib-GObject-CRITICAL **: g_object_new: assertion 
`G_TYPE_IS_OBJECT (object_type)' failed
|
| (process:29845): GLib-GObject-CRITICAL **: g_object_ref: assertion 
`G_IS_OBJECT (object)' failed
| Fatal error (11)Speicherzugriffsfehler
| address@hidden:~/inst/emacs/emacs24/trunk$
|
| When I run it in the debugger, I'm getting the following:
|
|
| GNU DDD 3.3.12 (x86_64-pc-linux-gnu), by Dorothea Lütkehaus and Andreas 
Zeller.
| Copyright © 1995-1999 Technische Universität Braunschweig, Germany.
| Copyright © 1999-2001 Universität Passau, Germany.
| Copyright © 2001 Universität des Saarlandes, Germany.
| Copyright © 2001-2004 Free Software Foundation, Inc.
| Reading symbols from /home/lee/inst/emacs/emacs24/trunk/src/emacs...done.
| (gdb) run
| [Thread debugging using libthread_db enabled]
|
| (process:31554): GLib-GObject-CRITICAL **: 
/tmp/buildd/glib2.0-2.28.6/./gobject/gtype.c:2712: You forgot to call 
g_type_init()
|
| (process:31554): GLib-GObject-CRITICAL **: g_object_new: assertion 
`G_TYPE_IS_OBJECT (object_type)' failed
|
| (process:31554): GLib-GObject-CRITICAL **: g_object_ref: assertion 
`G_IS_OBJECT (object)' failed
|
| Program received signal SIGSEGV, Segmentation fault.
| 0x00007ffff4077de1 in ?? () from /usr/lib/libgconf-2.so.4
| (gdb) bt
| #0  0x00007ffff4077de1 in ?? () from /usr/lib/libgconf-2.so.4
| #1  0x00007ffff4078aac in gconf_client_get_default () from 
/usr/lib/libgconf-2.so.4
| #2  0x00000000004b0b42 in init_gconf (dpyinfo=0xe52450) at xsettings.c:870
| #3  xsettings_initialize (dpyinfo=0xe52450) at xsettings.c:945
| #4  0x0000000000495825 in x_term_init (display_name=15120321, xrm_option=0x0, 
resource_name=<value optimized out>) at xterm.c:10282
| #5  0x0000000000496878 in Fx_open_connection (display=15120321, 
xrm_string=<value optimized out>, must_succeed=11454898) at xfns.c:4066
| #6  0x0000000000513c1b in Ffuncall (nargs=<value optimized out>, 
args=0x7fffffffc850) at eval.c:3016
| #7  0x000000000053ffdf in exec_byte_code (bytestr=<value optimized out>, vector=<value optimized 
out>, maxdepth=<value optimized out>, args_template=<value optimized out>, nargs=<value optimized 
out>, args=<value optimized out>) at bytecode.c:785
| #8  0x000000000051395b in funcall_lambda (fun=9850117, nargs=<value optimized 
out>, arg_vector=0x7fffffffca18) at eval.c:3240
| #9  0x0000000000513d2d in Ffuncall (nargs=1, args=0x7fffffffca10) at 
eval.c:3070
| #10 0x000000000053ffdf in exec_byte_code (bytestr=<value optimized out>, vector=<value optimized 
out>, maxdepth=<value optimized out>, args_template=<value optimized out>, nargs=<value optimized 
out>, args=<value optimized out>) at bytecode.c:785
| #11 0x0000000000513d2d in Ffuncall (nargs=1, args=0x7fffffffcb70) at 
eval.c:3070
| #12 0x0000000000513216 in eval_sub (form=<value optimized out>) at eval.c:2329
| #13 0x0000000000515c86 in internal_lisp_condition_case (var=12398930, 
bodyform=16971782, handlers=16971878) at eval.c:1440
| #14 0x0000000000540744 in exec_byte_code (bytestr=<value optimized out>, vector=<value optimized 
out>, maxdepth=<value optimized out>, args_template=<value optimized out>, nargs=<value optimized 
out>, args=<value optimized out>) at bytecode.c:981
| #15 0x0000000000513d2d in Ffuncall (nargs=1, args=0x7fffffffcfa8) at 
eval.c:3070
| #16 0x000000000053ffdf in exec_byte_code (bytestr=<value optimized out>, vector=<value optimized 
out>, maxdepth=<value optimized out>, args_template=<value optimized out>, nargs=<value optimized 
out>, args=<value optimized out>) at bytecode.c:785
| #17 0x0000000000512e4a in apply_lambda (fun=8755893, args=11454850) at 
eval.c:3117
| #18 0x0000000000513494 in eval_sub (form=<value optimized out>) at eval.c:2421
| #19 0x000000000051524e in Feval (form=12078294, lexical=<value optimized 
out>) at eval.c:2211
| #20 0x0000000000512380 in internal_condition_case (bfun=0x4ba707<top_level_2>, 
handlers=11507090, hfun=0x4bb4c6<cmd_error>) at eval.c:1493
| #21 0x00000000004baa68 in top_level_1 (ignore=<value optimized out>) at 
keyboard.c:1173
| #22 0x000000000051223c in internal_catch (tag=Cannot access memory at address 
0xffffffffffffffe0
| ) at eval.c:1247
| #23 0x00000000004bb054 in command_loop () at keyboard.c:1128
| #24 recursive_edit_1 () at keyboard.c:756
| #25 0x00000000004bb34f in Frecursive_edit () at keyboard.c:820
| #26 0x000000000041246c in main (argc=1, argv=<value optimized out>) at 
emacs.c:1701
| (gdb)
`----

When I enable the call to g_type_init() by editing xsettings.c:866 to:

,----
|   //#ifdef HAVE_G_TYPE_INIT
|   g_type_init ();
|   //#endif
`----

... emacs doesn't crash anymore.  Let me know if you need some more information.

,----
| address@hidden:~/inst/emacs/emacs24/trunk$ gcc -v
| Using built-in specs.
| COLLECT_GCC=gcc
| COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6.1/lto-wrapper
| Target: x86_64-linux-gnu
| Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.0-10' 
--with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs 
--enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr 
--program-suffix=-4.6 --enable-shared --enable-multiarch 
--with-multiarch-defaults=x86_64-linux-gnu --enable-linker-build-id 
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext 
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 
--libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug 
--enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc 
--with-arch-32=i586 --with-tune=generic --enable-checking=release 
--build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
| Thread model: posix
| gcc version 4.6.1 20110526 (prerelease) (Debian 4.6.0-10)
| address@hidden:~/inst/emacs/emacs24/trunk$
`----

The system is Debian testing amd64.


In GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.4)
  of 2011-07-11 on yun
Windowing system distributor `The X.Org Foundation', version 11.0.11002000
Important settings:
   value of $LC_ALL: nil
   value of $LC_COLLATE: nil
   value of $LC_CTYPE: nil
   value of $LC_MESSAGES: nil
   value of $LC_MONETARY: nil
   value of $LC_NUMERIC: nil
   value of $LC_TIME: nil
   value of $LANG: de_DE.UTF-8
   value of $XMODIFIERS: nil
   locale-coding-system: utf-8-unix
   default enable-multibyte-characters: t

Major mode: Group

Minor modes in effect:
   gnus-undo-mode: t
   global-hl-line-mode: t
   show-paren-mode: t
   tooltip-mode: t
   mouse-wheel-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   auto-composition-mode: t
   auto-encryption-mode: t
   auto-compression-mode: t
   size-indication-mode: t
   column-number-mode: t
   line-number-mode: t
   transient-mark-mode: t

Recent input:
<escape>  x b u g<tab>  <tab>  <backspace>  <backspace>
<backspace>  <backspace>  <backspace>  <backspace>  <backspace>
<backspace>  <backspace>  <backspace>  <backspace>  <backspace>
<backspace>  <backspace>  r e p o r<tab>  <return>  e
m a c s SPC d o e s n ' t SPC c o m p i l e SPC w i
t h<backspace>  <backspace>  <backspace>  h e n SPC c
o n f i g u r e SPC<backspace>  d SPC - - w i t h -
x - t o o k i t = l u c i d<return>  <up>  <up>  <up>
<up>  <up>  <up>  <up>  <up>  <up>  <up>  <up>  <up>  <down>
<down>  <down>  <down>  <left>  <backspace>  <backspace>
<backspace>  <backspace>  <backspace>  <backspace>  <backspace>
<backspace>  <backspace>  <backspace>  <backspace>  <backspace>
. g u<backspace>  <backspace>  b u g r<tab>  <backspace>
<backspace>  <backspace>  <backspace>  <backspace>  <backspace>
<backspace>  <backspace>  <backspace>  <backspace>  <backspace>
<backspace>  <backspace>  m a i l . m i s c -<backspace>
.<backspace>  <backspace>  <backspace>  <backspace>  <backspace>
<backspace>  <backspace>  <backspace>  <backspace>  <backspace>
C-x C-k C-g C-x k y e s<return>  <backspace>  <backspace>
<backspace>  <backspace>  <return>  y e s<return>  C-x
b * G r<tab>  <tab>  C-g C-g q<escape>  x g n u s<return>
<escape>  x r e p o r<tab>  <return>

Recent messages:
Reading incoming mail from file... [2 times]
Reading incoming mail from maildir...
Wrote /home/lee/Mail/mail/lists/mythtv-users/9269
Wrote /home/lee/Mail/mail/lists/debian-user/96662
nnml: Reading incoming mail (2 new)...done
Reading active file from yun via nnml...done
Reading active file from archive via nnfolder...done
Reading active file via nndiary...done
Reading active file via nndraft...done
Checking new news...done

Load-path shadows:
None found.

Features:
(nndraft nnmh nndoc nnmaildir parse-time rot13 disp-table netrc gnutls
network-stream auth-source eieio assoc starttls tls nnfolder bbdb-gnus
bbdb-snarf bbdb-com cl nnml gnus-agent gnus-srvr gnus-score score-mode
nnvirtual nntp gnus-cache gnus-diary nndiary debug kmacro shadow sort
gnus-cite flyspell ispell mail-extr gnus-msg gnus-art mm-uu mml2015
epg-config mm-view mml-smime smime password-cache dig mailcap nnir
gnus-sum nnoo gnus-group gnus-undo nnmail mail-source gnus-start
gnus-spec gnus-int gnus-range gnus-win message sendmail rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045
ietf-drums mailabbrev gmm-utils mailheader gnus gnus-ems nnheader
gnus-util mail-utils mm-util mail-prsvr wid-edit emacsbug help-mode view
server remember org-remember org-datetree org byte-opt warnings bytecomp
byte-compile cconv macroexp advice help-fns advice-preload ob-emacs-lisp
ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint comint
ob-keys ob ob-eval org-complete pcomplete org-list org-faces org-compat
org-entities org-macs noutline outline easy-mmode cal-menu easymenu
calendar cal-loaddefs ring erc-goodies erc erc-backend erc-compat
format-spec thingatpt pp bbdb-autoloads bbdb regexp-opt timezone hl-line
saveplace time-date paren cus-start cus-load boxquote rect tooltip
ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd
fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet lao korean japanese hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help
simple abbrev minibuffer loaddefs button faces cus-face files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty emacs)







reply via email to

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