configure: fix libcap detection
PATCH 1/1 configure: fix libcap detection
- avoid assigned-but-not-used error
- avoid missing return error
--- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
configure +1 -1
@@ -2099,7 +2099,7 @@ if test "$cap" != "no" ; then cat > $TMPC <<EOF #include <stdio.h> #include <sys/capability.h> -int main(void) { cap_t caps; caps = cap_init(); } +int main(void) { cap_t caps; caps = cap_init(); (void)caps; return 0; } EOF if compile_prog "" "-lcap" ; then cap=yes
Signature · 1 line
1.7.11.3
Quoted 4 lines · Avi Kivity
- avoid assigned-but-not-used error
- avoid missing return errorSigned-off-by Avi Kivity <[email protected]>
There's already a patch on the list for this:
http://patchwork.ozlabs.org/patch/171704/
-- PMM
Quoted 24 lines · Avi Kivity
- avoid assigned-but-not-used error
- avoid missing return errorSigned-off-by Avi Kivity <[email protected]>--- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)configure +1
-1@@ -2099,7 +2099,7 @@ if test "$cap" != "no" ; then cat > $TMPC <<EOF #include <stdio.h> #include <sys/capability.h> -int main(void) { cap_t caps; caps = cap_init(); } +int main(void) { cap_t caps; caps = cap_init(); (void)caps; return 0; } EOF if compile_prog "" "-lcap" ; then cap=yesSignature · 1 line
1.7.11.3
I tested this patch and it fixes 9p detection for me.
Rich.
Signature · 4 lines
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v
Quoted 4 lines · Avi Kivity
- avoid assigned-but-not-used error
- avoid missing return errorSigned-off-by Avi Kivity <[email protected]>
Quoted 19 lines
--- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)configure +1
-1@@ -2099,7 +2099,7 @@ if test "$cap" != "no" ; then cat > $TMPC <<EOF #include <stdio.h> #include <sys/capability.h> -int main(void) { cap_t caps; caps = cap_init(); } +int main(void) { cap_t caps; caps = cap_init(); (void)caps; return 0; } EOF if compile_prog "" "-lcap" ; then cap=yesSignature · 1 line
1.7.11.3
Am 31.07.2012 08:52, schrieb Aneesh Kumar K.V:
Quoted 14 lines
Quoted 4 lines · Avi Kivity
- avoid assigned-but-not-used error
- avoid missing return errorSigned-off-by Avi Kivity <[email protected]>Acked-by Aneesh Kumar K.V <[email protected]>Quoted 4 lines
--- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines
Quoted 15 lines
configure +1
-1@@ -2099,7 +2099,7 @@ if test "$cap" != "no" ; then cat > $TMPC <<EOF #include <stdio.h> #include <sys/capability.h> -int main(void) { cap_t caps; caps = cap_init(); } +int main(void) { cap_t caps; caps = cap_init(); (void)caps; return 0; } EOF if compile_prog "" "-lcap" ; then cap=yesSignature · 1 line
1.7.11.3
Hi Anthony,
please apply http://patchwork.ozlabs.org/patch/171067/,
or we'll get a 4th bug fix for this.
Peter sent a series with this one and more patches on 2012-07-18 (1st: http://patchwork.ozlabs.org/patch/171686/).
At least the first 10 of them should be applied.
Please tell me if you need more information or support.
Cheers,
Stefan W.
Quoted 6 lines · Stefan Weil
please apply http://patchwork.ozlabs.org/patch/171067/,
or we'll get a 4th bug fix for this.Peter sent a series with this one and more patches on 2012-07-18 (1st: http://patchwork.ozlabs.org/patch/171686/).
At least the first 10 of them should be applied.
More accurately:
* apply the valgrind patch first:
http://patchwork.ozlabs.org/patch/174029/
* then apply the 11 patch configure series
I believe the valgrind test patch should fix the issues Blue Swirl was seeing with the 11-patch series (and I tested it on debian squeeze which I think has the same gcc Blue was using).
Patch 11/11 does enable -Werror on test code in a way which causes configure to fail noisily if it encounters a warning:
I think it's better to commit this early rather than late because then we can fix any lingering problems with odd hosts or configurations which I missed. (The noisy failure includes a clear message about how to work around it in the interim, which is better than our current situation IMHO.)
thanks
-- PMM
Quoted 17 lines · Peter Maydell
Quoted 6 lines · Stefan Weil
please apply http://patchwork.ozlabs.org/patch/171067/,
or we'll get a 4th bug fix for this.Peter sent a series with this one and more patches on 2012-07-18 (1st: http://patchwork.ozlabs.org/patch/171686/).
At least the first 10 of them should be applied.More accurately:
* apply the valgrind patch first:http://patchwork.ozlabs.org/patch/174029/* then apply the 11 patch configure series
I believe the valgrind test patch should fix the issues Blue Swirl was seeing with the 11-patch series (and I tested it on debian squeeze which I think has the same gcc Blue was using).
Quoted 7 lines
Patch 11/11 does enable -Werror on test code in a way which causes configure to fail noisily if it encounters a warning:
I think it's better to commit this early rather than late because then we can fix any lingering problems with odd hosts or configurations which I missed. (The noisy failure includes a clear message about how to work around it in the interim, which is better than our current situation IMHO.)
I'm still testing, at least up to 10/11 everything works.
Quoted 3 lines
thanks
-- PMM
Quoted 17 lines · Peter Maydell
Quoted 6 lines · Stefan Weil
please apply http://patchwork.ozlabs.org/patch/171067/,
or we'll get a 4th bug fix for this.Peter sent a series with this one and more patches on 2012-07-18 (1st: http://patchwork.ozlabs.org/patch/171686/).
At least the first 10 of them should be applied.More accurately:
* apply the valgrind patch first:http://patchwork.ozlabs.org/patch/174029/* then apply the 11 patch configure series
I believe the valgrind test patch should fix the issues Blue Swirl was seeing with the 11-patch series (and I tested it on debian squeeze which I think has the same gcc Blue was using).
Quoted 7 lines
Patch 11/11 does enable -Werror on test code in a way which causes configure to fail noisily if it encounters a warning:
I think it's better to commit this early rather than late because then we can fix any lingering problems with odd hosts or configurations which I missed. (The noisy failure includes a clear message about how to work around it in the interim, which is better than our current situation IMHO.)
There are still problems, this time with Debian testing:
ERROR: configure test passed without -Werror but failed with -Werror. This is probably a bug in the configure script. The failing command will be at the bottom of config.log.
You can run configure with --disable-werror to bypass this check.
f--19750-.exe /tmp/qemu-conf--19750-.c -Wl,-z,relro -Wl,-z,now -pie -m64 -g /tmp/qemu-conf--19750-.c:1:31: fatal error: valgrind/valgrind.h: No such file or directory
compilation terminated.
gcc -fPIE -DPIE -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fstack-protector-all -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -I/usr/include/libpng12 -I/usr/include/nss -I/usr/include/nspr -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -o /tmp/qemu-conf--19750-.exe /tmp/qemu-conf--19750-.c -Wl,-z,relro -Wl,-z,now -pie -m64 -g
gcc -Werror -fPIE -DPIE -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fstack-protector-all -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -I/usr/include/libpng12 -I/usr/include/nss -I/usr/include/nspr -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -o /tmp/qemu-conf--19750-.exe /tmp/qemu-conf--19750-.c -Wl,-z,relro -Wl,-z,now -pie -m64 -g
Quoted 3 lines
thanks
-- PMM
Quoted 13 lines · Blue Swirl
Quoted 11 lines · Peter Maydell
I believe the valgrind test patch should fix the issues Blue Swirl was seeing with the 11-patch series (and I tested it on debian squeeze which I think has the same gcc Blue was using).
Patch 11/11 does enable -Werror on test code in a way which causes configure to fail noisily if it encounters a warning:
I think it's better to commit this early rather than late because then we can fix any lingering problems with odd hosts or configurations which I missed. (The noisy failure includes a clear message about how to work around it in the interim, which is better than our current situation IMHO.)
Quoted 1 line
There are still problems, this time with Debian testing.
Hmm. Can we apply valgrind-patch + 1-10 for now? I think that should be OK, and it would stem the flow of people submitting further duplicate patches.
I'll look at the Debian testing issue.
-- PMM
Quoted 34 lines · Stefan Weil
Am 31.07.2012 08:52, schrieb Aneesh Kumar K.V:
Quoted 14 lines
Quoted 4 lines · Avi Kivity
- avoid assigned-but-not-used error
- avoid missing return errorSigned-off-by Avi Kivity <[email protected]>Acked-by Aneesh Kumar K.V <[email protected]>Quoted 4 lines
--- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 15 lines
Quoted 15 lines
configure +1
-1@@ -2099,7 +2099,7 @@ if test "$cap" != "no" ; then cat > $TMPC <<EOF #include <stdio.h> #include <sys/capability.h> -int main(void) { cap_t caps; caps = cap_init(); } +int main(void) { cap_t caps; caps = cap_init(); (void)caps; return 0; } EOF if compile_prog "" "-lcap" ; then cap=yesSignature · 1 line
1.7.11.3Hi Anthony,
Quoted 2 lines
please apply http://patchwork.ozlabs.org/patch/171067/,
or we'll get a 4th bug fix for this.
I sent a pull request for VirtFS taking the patch done by you found at
http://patchwork.ozlabs.org/patch/171704/
That patch is important for VirtFS because without that VirtFS won't be enabled in the build.
Let me know if you want me to redo the pull request.
-aneesh