From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#9056: 24.0.50; fails to compile when configured --with-x-toolkit=lucid Date: Mon, 11 Jul 2011 21:54:49 +0200 Message-ID: <4E1B5509.1020804@swipnet.se> References: <874o2sfywp.fsf@yun.yagibdah.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1310414572 21681 80.91.229.12 (11 Jul 2011 20:02:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 11 Jul 2011 20:02:52 +0000 (UTC) Cc: 9056@debbugs.gnu.org To: lee Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 11 22:02:47 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 1QgMgp-00035X-EW for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Jul 2011 22:02:47 +0200 Original-Received: from localhost ([::1]:42341 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgMgn-0005BO-Ol for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Jul 2011 16:02:45 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:50813) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgMaT-0003k5-DJ for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2011 15:56:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QgMaO-0007pm-7S for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2011 15:56:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53453) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgMaN-0007p8-28 for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2011 15:56:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QgMaI-0002Zr-GT; Mon, 11 Jul 2011 15:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= 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:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9056 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9056-submit@debbugs.gnu.org id=B9056.13104141049837 (code B ref 9056); Mon, 11 Jul 2011 19:56:02 +0000 Original-Received: (at 9056) by debbugs.gnu.org; 11 Jul 2011 19:55:04 +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 1QgMZL-0002Yb-3l for submit@debbugs.gnu.org; Mon, 11 Jul 2011 15:55:04 -0400 Original-Received: from smtprelay-h21.telenor.se ([195.54.99.196]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgMZI-0002Xv-3l for 9056@debbugs.gnu.org; Mon, 11 Jul 2011 15:55:01 -0400 Original-Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-h21.telenor.se (Postfix) with ESMTP id 37450EA85D for <9056@debbugs.gnu.org>; Mon, 11 Jul 2011 21:54:53 +0200 (CEST) X-SENDER-IP: [85.225.45.26] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: At9iABBUG05V4S0aPGdsb2JhbABQA4REhEieEwsBAQEBNzKIfK8OkHSBK4IXgWmBDwSjHQ X-IronPort-AV: E=Sophos;i="4.65,517,1304287200"; d="scan'208";a="205621900" Original-Received: from c-1a2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.26]) by ipb2.telenor.se with ESMTP; 11 Jul 2011 21:54:52 +0200 Original-Received: from anon-96-181.ipredate.net (anon-96-181.ipredate.net [93.182.181.96]) by coolsville.localdomain (Postfix) with ESMTPSA id 5269A7FA05A; Mon, 11 Jul 2011 21:54:51 +0200 (CEST) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110624 Thunderbird/5.0 In-Reply-To: <874o2sfywp.fsf@yun.yagibdah.de> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 11 Jul 2011 15:56:02 -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:48641 Archived-At: 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=3Dluc= id: > > ,---- > | [...] > | /usr/bin/ld: xsettings.o: undefined reference to symbol 'g_settings_n= ew' > | /usr/bin/ld: note: 'g_settings_new' is defined in DSO /usr/lib64/libg= io-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 > | > | (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 > | lee@yun:~/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=C3=BCtkehaus and = Andreas Zeller. > | Copyright =C2=A9 1995-1999 Technische Universit=C3=A4t Braunschweig, = Germany. > | 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...d= one. > | (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/l= ibgconf-2.so.4 > | #2 0x00000000004b0b42 in init_gconf (dpyinfo=3D0xe52450) at xsetting= s.c:870 > | #3 xsettings_initialize (dpyinfo=3D0xe52450) at xsettings.c:945 > | #4 0x0000000000495825 in x_term_init (display_name=3D15120321, xrm_o= ption=3D0x0, resource_name=3D) at xterm.c:10282 > | #5 0x0000000000496878 in Fx_open_connection (display=3D15120321, xrm= _string=3D, must_succeed=3D11454898) at xfns.c:4066 > | #6 0x0000000000513c1b in Ffuncall (nargs=3D, ar= gs=3D0x7fffffffc850) at eval.c:3016 > | #7 0x000000000053ffdf in exec_byte_code (bytestr=3D, vector=3D, maxdepth=3D, a= rgs_template=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, a= rgs_template=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=3D1239893= 0, bodyform=3D16971782, handlers=3D16971878) at eval.c:1440 > | #14 0x0000000000540744 in exec_byte_code (bytestr=3D, vector=3D, maxdepth=3D, a= rgs_template=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, a= rgs_template=3D, nargs=3D, args= =3D) at bytecode.c:785 > | #17 0x0000000000512e4a in apply_lambda (fun=3D8755893, args=3D1145485= 0) at 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:14= 93 > | #21 0x00000000004baa68 in top_level_1 (ignore=3D= ) at keyboard.c:1173 > | #22 0x000000000051223c in internal_catch (tag=3DCannot 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=3D1, argv=3D) 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 inf= ormation. > > ,---- > | 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-= languages=3Dc,c++,fortran,objc,obj-c++,go --prefix=3D/usr --program-suffi= x=3D-4.6 --enable-shared --enable-multiarch --with-multiarch-defaults=3Dx= 86_64-linux-gnu --enable-linker-build-id --with-system-zlib --libexecdir=3D= /usr/lib --without-included-gettext --enable-threads=3Dposix --with-gxx-i= nclude-dir=3D/usr/include/c++/4.6 --libdir=3D/usr/lib --enable-nls --enab= le-clocale=3Dgnu --enable-libstdcxx-debug --enable-libstdcxx-time=3Dyes -= -enable-plugin --enable-objc-gc --with-arch-32=3Di586 --with-tune=3Dgener= ic --enable-checking=3Drelease --build=3Dx86_64-linux-gnu --host=3Dx86_64= -linux-gnu --target=3Dx86_64-linux-gnu > | Thread model: posix > | gcc version 4.6.1 20110526 (prerelease) (Debian 4.6.0-10) > | lee@yun:~/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.11002= 000 > 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 > > > r e p o r 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 h e n SPC c > o n f i g u r e SPC d SPC - - w i t h - > x - t o o k i t =3D l u c i d > > > > > . g u b u g r > > > m a i l . m i s c - > . > > C-x C-k C-g C-x k y e s > y e s C-x > b * G r C-g C-g q x g n u s > 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 rfc204= 5 > ietf-drums mailabbrev gmm-utils mailheader gnus gnus-ems nnheader > gnus-util mail-utils mm-util mail-prsvr wid-edit emacsbug help-mode vie= w > server remember org-remember org-datetree org byte-opt warnings bytecom= p > byte-compile cconv macroexp advice help-fns advice-preload ob-emacs-lis= p > 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-lin= e > 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 europea= n > 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) > >