Enache Adrian wrote:
Drop this in ports/emulators/qemu/patches, and build the port.

I'd be grateful if anybody was going to actually test all this,
and tell me if it works.

Did you try it? You seem new to this list, but we generally like to see things that apply and compile without further ado.

Your patch to qemu to use kqemu did not fit this rule: you should provide such things as a complete "diff -u" against the existing port's CVS, so one can reliably apply it mechanically. I wound up applying it manually, by saving it in patches, doing make patch, and verifying.

But then qemu fails to compile (this is on i386). Did I miss something?

+++ Wed Oct 24 14:20:32 EDT 2007
===>  Checking files for qemu-0.9.0
`/usr/ports/distfiles/qemu-0.9.0.tar.gz' is up to date.
>> (SHA256) qemu-0.9.0.tar.gz: OK
===>  Extracting for qemu-0.9.0
===>  Patching for qemu-0.9.0
===>  Configuring for qemu-0.9.0
Install prefix    /usr/local
BIOS directory    /usr/local/share/qemu
binary directory  /usr/local/bin
Manual directory  /usr/local/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path       /usr/ports/emulators/qemu/w-qemu-0.9.0/qemu-0.9.0
C compiler        gcc
Host C compiler   gcc
make              gmake
install           install
host CPU          i386
host big endian   no
target list i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu mips-softmmu mipsel-softmmu arm-softmmu
gprof enabled     no
profiler          no
static build      no
SDL support       yes
SDL static link   no
mingw32 support   no
Adlib support     no
CoreAudio support no
ALSA support      no
DSound support    no
FMOD support      no
kqemu support     yes <-- forced on by your patch
Documentation     yes
===>  Building for qemu-0.9.0
gcc -DQEMU_TOOL -O2 -pipe -Wall -O2 -g -fno-strict-aliasing -I. -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -g -o qemu-img qemu-img.c cutils.c block.c block-raw.c block-cow.c block-qcow.c aes.c block-vmdk.c block-cloop.c block-dmg.c block-bochs.c block-vpc.c block-vvfat.c block-qcow2.c -lz -lrt
qemu-img.c: In function `img_create':
qemu-img.c:311: error: `ENOTSUP' undeclared (first use in this function)
qemu-img.c:311: error: (Each undeclared identifier is reported only once
qemu-img.c:311: error: for each function it appears in.)
qemu-img.c: In function `img_commit':
qemu-img.c:369: error: `ENOTSUP' undeclared (first use in this function)
qemu-img.c: In function `img_convert':
qemu-img.c:470: error: `ENOTSUP' undeclared (first use in this function)
block.c: In function `bdrv_create':
block.c:175: error: `ENOTSUP' undeclared (first use in this function)
block.c:175: error: (Each undeclared identifier is reported only once
block.c:175: error: for each function it appears in.)
block.c: In function `bdrv_commit':
block.c:469: error: `ENOTSUP' undeclared (first use in this function)
block.c: In function `bdrv_truncate':
block.c:691: error: `ENOTSUP' undeclared (first use in this function)
block.c: In function `bdrv_write_compressed':
block.c:919: error: `ENOTSUP' undeclared (first use in this function)
block.c: In function `bdrv_get_info':
block.c:929: error: `ENOTSUP' undeclared (first use in this function)
block.c: In function `bdrv_snapshot_create':
block.c:944: error: `ENOTSUP' undeclared (first use in this function)
block.c: In function `bdrv_snapshot_goto':
block.c:955: error: `ENOTSUP' undeclared (first use in this function)
block.c: In function `bdrv_snapshot_delete':
block.c:965: error: `ENOTSUP' undeclared (first use in this function)
block.c: In function `bdrv_snapshot_list':
block.c:976: error: `ENOTSUP' undeclared (first use in this function)
block.c: In function `bdrv_media_changed':
block.c:1303: error: `ENOTSUP' undeclared (first use in this function)
block.c: In function `bdrv_eject':
block.c:1321: error: `ENOTSUP' undeclared (first use in this function)
block-raw.c:28:17: aio.h: No such file or directory
block-raw.c:165: error: field `aiocb' has incomplete type
block-raw.c:169: error: `SIGUSR2' undeclared here (not in a function)
block-raw.c: In function `qemu_aio_init':
block-raw.c:191: error: storage size of `act' isn't known
block-raw.c:195: warning: implicit declaration of function `sigfillset'
block-raw.c:198: warning: implicit declaration of function `sigaction'
block-raw.c:191: warning: unused variable `act'
block-raw.c: In function `qemu_aio_poll':
block-raw.c:225: warning: implicit declaration of function `aio_error'
block-raw.c:233: warning: implicit declaration of function `aio_return'
block-raw.c: At top level:
block-raw.c:267: error: syntax error before "wait_oset"
block-raw.c:267: warning: type defaults to `int' in declaration of `wait_oset'
block-raw.c:267: warning: data definition has no type or storage class
block-raw.c: In function `qemu_aio_wait_start':
block-raw.c:271: error: syntax error before "set"
block-raw.c:275: warning: implicit declaration of function `sigemptyset'
block-raw.c:275: error: `set' undeclared (first use in this function)
block-raw.c:275: error: (Each undeclared identifier is reported only once
block-raw.c:275: error: for each function it appears in.)
block-raw.c:276: warning: implicit declaration of function `sigaddset'
block-raw.c:277: warning: implicit declaration of function `sigprocmask'
block-raw.c:277: error: `SIG_BLOCK' undeclared (first use in this function)
block-raw.c: In function `qemu_aio_wait':
block-raw.c:282: error: syntax error before "set"
block-raw.c:289: error: `set' undeclared (first use in this function)
block-raw.c:291: warning: implicit declaration of function `sigwait'
block-raw.c: In function `qemu_aio_wait_end':
block-raw.c:297: error: `SIG_SETMASK' undeclared (first use in this function)
block-raw.c: In function `raw_aio_setup':
block-raw.c:315: error: `SIGEV_SIGNAL' undeclared (first use in this function)
block-raw.c: In function `raw_aio_read':
block-raw.c:333: warning: implicit declaration of function `aio_read'
block-raw.c: In function `raw_aio_write':
block-raw.c:349: warning: implicit declaration of function `aio_write'
block-raw.c: In function `raw_aio_cancel':
block-raw.c:362: warning: implicit declaration of function `aio_cancel'
block-raw.c:363: error: `AIO_NOTCANCELED' undeclared (first use in this function)
block-raw.c: In function `raw_truncate':
block-raw.c:396: error: `ENOTSUP' undeclared (first use in this function)
block-raw.c: In function `raw_create':
block-raw.c:455: error: `ENOTSUP' undeclared (first use in this function)
block-raw.c: In function `raw_media_changed':
block-raw.c:793: error: `ENOTSUP' undeclared (first use in this function)
block-raw.c: In function `raw_eject':
block-raw.c:798: error: `ENOTSUP' undeclared (first use in this function)
block-raw.c: In function `raw_set_locked':
block-raw.c:803: error: `ENOTSUP' undeclared (first use in this function)
block-cow.c: In function `cow_create':
block-cow.c:212: error: `ENOTSUP' undeclared (first use in this function)
block-cow.c:212: error: (Each undeclared identifier is reported only once
block-cow.c:212: error: for each function it appears in.)
gmake: *** [qemu-img] Error 1
*** Error code 2

Stop in /usr/ports/emulators/qemu (line 2063 of /usr/ports/infrastructure/mk/bsd.port.mk).
--- Wed Oct 24 14:20:38 EDT 2007



Reply via email to