From: "Jim C. Brown" <jbrown106@phreaker.net>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] SDL compile error
Date: Sun, 14 Nov 2004 19:20:28 -0500 [thread overview]
Message-ID: <20041115002028.GA19386@jbrown.mylinuxbox.org> (raw)
In-Reply-To: <57665.66.159.222.224.1100447159.squirrel@www.chesstrain.com>
[-- Attachment #1: Type: text/plain, Size: 1432 bytes --]
On Sun, Nov 14, 2004 at 07:45:59AM -0800, Shivkumar Shivaji wrote:
>
> /usr/lib/libSDL.a(SDL_fbevents.o)(.text+0x942): In function `find_pid':
> : undefined reference to `__ctype_b'
> /usr/lib/libSDL.a(SDL_fbelo.o)(.text+0x465): In function `eloSendQuery':
> : undefined reference to `__ctype_toupper'
> /usr/lib/libSDL.a(SDL_fbelo.o)(.text+0x5f1): In function `eloInitController':
> : undefined reference to `__ctype_tolower'
> collect2: ld returned 1 exit status
The above is where the actual errors are. This means that your SDL is based
on an older glibc (2.0 or something) but you have upgraded to a newer one
(2.3 or something). The undefined symbols are internal glibc symbols which the
dynamic loader knows how to resolve (via some hacks in the newer glibc) but
which the static linker can't. The real fix is to download SDL source and
recompile, that way the new SDL static library will not reference those symbols.
If you want a quick hack, compile the attached ctype_b.c file and link it into
qemu-fast. You will probably want to edit the Makefile to do this. (You can
also link it into libSDL.a I suppose. I haven't tried this so I do not
recommend it.)
>
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>
--
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.
[-- Attachment #2: ctype_b.c --]
[-- Type: text/plain, Size: 1613 bytes --]
#define attribute_hidden
#define CTYPE_EXTERN_INLINE /* Define real functions for accessors. */
#include <ctype.h>
/*#define b(t,x,o) (((const t *) _nl_C_LC_CTYPE_##x) + o)
const char _nl_C_LC_CTYPE_class[] =
const char _nl_C_LC_CTYPE_toupper[] = {{ 7, 1, 5, 3, 31 }, { 6 * sizeof (uint32_t) }, { 0, 0, 10 * sizeof (uint32_t), 0 }, { 0x00000000, 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 }};
const char _nl_C_LC_CTYPE_tolower[] = {{ 7, 1, 5, 3, 31 }, { 6 * sizeof (uint32_t) }, { 0, 0, 0, 10 * sizeof (uint32_t) }, { 0x00000000, 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0, 0xffffffe0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 }};
const unsigned short int *__ctype_b = b (unsigned short int, class, 128);
const __int32_t *__ctype_toupper = b (__int32_t, toupper, 128);
const __int32_t *__ctype_tolower = b (__int32_t, tolower, 128);*/
const unsigned short int *__ctype_b = __ctype_b_loc+1;
const __int32_t *__ctype_toupper = __ctype_tolower_loc+1;
const __int32_t *__ctype_tolower = __ctype_toupper_loc+1;
next prev parent reply other threads:[~2004-11-15 0:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <5100168789854548368@unknownmsgid>
2004-11-14 21:41 ` [Qemu-devel] Re: Using Qemu to install Linux in a Windows XP Brett Bonfield
2004-11-14 21:46 ` Fabrice Bellard
2004-11-14 15:45 ` [Qemu-devel] SDL compile error Shivkumar Shivaji
2004-11-15 0:20 ` Jim C. Brown [this message]
2004-11-15 15:40 ` [Qemu-devel] Re: Using Qemu to install Linux in a Windows XP Brett Bonfield
2004-11-15 16:34 ` Ronald
2004-11-15 21:46 ` Fabrice Bellard
2004-11-16 0:56 ` [Qemu-devel] " Ronald
2004-11-14 23:03 ` [Qemu-devel] " Ronald
2004-11-15 13:52 ` Anand Kumria
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=20041115002028.GA19386@jbrown.mylinuxbox.org \
--to=jbrown106@phreaker.net \
--cc=qemu-devel@nongnu.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).