From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#4461: undefined reference to `x_get_resource_string' Date: Thu, 17 Sep 2009 18:19:46 +0300 Organization: JURTA Message-ID: <87tyz1d63x.fsf@mail.jurta.org> Reply-To: Juri Linkov , 4461@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1253201293 15654 80.91.229.12 (17 Sep 2009 15:28:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Sep 2009 15:28:13 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 17 17:28:07 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MoItw-0001oq-K7 for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Sep 2009 17:28:05 +0200 Original-Received: from localhost ([127.0.0.1]:45987 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MoItv-0000o6-Uo for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Sep 2009 11:28:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MoIt4-0000d1-Fu for bug-gnu-emacs@gnu.org; Thu, 17 Sep 2009 11:27:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MoIt0-0000cC-1s for bug-gnu-emacs@gnu.org; Thu, 17 Sep 2009 11:27:10 -0400 Original-Received: from [199.232.76.173] (port=54300 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MoIsz-0000bw-48 for bug-gnu-emacs@gnu.org; Thu, 17 Sep 2009 11:27:05 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:55433) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MoIsy-0006xV-ED for bug-gnu-emacs@gnu.org; Thu, 17 Sep 2009 11:27:04 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8HFR1SL007250; Thu, 17 Sep 2009 08:27:02 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8HFP4OX006918; Thu, 17 Sep 2009 08:25:04 -0700 Resent-Date: Thu, 17 Sep 2009 08:25:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Juri Linkov Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 17 Sep 2009 15:25:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4461 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12532008086275 (code B ref -1); Thu, 17 Sep 2009 15:25:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 17 Sep 2009 15:20:08 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8HFK6qO006225 for ; Thu, 17 Sep 2009 08:20:07 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MoImD-0005Lw-SL for bug-gnu-emacs@gnu.org; Thu, 17 Sep 2009 11:20:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MoIm9-0005JA-52 for bug-gnu-emacs@gnu.org; Thu, 17 Sep 2009 11:20:05 -0400 Original-Received: from [199.232.76.173] (port=46220 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MoIm9-0005J5-00 for bug-gnu-emacs@gnu.org; Thu, 17 Sep 2009 11:20:01 -0400 Original-Received: from smtp-out1.starman.ee ([85.253.0.3]:32975 helo=mx1.starman.ee) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MoIm8-0005Of-Fx for bug-gnu-emacs@gnu.org; Thu, 17 Sep 2009 11:20:00 -0400 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.31.47.cable.starman.ee [82.131.31.47]) by mx1.starman.ee (Postfix) with ESMTP id 977EE3F4143 for ; Thu, 17 Sep 2009 18:19:50 +0300 (EEST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 17 Sep 2009 11:27:09 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:31169 Archived-At: Without these lines in frame.c: -char * -x_get_resource_string (attribute, class) - char *attribute, *class; -{ - char *name_key; - char *class_key; - struct frame *sf = SELECTED_FRAME (); - - /* Allocate space for the components, the dots which separate them, - and the final '\0'. */ - name_key = (char *) alloca (SBYTES (Vinvocation_name) - + strlen (attribute) + 2); - class_key = (char *) alloca ((sizeof (EMACS_CLASS) - 1) - + strlen (class) + 2); - - sprintf (name_key, "%s.%s", SDATA (Vinvocation_name), attribute); - sprintf (class_key, "%s.%s", EMACS_CLASS, class); - - return x_get_string_resource (FRAME_X_DISPLAY_INFO (sf)->xrdb, - name_key, class_key); -} compilation fails: ../oldXMenu/libXMenu11.a(Create.o): In function `XMenuCreate': ../oldXMenu/Create.c:244: undefined reference to `x_get_resource_string' ../oldXMenu/Create.c:250: undefined reference to `x_get_resource_string' ../oldXMenu/Create.c:256: undefined reference to `x_get_resource_string' ../oldXMenu/Create.c:263: undefined reference to `x_get_resource_string' ../oldXMenu/Create.c:269: undefined reference to `x_get_resource_string' ../oldXMenu/libXMenu11.a(Create.o):../oldXMenu/Create.c:293: more undefined references to `x_get_resource_string' follow collect2: ld returned 1 exit status make[1]: *** [temacs] Error 1 in non-toolkit GNU Emacs 23.1.50 (x86_64-pc-linux-gnu) configured as: What operating system and machine description files should Emacs use? `s/gnu-linux.h' and `m/amdx86-64.h' What compiler should emacs be built with? gcc -g3 -O0 -Wno-pointer-sign -fno-inline -fno-crossjumping What window system should Emacs use? x11 What toolkit should Emacs use? none Where do we find X Windows header files? Standard dirs Where do we find X Windows libraries? Standard dirs Does Emacs use -lXaw3d? no Does Emacs use -lXpm? yes Does Emacs use -ljpeg? yes Does Emacs use -ltiff? yes Does Emacs use a gif library? yes -lgif Does Emacs use -lpng? yes Does Emacs use -lrsvg-2? yes Does Emacs use -lgpm? yes Does Emacs use -ldbus? yes Does Emacs use -lfreetype? yes Does Emacs use -lm17n-flt? no Does Emacs use -lotf? no Does Emacs use -lxft? yes Does Emacs use toolkit scroll bars? no -- Juri Linkov http://www.jurta.org/emacs/