LINUX.ORG.RU

QEMU старая версия

 


0

1

Здравствуйте Хочу установить старую версию QEMU. Там еще есть процессор prep Вот архив https://yadi.sk/d/Kts2rQuG8IWKrQ У меня Debian. Ввожу

viktor@debian:~/qemu-2.2.1$ sudo ./configure --prefix=/usr/local/QEMU3_0
viktor@debian:~/qemu-2.2.1$ sudo make install

Получаю

 	
CHK version_gen.h
  LINK  qemu-ga
/usr/bin/ld: qga/commands-posix.o: in function `dev_major_minor':
/home/viktor/qemu-2.2.1/qga/commands-posix.c:618: undefined reference to `major'
/usr/bin/ld: /home/viktor/qemu-2.2.1/qga/commands-posix.c:619: undefined reference to `minor'
collect2: error: ld returned 1 exit status
make: *** [Makefile:284: qemu-ga] Ошибка 1
Подскажите пожалуйста, как установить

Ответ на: комментарий от fresa
	CHK version_gen.h
  TEST  tests/qapi-schema/comments.out
  TEST  tests/qapi-schema/empty.out
  TEST  tests/qapi-schema/funny-char.out
  TEST  tests/qapi-schema/indented-expr.out
  TEST  tests/qapi-schema/missing-colon.out
  TEST  tests/qapi-schema/missing-comma-list.out
  TEST  tests/qapi-schema/missing-comma-object.out
  TEST  tests/qapi-schema/non-objects.out
  TEST  tests/qapi-schema/qapi-schema-test.out
  TEST  tests/qapi-schema/quoted-structural-chars.out
  TEST  tests/qapi-schema/trailing-comma-list.out
  TEST  tests/qapi-schema/trailing-comma-object.out
  TEST  tests/qapi-schema/unclosed-list.out
  TEST  tests/qapi-schema/unclosed-object.out
  TEST  tests/qapi-schema/unclosed-string.out
  TEST  tests/qapi-schema/duplicate-key.out
  TEST  tests/qapi-schema/union-invalid-base.out
  TEST  tests/qapi-schema/flat-union-no-base.out
  TEST  tests/qapi-schema/flat-union-invalid-discriminator.out
  TEST  tests/qapi-schema/flat-union-invalid-branch-key.out
  TEST  tests/qapi-schema/flat-union-reverse-define.out
  TEST  tests/qapi-schema/flat-union-string-discriminator.out
  TEST  tests/qapi-schema/include-simple.out
  TEST  tests/qapi-schema/include-relpath.out
  TEST  tests/qapi-schema/include-format-err.out
  TEST  tests/qapi-schema/include-non-file.out
  TEST  tests/qapi-schema/include-no-file.out
  TEST  tests/qapi-schema/include-before-err.out
  TEST  tests/qapi-schema/include-nested-err.out
  TEST  tests/qapi-schema/include-self-cycle.out
  TEST  tests/qapi-schema/include-cycle.out
  TEST  tests/qapi-schema/include-repetition.out
  TEST  tests/qapi-schema/event-nest-struct.out
GTESTER tests/check-qdict
GTESTER tests/check-qfloat
GTESTER tests/check-qint
GTESTER tests/check-qstring
GTESTER tests/check-qlist
GTESTER tests/check-qjson
GTESTER tests/test-qmp-output-visitor
GTESTER tests/test-qmp-input-visitor
GTESTER tests/test-qmp-input-strict
GTESTER tests/test-qmp-commands
GTESTER tests/test-string-input-visitor
GTESTER tests/test-string-output-visitor
Viktor2004 ()

Наверное, в /home/viktor/qemu-2.2.1/qga/commands-posix.c не хватает:

#include <sys/sysmacros.h>

Это макросы, а компилятор считает их функциями и не находит.

xaizek ★★★★★ ()
Ответ на: комментарий от xaizek

Заменил макрос на его реальное обозначение. Далее опять высыпались ошибки Почему же два года назад у меня эта программа установилась без проблем?

CHK version_gen.h
  CC    qga/commands-posix.o
  LINK  qemu-ga
  CC    hw/block/xen_disk.o
In file included from /home/viktor/qemu-2.2.1/include/hw/xen/xen_backend.h:4,
                 from hw/block/xen_disk.c:39:
/home/viktor/qemu-2.2.1/include/hw/xen/xen_common.h:109:9: error: unknown type name ‘xc_evtchn’
 typedef xc_evtchn *XenEvtchn;
         ^~~~~~~~~
/home/viktor/qemu-2.2.1/include/hw/xen/xen_common.h:110:9: error: unknown type name ‘xc_gnttab’
 typedef xc_gnttab *XenGnttab;
         ^~~~~~~~~
/home/viktor/qemu-2.2.1/include/hw/xen/xen_common.h: In function ‘xen_xc_evtchn_open’:
/home/viktor/qemu-2.2.1/include/hw/xen/xen_common.h:118:12: warning: implicit declaration of function ‘xc_evtchn_open’; did you mean ‘xen_xc_evtchn_open’? [-Wimplicit-function-declaration]
     return xc_evtchn_open(logger, open_flags);
            ^~~~~~~~~~~~~~
            xen_xc_evtchn_open
/home/viktor/qemu-2.2.1/include/hw/xen/xen_common.h:118:12: warning: nested extern declaration of ‘xc_evtchn_open’ [-Wnested-externs]
/home/viktor/qemu-2.2.1/include/hw/xen/xen_common.h:118:12: warning: returning ‘int’ from a function with return type ‘XenEvtchn’ {aka ‘int *’} makes pointer from integer without a cast [-Wint-conversion]
     return xc_evtchn_open(logger, open_flags);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/viktor/qemu-2.2.1/include/hw/xen/xen_common.h: In function ‘xen_xc_gnttab_open’:
/home/viktor/qemu-2.2.1/include/hw/xen/xen_common.h:124:12: warning: implicit declaration of function ‘xc_gnttab_open’; did you mean ‘xc_gnttab_op’? [-Wimplicit-function-declaration]
     return xc_gnttab_open(logger, open_flags);
            ^~~~~~~~~~~~~~
            xc_gnttab_op
/home/viktor/qemu-2.2.1/include/hw/xen/xen_common.h:124:12: warning: nested extern declaration of ‘xc_gnttab_open’ [-Wnested-externs]
/home/viktor/qemu-2.2.1/include/hw/xen/xen_common.h:124:12: warning: returning ‘int’ from a function with return type ‘XenGnttab’ {aka ‘int *’} makes pointer from integer without a cast [-Wint-conversion]
     return xc_gnttab_open(logger, open_flags);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/viktor/qemu-2.2.1/include/hw/xen/xen_common.h: In function ‘xen_xc_hvm_inject_msi’:
/home/viktor/qemu-2.2.1/include/hw/xen/xen_common.h:158:12: warning: implicit declaration of function ‘xc_hvm_inject_msi’; did you mean ‘xen_hvm_inject_msi’? [-Wimplicit-function-declaration]
     return xc_hvm_inject_msi(xen_xc, dom, addr, data);
            ^~~~~~~~~~~~~~~~~
            xen_hvm_inject_msi
/home/viktor/qemu-2.2.1/include/hw/xen/xen_common.h:158:12: warning: nested extern declaration of ‘xc_hvm_inject_msi’ [-Wnested-externs]
hw/block/xen_disk.c: In function ‘destroy_grant’:
hw/block/xen_disk.c:177:9: warning: implicit declaration of function ‘xc_gnttab_munmap’; did you mean ‘xc_gnttab_op’? [-Wimplicit-function-declaration]
     if (xc_gnttab_munmap(gnt, grant->page, 1) != 0) {
         ^~~~~~~~~~~~~~~~
         xc_gnttab_op
hw/block/xen_disk.c:177:9: warning: nested extern declaration of ‘xc_gnttab_munmap’ [-Wnested-externs]
hw/block/xen_disk.c: In function ‘ioreq_map’:
hw/block/xen_disk.c:416:24: warning: implicit declaration of function ‘xc_gnttab_map_grant_refs’; did you mean ‘xc_gnttab_map_table_v2’? [-Wimplicit-function-declaration]
         ioreq->pages = xc_gnttab_map_grant_refs
                        ^~~~~~~~~~~~~~~~~~~~~~~~
                        xc_gnttab_map_table_v2
hw/block/xen_disk.c:416:24: warning: nested extern declaration of ‘xc_gnttab_map_grant_refs’ [-Wnested-externs]
hw/block/xen_disk.c:416:22: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
         ioreq->pages = xc_gnttab_map_grant_refs
                      ^
hw/block/xen_disk.c:432:30: warning: implicit declaration of function ‘xc_gnttab_map_grant_ref’; did you mean ‘xc_gnttab_map_table_v2’? [-Wimplicit-function-declaration]
             ioreq->page[i] = xc_gnttab_map_grant_ref
                              ^~~~~~~~~~~~~~~~~~~~~~~
                              xc_gnttab_map_table_v2
hw/block/xen_disk.c:432:30: warning: nested extern declaration of ‘xc_gnttab_map_grant_ref’ [-Wnested-externs]
hw/block/xen_disk.c:432:28: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
             ioreq->page[i] = xc_gnttab_map_grant_ref
                            ^
hw/block/xen_disk.c: In function ‘blk_alloc’:
hw/block/xen_disk.c:765:9: warning: implicit declaration of function ‘xc_gnttab_set_max_grants’; did you mean ‘xc_gnttab_get_version’? [-Wimplicit-function-declaration]
     if (xc_gnttab_set_max_grants(xendev->gnttabdev,
         ^~~~~~~~~~~~~~~~~~~~~~~~
         xc_gnttab_get_version
hw/block/xen_disk.c:765:9: warning: nested extern declaration of ‘xc_gnttab_set_max_grants’ [-Wnested-externs]
hw/block/xen_disk.c: In function ‘blk_connect’:
hw/block/xen_disk.c:979:19: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
     blkdev->sring = xc_gnttab_map_grant_ref(blkdev->xendev.gnttabdev,
                   ^
make: *** [/home/viktor/qemu-2.2.1/rules.mak:57: hw/block/xen_disk.o] Ошибка 1

Viktor2004 ()

Вообще, ты можешь попробовать скачать готовый пакет из архива дебиана и установить в ручную. Только вот беда, у меня на арче например, он версии 4.2.0 и

Зависит от : virglrenderer sdl2 vte3 libpulse brltty seabios gnutls libpng libaio numactl jemalloc xfsprogs libnfs lzo snappy curl vde2 libcap-ng spice libcacard usbredir libslirp libssh

Я думаю, эти библиотеки давно обновились и ты не сможешь сделать downgrade зависимостей до нужной версии никак.
Можно ещё, специально для этого, накатить старую тухлую версию дебиана и воспользоваться пакетом оттуда. Но по мне, так проще попробовать разобраться с новой предложенной взамен машиной.

fehhner ★★★★★ ()