Duplicate case values in linux-user/syscall.c (0.7.1)
When trying to build qemu 0.7.1 (on Debian), I get the following kind of errors:/home/jwarnier/debian/qemu-0.7.1/linux-user/syscall.c: In function `do_setsockopt':/home/jwarnier/debian/qemu-0.7.1/linux-user/syscall.c:647: error:
duplicate case value /home/jwarnier/debian/qemu-0.7.1/linux-user/syscall.c:550: error:
previously used here /home/jwarnier/debian/qemu-0.7.1/linux-user/syscall.c:650: error: `len' undeclared (first use in this function) /home/jwarnier/debian/qemu-0.7.1/linux-user/syscall.c:650: error: (Each undeclared identifier is reported only once /home/jwarnier/debian/qemu-0.7.1/linux-user/syscall.c:650: error: for each function it appears in.) /home/jwarnier/debian/qemu-0.7.1/linux-user/syscall.c:655: error:
invalid type argument of `unary *' /home/jwarnier/debian/qemu-0.7.1/linux-user/syscall.c:655: error:
invalid type argument of unary *' /home/jwarnier/debian/qemu-0.7.1/linux-user/syscall.c:655: warning: type defaults to int' in declaration of `type name' /home/jwarnier/debian/qemu-0.7.1/linux-user/syscall.c:655: error:
invalid type argument of unary *' /home/jwarnier/debian/qemu-0.7.1/linux-user/syscall.c:655: warning: type defaults to int' in declaration of `type name' /home/jwarnier/debian/qemu-0.7.1/linux-user/syscall.c:655: error:
invalid type argument of unary *' /home/jwarnier/debian/qemu-0.7.1/linux-user/syscall.c:655: warning: type defaults to int' in declaration of `type name' /home/jwarnier/debian/qemu-0.7.1/linux-user/syscall.c:655: error:
invalid type argument of unary *' /home/jwarnier/debian/qemu-0.7.1/linux-user/syscall.c:655: warning: type defaults to int' in declaration of type name' /home/jwarnier/debian/qemu-0.7.1/linux-user/syscall.c: In function do_getsockopt':/home/jwarnier/debian/qemu-0.7.1/linux-user/syscall.c:766: error:
duplicate case value /home/jwarnier/debian/qemu-0.7.1/linux-user/syscall.c:701: error:
previously used here
I could already reduce the number of errors, but this are too much for me.
Is this file autogenerated or so?
Thanks
Quoted 2 lines · Jérôme Warnier
When trying to build qemu 0.7.1 (on Debian), I get the following kind of errors:
[..]
Quoted 3 lines
I could already reduce the number of errors, but this are too much for me.
Is this file autogenerated or so?
Forget it, it works perfectly now.
It was due to patching several times the same file without ever unpatching.
Quoted 1 line
Thanks