all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: bug-gnu-emacs@gnu.org
Subject: bug#4461: undefined reference to `x_get_resource_string'
Date: Thu, 17 Sep 2009 18:19:46 +0300	[thread overview]
Message-ID: <87tyz1d63x.fsf@mail.jurta.org> (raw)

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/






             reply	other threads:[~2009-09-17 15:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87r5u58ei2.fsf@mail.jurta.org>
2009-09-17 15:19 ` Juri Linkov [this message]
2009-09-17 16:42   ` bug#4461: undefined reference to `x_get_resource_string' Stefan Monnier
2009-09-17 21:30   ` bug#4461: marked as done (undefined reference to `x_get_resource_string') Emacs bug Tracking System

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tyz1d63x.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=4461@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.