From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: lee Newsgroups: gmane.emacs.bugs Subject: bug#9056: 24.0.50; fails to compile when configured --with-x-toolkit=lucid Date: Mon, 11 Jul 2011 20:35:50 +0200 Message-ID: <874o2sfywp.fsf@yun.yagibdah.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1310411422 2607 80.91.229.12 (11 Jul 2011 19:10:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 11 Jul 2011 19:10:22 +0000 (UTC) To: 9056@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 11 21:10:13 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QgLrs-0004WD-NV for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Jul 2011 21:10:09 +0200 Original-Received: from localhost ([::1]:60884 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgLrr-0003KZ-Ea for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Jul 2011 15:10:07 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgLm0-00021Y-Uj for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2011 15:04:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QgLly-0007Vo-VO for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2011 15:04:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53969) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgLly-0007Ve-Jz for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2011 15:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QgLlx-0001Oa-Ud; Mon, 11 Jul 2011 15:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: lee Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jul 2011 19:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9056 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13104109835286 (code B ref -1); Mon, 11 Jul 2011 19:04:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Jul 2011 19:03:03 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgLl0-0001ND-4t for submit@debbugs.gnu.org; Mon, 11 Jul 2011 15:03:02 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgLkx-0001Mt-KO for submit@debbugs.gnu.org; Mon, 11 Jul 2011 15:03:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QgLkq-0007LO-Iy for submit@debbugs.gnu.org; Mon, 11 Jul 2011 15:02:54 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:58936) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgLkq-0007LG-Au for submit@debbugs.gnu.org; Mon, 11 Jul 2011 15:02:52 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46527) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgLko-0001ji-6p for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2011 15:02:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QgLkm-0007Kw-AY for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2011 15:02:50 -0400 Original-Received: from static.103.179.46.78.clients.your-server.de ([78.46.179.103]:60026 helo=static.73.179.46.78.clients.your-server.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgLkl-0007KV-N5 for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2011 15:02:48 -0400 Original-Received: from lee by yun.yagibdah.de with local (Exim 4.76) (envelope-from ) id 1QgLKh-0008He-1h for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2011 20:35:51 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 11 Jul 2011 15:04:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:48636 Archived-At: Emacs fails to compile after running ./configure --with-x-toolkit=3Dlucid: ,---- | [...] | /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 | lee@yun:~/inst/emacs/emacs24/trunk$ `---- When I modify the Makefile to add missing libraries (LDFLAGS=3D -Wl,-znocombreloc -lgio-2.0 -lgobject-2.0), emacs compiles and crashes when started: ,---- | lee@yun:~/inst/emacs/emacs24/trunk$ src/emacs |=20 | (process:29845): GLib-GObject-CRITICAL **: /tmp/buildd/glib2.0-2.28.6/./g= object/gtype.c:2712: You forgot to call g_type_init() |=20 | (process:29845): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYP= E_IS_OBJECT (object_type)' failed |=20 | (process:29845): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_= OBJECT (object)' failed | Fatal error (11)Speicherzugriffsfehler | lee@yun:~/inst/emacs/emacs24/trunk$=20 |=20 | When I run it in the debugger, I'm getting the following: |=20 |=20 | GNU DDD 3.3.12 (x86_64-pc-linux-gnu), by Dorothea L=C3=BCtkehaus and Andr= eas Zeller. | Copyright =C2=A9 1995-1999 Technische Universit=C3=A4t Braunschweig, Germ= any. | Copyright =C2=A9 1999-2001 Universit=C3=A4t Passau, Germany. | Copyright =C2=A9 2001 Universit=C3=A4t des Saarlandes, Germany. | Copyright =C2=A9 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] |=20 | (process:31554): GLib-GObject-CRITICAL **: /tmp/buildd/glib2.0-2.28.6/./g= object/gtype.c:2712: You forgot to call g_type_init() |=20 | (process:31554): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYP= E_IS_OBJECT (object_type)' failed |=20 | (process:31554): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_= OBJECT (object)' failed |=20 | 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/libgc= onf-2.so.4 | #2 0x00000000004b0b42 in init_gconf (dpyinfo=3D0xe52450) at xsettings.c:= 870 | #3 xsettings_initialize (dpyinfo=3D0xe52450) at xsettings.c:945 | #4 0x0000000000495825 in x_term_init (display_name=3D15120321, xrm_optio= n=3D0x0, resource_name=3D) at xterm.c:10282 | #5 0x0000000000496878 in Fx_open_connection (display=3D15120321, xrm_str= ing=3D, must_succeed=3D11454898) at xfns.c:4066 | #6 0x0000000000513c1b in Ffuncall (nargs=3D, args= =3D0x7fffffffc850) at eval.c:3016 | #7 0x000000000053ffdf in exec_byte_code (bytestr=3D= , vector=3D, maxdepth=3D, args_te= mplate=3D, nargs=3D, args=3D) at bytecode.c:785 | #8 0x000000000051395b in funcall_lambda (fun=3D9850117, nargs=3D, arg_vector=3D0x7fffffffca18) at eval.c:3240 | #9 0x0000000000513d2d in Ffuncall (nargs=3D1, args=3D0x7fffffffca10) at = eval.c:3070 | #10 0x000000000053ffdf in exec_byte_code (bytestr=3D= , vector=3D, maxdepth=3D, args_te= mplate=3D, nargs=3D, args=3D) at bytecode.c:785 | #11 0x0000000000513d2d in Ffuncall (nargs=3D1, args=3D0x7fffffffcb70) at = eval.c:3070 | #12 0x0000000000513216 in eval_sub (form=3D) at eval= .c:2329 | #13 0x0000000000515c86 in internal_lisp_condition_case (var=3D12398930, b= odyform=3D16971782, handlers=3D16971878) at eval.c:1440 | #14 0x0000000000540744 in exec_byte_code (bytestr=3D= , vector=3D, maxdepth=3D, args_te= mplate=3D, nargs=3D, args=3D) at bytecode.c:981 | #15 0x0000000000513d2d in Ffuncall (nargs=3D1, args=3D0x7fffffffcfa8) at = eval.c:3070 | #16 0x000000000053ffdf in exec_byte_code (bytestr=3D= , vector=3D, maxdepth=3D, args_te= mplate=3D, nargs=3D, args=3D) at bytecode.c:785 | #17 0x0000000000512e4a in apply_lambda (fun=3D8755893, args=3D11454850) a= t eval.c:3117 | #18 0x0000000000513494 in eval_sub (form=3D) at eval= .c:2421 | #19 0x000000000051524e in Feval (form=3D12078294, lexical=3D) at eval.c:2211 | #20 0x0000000000512380 in internal_condition_case (bfun=3D0x4ba707 , handlers=3D11507090, hfun=3D0x4bb4c6 ) at eval.c:1493 | #21 0x00000000004baa68 in top_level_1 (ignore=3D) at= keyboard.c:1173 | #22 0x000000000051223c in internal_catch (tag=3DCannot access memory at a= ddress 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=3D1, argv=3D) a= t emacs.c:1701 | (gdb)=20 `---- 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 informa= tion. ,---- | lee@yun:~/inst/emacs/emacs24/trunk$ gcc -v | Using built-in specs. | COLLECT_GCC=3Dgcc | COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/x86_64-linux-gnu/4.6.1/lto-wrapper | Target: x86_64-linux-gnu | Configured with: ../src/configure -v --with-pkgversion=3D'Debian 4.6.0-10= ' --with-bugurl=3Dfile:///usr/share/doc/gcc-4.6/README.Bugs --enable-langua= ges=3Dc,c++,fortran,objc,obj-c++,go --prefix=3D/usr --program-suffix=3D-4.6= --enable-shared --enable-multiarch --with-multiarch-defaults=3Dx86_64-linu= x-gnu --enable-linker-build-id --with-system-zlib --libexecdir=3D/usr/lib -= -without-included-gettext --enable-threads=3Dposix --with-gxx-include-dir= =3D/usr/include/c++/4.6 --libdir=3D/usr/lib --enable-nls --enable-clocale= =3Dgnu --enable-libstdcxx-debug --enable-libstdcxx-time=3Dyes --enable-plug= in --enable-objc-gc --with-arch-32=3Di586 --with-tune=3Dgeneric --enable-ch= ecking=3Drelease --build=3Dx86_64-linux-gnu --host=3Dx86_64-linux-gnu --tar= get=3Dx86_64-linux-gnu | Thread model: posix | gcc version 4.6.1 20110526 (prerelease) (Debian 4.6.0-10)=20 | lee@yun:~/inst/emacs/emacs24/trunk$=20 `---- 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: x b u g =20 =20 =20 r e p o r e=20 m a c s SPC d o e s n ' t SPC c o m p i l e SPC w i=20 t h h e n SPC c=20 o n f i g u r e SPC d SPC - - w i t h -=20 x - t o o k i t =3D l u c i d =20 =20 =20 =20 =20 . g u b u g r =20 =20 =20 m a i l . m i s c - =20 . =20 =20 C-x C-k C-g C-x k y e s =20 y e s C-x=20 b * G r C-g C-g q x g n u s =20 x r e p o r 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)