From: Pablo Virolainen <Pablo.Virolainen@nomovok.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Small patch to fix mingw32 build
Date: Thu, 15 Feb 2007 13:10:22 +0200 [thread overview]
Message-ID: <45D43F9E.1030204@nomovok.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 665 bytes --]
When building windows binary (./configure --enable-mingw32) build fails
for following error message. Patch in the attachment.
gcc -Wall -O2 -g -fno-strict-aliasing -I. -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o dyngen.exe dyngen.c
dyngen.c: In function `load_object':
dyngen.c:715: parse error before `const'
dyngen.c:718: `p' undeclared (first use in this function)
dyngen.c:718: (Each undeclared identifier is reported only once
dyngen.c:718: for each function it appears in.)
dyngen.c:759: parse error before `int'
dyngen.c:766: `aux_size' undeclared (first use in this function)
dyngen.c:768: `j' undeclared (first use in this function)
[-- Attachment #2: qemu-snapshot-2007-02-13_05.patch --]
[-- Type: text/x-patch, Size: 2558 bytes --]
Only in qemu-snapshot-2007-02-13_05-patched: arm-linux-user
Only in qemu-snapshot-2007-02-13_05-patched: arm-softmmu
Only in qemu-snapshot-2007-02-13_05-patched: armeb-linux-user
Only in qemu-snapshot-2007-02-13_05-patched: config-host.h
Only in qemu-snapshot-2007-02-13_05-patched: config-host.mak
Only in qemu-snapshot-2007-02-13_05-patched: dyngen.E
diff -ru qemu-snapshot-2007-02-13_05/dyngen.c qemu-snapshot-2007-02-13_05-patched/dyngen.c
--- qemu-snapshot-2007-02-13_05/dyngen.c 2007-02-10 23:31:43.000000000 +0200
+++ qemu-snapshot-2007-02-13_05-patched/dyngen.c 2007-02-13 09:06:30.000000000 +0200
@@ -686,6 +686,8 @@
uint32_t *n_strtab;
EXE_SYM *sym;
EXE_RELOC *rel;
+ const char *p;
+ int aux_size, j;
fd = open(filename, O_RDONLY
#ifdef _WIN32
@@ -712,7 +714,6 @@
sdata = malloc(sizeof(void *) * fhdr.f_nscns);
memset(sdata, 0, sizeof(void *) * fhdr.f_nscns);
- const char *p;
for(i = 0;i < fhdr.f_nscns; i++) {
sec = &shdr[i];
if (!strstart(sec->s_name, ".bss", &p))
@@ -756,7 +757,6 @@
/* set coff symbol */
symtab = malloc(sizeof(struct coff_sym) * nb_syms);
- int aux_size, j;
for (i = 0, ext_sym = coff_symtab, sym = symtab; i < nb_syms; i++, ext_sym++, sym++) {
memset(sym, 0, sizeof(*sym));
sym->st_syment = ext_sym;
Only in qemu-snapshot-2007-02-13_05-patched: dyngen.c.~1.48.~
Only in qemu-snapshot-2007-02-13_05-patched: dyngen.exe
Only in qemu-snapshot-2007-02-13_05-patched: i386-linux-user
Only in qemu-snapshot-2007-02-13_05-patched: i386-softmmu
Only in qemu-snapshot-2007-02-13_05-patched: m68k-linux-user
Only in qemu-snapshot-2007-02-13_05-patched: mips-linux-user
Only in qemu-snapshot-2007-02-13_05-patched: mips-softmmu
Only in qemu-snapshot-2007-02-13_05-patched: mipsel-linux-user
Only in qemu-snapshot-2007-02-13_05-patched: mipsel-softmmu
Only in qemu-snapshot-2007-02-13_05-patched: ppc-linux-user
Only in qemu-snapshot-2007-02-13_05-patched: ppc-softmmu
Only in qemu-snapshot-2007-02-13_05-patched: qemu-doc.html
Only in qemu-snapshot-2007-02-13_05-patched: qemu-img.1
Only in qemu-snapshot-2007-02-13_05-patched: qemu-img.exe
Only in qemu-snapshot-2007-02-13_05-patched: qemu-img.pod
Only in qemu-snapshot-2007-02-13_05-patched: qemu-tech.html
Only in qemu-snapshot-2007-02-13_05-patched: qemu.1
Only in qemu-snapshot-2007-02-13_05-patched: qemu.pod
Only in qemu-snapshot-2007-02-13_05-patched: sparc-linux-user
Only in qemu-snapshot-2007-02-13_05-patched: sparc-softmmu
Only in qemu-snapshot-2007-02-13_05-patched: x86_64-softmmu
reply other threads:[~2007-02-15 11:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=45D43F9E.1030204@nomovok.com \
--to=pablo.virolainen@nomovok.com \
--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).