[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-users] qemu-nbd.c:223:5: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
Hi,i try to build the xen-tools 4.5 unstable under tinycorelinx and i need to set some compilerflags, export CFLAGS="-mtune=generic -Os -pipe" export CXXFLAGS="-mtune=generic -Os -pipe" export LDFLAGS="-Wl,-O1" but when qemu comes to be build i get this : qemu-nbd.c: In function 'tcp_socket_incoming':qemu-nbd.c:223:5: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] cc1: all warnings being treated as errors make[3]: *** [qemu-nbd.o] Error 1 make[3]: *** Waiting for unfinished jobs.... block.c: In function 'bdrv_reopen_queue':block.c:1485:5: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] block.c: In function 'bdrv_aio_flush':block.c:4604:5: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] cc1: all warnings being treated as errors make[3]: *** [block.o] Error 1 make[3]: Leaving directory `/mnt/xvda1/xen/tools/qemu-xen-dir-remote' make[2]: *** [subdir-all-qemu-xen-dir] Error 2 make[2]: Leaving directory `/mnt/xvda1/xen/tools' make[1]: *** [subdirs-install] Error 2 make[1]: Leaving directory `/mnt/xvda1/xen/tools' make: *** [install-tools] Error 2afer reading around and doing some research , then if i am right i need to set "EXTRA_CFLAGS="-std=gnu99" . i tried to export this EXTRA Flag also to the envoirement but no luck. does anyone knows how can i resolve this problem ? best regard bobbi _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxx http://lists.xen.org/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |