[pve-devel] backup RFC preview

Alexandre DERUMIER aderumier at odiso.com
Mon Nov 19 09:17:45 CET 2012


Hi,
I'm trying to build qemu with your patchs (I'm a bit late,I didn't have time last week)

I have errors on missing glib.h, softfloat.h, but files exists....

/root/qemu/fpu/softfloat.h
/usr/include/glib-2.0/glib.h


any idea ? maybe some missing envvars ?



#./configure --prefix=/usr --datadir=/usr/share --docdir=/usr/share/doc/pve-qemu-kvm --sysconfdir=/etc --disable-xen --enable-vnc-tls --enable-sdl --enable-uuid --enable-linux-aio --enable-rbd --enable-libiscsi --audio-drv-list="alsa"

# make
gcc -O2 -D_FORTIFY_SOURCE=2 -g   -Wl,--warn-common -Wl,-z,relro -Wl,-z,now -pie -m64 -g   vma.c   -o vma
vma.c:22:18: error: glib.h: No such file or directory
In file included from qemu-common.h:125,
                 from vma.c:24:
bswap.h:7:23: error: softfloat.h: No such file or directory
In file included from qemu-common.h:125,
                 from vma.c:24:
bswap.h:242: error: expected specifier-qualifier-list before ‘float32’
bswap.h:247: error: expected specifier-qualifier-list before ‘float64’
bswap.h:263: error: expected specifier-qualifier-list before ‘floatx80’
bswap.h:271: error: expected specifier-qualifier-list before ‘float128’
bswap.h:502: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ldfl_le_p’
bswap.h:507: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ldfq_le_p’
bswap.h:512: error: expected declaration specifiers or ‘...’ before ‘float32’
bswap.h: In function ‘stfl_le_p’:
bswap.h:514: error: ‘float32’ undeclared (first use in this function)
bswap.h:514: error: (Each undeclared identifier is reported only once
bswap.h:514: error: for each function it appears in.)
bswap.h:514: error: expected expression before ‘)’ token
bswap.h: At top level:
bswap.h:517: error: expected declaration specifiers or ‘...’ before ‘float64’
bswap.h: In function ‘stfq_le_p’:
bswap.h:519: error: ‘float64’ undeclared (first use in this function)
bswap.h:519: error: expected expression before ‘)’ token
bswap.h: At top level:
bswap.h:616: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ldfl_be_p’
bswap.h:626: error: expected declaration specifiers or ‘...’ before ‘float32’
bswap.h: In function ‘stfl_be_p’:
bswap.h:629: error: expected specifier-qualifier-list before ‘float32’
bswap.h:632: error: ‘union <anonymous>’ has no member named ‘f’
bswap.h:632: error: ‘v’ undeclared (first use in this function)
bswap.h:633: error: ‘union <anonymous>’ has no member named ‘i’
bswap.h: At top level:
bswap.h:636: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ldfq_be_p’
bswap.h:644: error: expected declaration specifiers or ‘...’ before ‘float64’
bswap.h: In function ‘stfq_be_p’:
bswap.h:647: error: ‘CPU_DoubleU’ has no member named ‘d’
bswap.h:647: error: ‘v’ undeclared (first use in this function)
bswap.h:648: error: ‘CPU_DoubleU’ has no member named ‘l’
bswap.h:649: error: ‘CPU_DoubleU’ has no member named ‘l’
In file included from main-loop.h:28,
                 from qemu-timer.h:5,
                 from sysemu.h:8,
                 from vma.c:28:
qemu-aio.h: At top level:
qemu-aio.h:47: error: expected specifier-qualifier-list before ‘GSource’
qemu-aio.h:229: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
In file included from vma.c:31:
vma.h:115: error: expected declaration specifiers or ‘...’ before ‘gpointer’
vma.h:131: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
vma.h:132: error: expected declaration specifiers or ‘...’ before ‘guint8’
vma.h:133: error: expected declaration specifiers or ‘...’ before ‘guint8’
vma.c: In function ‘extract_devname’:
vma.c:54: warning: assignment makes pointer from integer without a cast
vma.c:58: warning: assignment makes pointer from integer without a cast
vma.c: In function ‘print_content’:
vma.c:75: error: ‘GList’ undeclared (first use in this function)
vma.c:75: error: ‘l’ undeclared (first use in this function)
vma.c:85: error: too many arguments to function ‘vma_reader_get_device_info’
vma.c: In function ‘extract_content’:
vma.c:180: error: ‘GList’ undeclared (first use in this function)
vma.c:180: error: ‘l’ undeclared (first use in this function)
vma.c:184: warning: initialization makes pointer from integer without a cast
vma.c:185: error: ‘GError’ undeclared (first use in this function)
vma.c:185: error: ‘err’ undeclared (first use in this function)
vma.c:186: error: ‘gchar’ undeclared (first use in this function)
vma.c:186: error: expected expression before ‘)’ token
vma.c:191: error: ‘GHashTable’ undeclared (first use in this function)
vma.c:191: error: ‘devmap’ undeclared (first use in this function)
vma.c:191: error: ‘g_str_hash’ undeclared (first use in this function)
vma.c:191: error: ‘g_str_equal’ undeclared (first use in this function)
vma.c:231: error: expected expression before ‘RestoreMap’
vma.c:232: warning: assignment makes pointer from integer without a cast
vma.c:233: warning: assignment makes pointer from integer without a cast
vma.c:243: error: too many arguments to function ‘vma_reader_get_device_info’
vma.c:257: warning: assignment makes pointer from integer without a cast
vma.c:273: warning: passing argument 2 of ‘vma_reader_register_bs’ makes pointer from integer without a cast
vma.h:133: note: expected ‘struct BlockDriverState *’ but argument is of type ‘int’
vma.c:273: error: incompatible type for argument 4 of ‘vma_reader_register_bs’
vma.h:133: note: expected ‘struct Error **’ but argument is of type ‘_Bool’
vma.c:273: error: too many arguments to function ‘vma_reader_register_bs’
vma.c:289: error: too many arguments to function ‘vma_reader_get_device_info’
vma.c:291: warning: initialization makes pointer from integer without a cast
vma.c:292: warning: initialization makes pointer from integer without a cast
vma.c: In function ‘create_archive’:
vma.c:345: error: ‘GList’ undeclared (first use in this function)
vma.c:345: error: ‘config_files’ undeclared (first use in this function)
vma.c:383: error: ‘l’ undeclared (first use in this function)
vma.c:387: error: ‘gsize’ undeclared (first use in this function)
vma.c:387: error: expected ‘;’ before ‘clen’
vma.c:388: error: ‘GError’ undeclared (first use in this function)
vma.c:388: error: ‘err’ undeclared (first use in this function)
vma.c:389: error: ‘clen’ undeclared (first use in this function)
vma.c:394: warning: passing argument 3 of ‘vma_writer_add_config’ makes integer from pointer without a cast
vma.h:115: note: expected ‘size_t’ but argument is of type ‘char *’
vma.c:394: error: too many arguments to function ‘vma_writer_add_config’
vma.c:421: error: expected expression before ‘BackupCB’
make: *** [vma] Error 1


----- Mail original ----- 

De: "Dietmar Maurer" <dietmar at proxmox.com> 
À: pve-devel at pve.proxmox.com 
Envoyé: Mardi 13 Novembre 2012 14:04:02 
Objet: [pve-devel] backup RFC preview 



This is a preview of the planed backup feature. 

The following patches are against latest qemu.git 

I plan to send the patch to the qemu-devel list next week. 

Before I do that, I would like to get some feedback about: 

* functionality 
* implementation style 
* possible improvements 

Feel free to ask questions ;-) 

- Dietmar 
_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 



More information about the pve-devel mailing list