qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] PATCH: fix undefined function errors
@ 2008-11-13  2:59 Sandra Loosemore
  0 siblings, 0 replies; only message in thread
From: Sandra Loosemore @ 2008-11-13  2:59 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 313 bytes --]

I ran into errors about undefined functions when building user-mode QEMU for ARM 
Linux after picking up a recent update from trunk.  The attached patch fixes the 
problem.

As I'm not a QEMU maintainer, someone who is will have to check this in....  or 
some alternate fix for the same problem, maybe.

-Sandra


[-- Attachment #2: qemu.log --]
[-- Type: text/x-log, Size: 287 bytes --]

2008-11-12  Sandra Loosemore  <sandra@codesourcery.com>

	* linux-user/syscall.c (do_syscall):  Make #ifdef on
	TARGET_NR_inotify_init, TARGET_NR_inotify_add_watch, and
	TARGET_NR_inotify_rm_watch cases match that used previously 
	in the file, to avoid references to undefined symbols.

[-- Attachment #3: qemu.patch --]
[-- Type: text/x-patch, Size: 1647 bytes --]

Index: linux-user/syscall.c
===================================================================
*** linux-user/syscall.c	(revision 227507)
--- linux-user/syscall.c	(working copy)
*************** abi_long do_syscall(void *cpu_env, int n
*** 6029,6047 ****
          ret = do_futex(arg1, arg2, arg3, arg4, arg5, arg6);
          break;
  #endif
! #ifdef TARGET_NR_inotify_init
      case TARGET_NR_inotify_init:
          ret = get_errno(sys_inotify_init());
          break;
  #endif
! #ifdef TARGET_NR_inotify_add_watch
      case TARGET_NR_inotify_add_watch:
          p = lock_user_string(arg2);
          ret = get_errno(sys_inotify_add_watch(arg1, path(p), arg3));
          unlock_user(p, arg2, 0);
          break;
  #endif
! #ifdef TARGET_NR_inotify_rm_watch
      case TARGET_NR_inotify_rm_watch:
          ret = get_errno(sys_inotify_rm_watch(arg1, arg2));
          break;
--- 6029,6047 ----
          ret = do_futex(arg1, arg2, arg3, arg4, arg5, arg6);
          break;
  #endif
! #if defined(TARGET_NR_inotify_init) && defined(__NR_inotify_init)
      case TARGET_NR_inotify_init:
          ret = get_errno(sys_inotify_init());
          break;
  #endif
! #if defined(TARGET_NR_inotify_add_watch) && defined(__NR_inotify_add_watch)
      case TARGET_NR_inotify_add_watch:
          p = lock_user_string(arg2);
          ret = get_errno(sys_inotify_add_watch(arg1, path(p), arg3));
          unlock_user(p, arg2, 0);
          break;
  #endif
! #if defined(TARGET_NR_inotify_rm_watch) && defined(__NR_inotify_rm_watch)
      case TARGET_NR_inotify_rm_watch:
          ret = get_errno(sys_inotify_rm_watch(arg1, arg2));
          break;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-11-13  2:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-13  2:59 [Qemu-devel] PATCH: fix undefined function errors Sandra Loosemore

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).