Skip to contentSkip to conversation

xen-4.6 compile error

DISCUSSION Olaf Hering 2 participants 4 messages Sep 30, 2015

lore
Share & tools
lore
#0 lore raw

Current xen-4.6-staging fails to compile on openSUSE 11.4 and SLES11

[ 1227s] gcc -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .libxl_psr.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -Werror -Wno-format-zero-length -Wmissing-declarations -Wno-declaration-after-statement -Wformat-nonliteral -I. -fPIC -pthread -I/usr/src/packages/BUILD/xen-4.6.0.0/non-dbg/tools/libxl/../../tools/libxc/include -I/usr/src/packages/BUILD/xen-4.6.0.0/non-dbg/tools/libxl/../../tools/include -I/usr/src/packages/BUILD/xen-4.6.0.0/non-dbg/tools/libxl/../../tools/libxc/include -I/usr/src/packages/BUILD/xen-4.6.0.0/non-dbg/tools/libxl/../../tools/include -I/usr/src/packages/
BUILD/xen-4.6.0.0/non-dbg/tools/libxl/../../tools/xenstore/include -I/usr/src/packages/BUILD/xen-4.6.0.0/non-dbg/tools/libxl/../../tools/include -I/usr/src/packages/BUILD/xen-4.6.0.0/non-dbg/tools/libxl/../../tools/blktap2/control -I/usr/src/packages/BUILD/xen-4.6.0.0/non-dbg/tools/libxl/../../tools/blktap2/include -I/usr/src/packages/BUILD/xen-4.6.0.0/non-dbg/tools/libxl/../../tools/include -I/usr/include/libnl3 -Wshadow -include /usr/src/packages/BUILD/xen-4.6.0.0/non-dbg/tools/libxl/../../tools/config.h -c -o libxl_psr.o libxl_psr.c
[ 1227s] cc1: warnings being treated as errors
[ 1227s] libxl_psr.c: In function 'libxl_psr_cat_get_l3_info':
[ 1227s] libxl_psr.c:342: error: declaration of 'socket' shadows a global declaration [ 1227s] /usr/include/sys/socket.h:105: error: shadowed declaration is here [ 1227s] make[3]: *** [libxl_psr.o] Error 1

The last snapshot from 2015-09-09 23:51:17 +0200 (21 days ago) built ok.

Olaf

#1 lore raw
Quoted 3 lines · Olaf Hering

Current xen-4.6-staging fails to compile on openSUSE 11.4 and SLES11

[ 1227s] gcc -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .libxl_psr.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -Werror -Wno-format-zero-length -Wmissing-declarations -Wno-declaration-after-statement -Wformat-nonliteral -I. -fPIC -pthread -I/usr/src/packages/BUILD/xen-4.6.0.0/non-dbg/tools/libxl/../../tools/libxc/include -I/usr/src/packages/BUILD/xen-4.6.0.0/non-dbg/tools/libxl/../../tools/include -I/usr/src/packages/BUILD/xen-4.6.0.0/non-dbg/tools/libxl/../../tools/libxc/include -I/usr/src/packages/BUILD/xen-4.6.0.0/non-dbg/tools/libxl/../../tools/include -I/usr/src/package

s/BUILD/xen-4.6.0.0/non-dbg/tools/libxl/../../tools/xenstore/include -I/usr/src/packages/BUILD/xen-4.6.0.0/non-dbg/tools/libxl/../../tools/include -I/usr/src/packages/BUILD/xen-4.6.0.0/non-dbg/tools/libxl/../../tools/blktap2/control -I/usr/src/packages/BUILD/xen-4.6.0.0/non-dbg/tools/libxl/../../tools/blktap2/include -I/usr/src/packages/BUILD/xen-4.6.0.0/non-dbg/tools/libxl/../../tools/include -I/usr/include/libnl3 -Wshadow -include /usr/src/packages/BUILD/xen-4.6.0.0/non-dbg/tools/libxl/../../tools/config.h -c -o libxl_psr.o libxl_psr.c

Quoted 6 lines

[ 1227s] cc1: warnings being treated as errors
[ 1227s] libxl_psr.c: In function 'libxl_psr_cat_get_l3_info':
[ 1227s] libxl_psr.c:342: error: declaration of 'socket' shadows a global declaration [ 1227s] /usr/include/sys/socket.h:105: error: shadowed declaration is here [ 1227s] make[3]: *** [libxl_psr.o] Error 1

I will provide a patch to fix it.

Quoted 8 lines

The last snapshot from 2015-09-09 23:51:17 +0200 (21 days ago) built ok.

Olaf

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw
Quoted 3 lines · Wei Liu
Quoted 1 line · Olaf Hering

[ 1227s] libxl_psr.c:342: error: declaration of 'socket' shadows a global declaration

I will provide a patch to fix it.

Thanks. Staging is broken as well as I noticed just now.

Olaf

#3 lore raw
Quoted 8 lines · Olaf Hering
Quoted 3 lines · Wei Liu
Quoted 1 line · Olaf Hering

[ 1227s] libxl_psr.c:342: error: declaration of 'socket' shadows a global declaration

I will provide a patch to fix it.

Thanks. Staging is broken as well as I noticed just now.

Yes. It's the same thing.

Fortunately it's trivial to fix. Can you have a look at the patch I just posted and give a Tested-by tag if possible?

Wei.

Quoted 1 line

Olaf