GNU bug report logs - #4461
undefined reference to `x_get_resource_string'

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> jurta.org>

Date: Thu, 17 Sep 2009 15:25:04 UTC

Severity: normal

Done: Juri Linkov <juri <at> jurta.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 4461 in the body.
You can then email your comments to 4461 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4461; Package emacs. (Thu, 17 Sep 2009 15:25:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Juri Linkov <juri <at> jurta.org>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Thu, 17 Sep 2009 15:25:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Juri Linkov <juri <at> jurta.org>
To: bug-gnu-emacs <at> gnu.org
Subject: undefined reference to `x_get_resource_string'
Date: Thu, 17 Sep 2009 18:19:46 +0300
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/




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4461; Package emacs. (Thu, 17 Sep 2009 16:50:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> IRO.UMontreal.CA>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Thu, 17 Sep 2009 16:50:04 GMT) Full text and rfc822 format available.

Message #10 received at 4461 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Juri Linkov <juri <at> jurta.org>
Cc: 4461 <at> debbugs.gnu.org
Subject: Re: bug#4461: undefined reference to `x_get_resource_string'
Date: Thu, 17 Sep 2009 12:42:41 -0400
Thanks for catching it.  Sorry about my over-eagerness to remove code.
Is it fixed now?


        Stefan



Reply sent to Juri Linkov <juri <at> jurta.org>:
You have taken responsibility. (Thu, 17 Sep 2009 21:30:13 GMT) Full text and rfc822 format available.

Notification sent to Juri Linkov <juri <at> jurta.org>:
bug acknowledged by developer. (Thu, 17 Sep 2009 21:30:13 GMT) Full text and rfc822 format available.

Message #15 received at 4461-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Juri Linkov <juri <at> jurta.org>
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Cc: 4461-done <at> debbugs.gnu.org
Subject: Re: bug#4461: undefined reference to `x_get_resource_string'
Date: Fri, 18 Sep 2009 00:19:41 +0300
> Thanks for catching it.  Sorry about my over-eagerness to remove code.
> Is it fixed now?

Thanks, it's fixed now.

-- 
Juri Linkov
http://www.jurta.org/emacs/



bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> emacsbugs.donarmstrong.com. (Fri, 16 Oct 2009 14:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 328 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.