The master branch qemu compiles failed.
Hi,
Qemu compiles failed.
./configure --enable-debug --target-list=x86_64-softmmu make -j
net/l2tpv3.c: In function ‘net_l2tpv3_process_queue’:net/l2tpv3.c:368: error: invalid use of undefined type ‘struct mmsghdr’ net/l2tpv3.c:369: error: dereferencing pointer to incomplete type net/l2tpv3.c:370: error: dereferencing pointer to incomplete type net/l2tpv3.c:371: error: dereferencing pointer to incomplete type net/l2tpv3.c: In function ‘net_l2tpv3_send’:net/l2tpv3.c:445: error: invalid use of undefined type ‘struct mmsghdr’ net/l2tpv3.c:448: warning: implicit declaration of function ‘recvmmsg’ net/l2tpv3.c:448: warning: nested extern declaration of ‘recvmmsg’ net/l2tpv3.c: In function ‘destroy_vector’:net/l2tpv3.c:472: error: dereferencing pointer to incomplete type net/l2tpv3.c:473: error: dereferencing pointer to incomplete type net/l2tpv3.c:478: error: dereferencing pointer to incomplete type net/l2tpv3.c:480: error: increment of pointer to unknown structure net/l2tpv3.c:480: error: arithmetic on pointer to an incomplete type net/l2tpv3.c: In function ‘build_l2tpv3_vector’:net/l2tpv3.c:492: error: invalid application of ‘sizeof’ to incomplete type ‘struct mmsghdr’ net/l2tpv3.c:495: error: dereferencing pointer to incomplete type net/l2tpv3.c:496: error: dereferencing pointer to incomplete type net/l2tpv3.c:498: error: dereferencing pointer to incomplete type net/l2tpv3.c:504: error: dereferencing pointer to incomplete type net/l2tpv3.c:505: error: dereferencing pointer to incomplete type net/l2tpv3.c:506: error: dereferencing pointer to incomplete type net/l2tpv3.c:507: error: dereferencing pointer to incomplete type net/l2tpv3.c:508: error: increment of pointer to unknown structure net/l2tpv3.c:508: error: arithmetic on pointer to an incomplete type
Best regards
Chenliang
Il 01/07/2014 10:00, ChenLiang ha scritto:
Quoted 21 lines
./configure --enable-debug --target-list=x86_64-softmmu make -j
net/l2tpv3.c: In function ‘net_l2tpv3_process_queue’:net/l2tpv3.c:368: error: invalid use of undefined type ‘struct mmsghdr’net/l2tpv3.c:369: error: dereferencing pointer to incomplete typenet/l2tpv3.c:370: error: dereferencing pointer to incomplete typenet/l2tpv3.c:371: error: dereferencing pointer to incomplete typenet/l2tpv3.c: In function ‘net_l2tpv3_send’:net/l2tpv3.c:445: error: invalid use of undefined type ‘struct mmsghdr’net/l2tpv3.c:448: warning: implicit declaration of function ‘recvmmsg’net/l2tpv3.c:448: warning: nested extern declaration of ‘recvmmsg’net/l2tpv3.c: In function ‘destroy_vector’:net/l2tpv3.c:472: error: dereferencing pointer to incomplete typenet/l2tpv3.c:473: error: dereferencing pointer to incomplete typenet/l2tpv3.c:478: error: dereferencing pointer to incomplete typenet/l2tpv3.c:480: error: increment of pointer to unknown structurenet/l2tpv3.c:480: error: arithmetic on pointer to an incomplete typenet/l2tpv3.c: In function ‘build_l2tpv3_vector’:net/l2tpv3.c:492: error: invalid application of ‘sizeof’ to incomplete type ‘struct mmsghdr’net/l2tpv3.c:495: error: dereferencing pointer to incomplete type
Quoted 8 lines
net/l2tpv3.c:496: error: dereferencing pointer to incomplete typenet/l2tpv3.c:498: error: dereferencing pointer to incomplete typenet/l2tpv3.c:504: error: dereferencing pointer to incomplete typenet/l2tpv3.c:505: error: dereferencing pointer to incomplete typenet/l2tpv3.c:506: error: dereferencing pointer to incomplete typenet/l2tpv3.c:507: error: dereferencing pointer to incomplete typenet/l2tpv3.c:508: error: increment of pointer to unknown structurenet/l2tpv3.c:508: error: arithmetic on pointer to an incomplete type
What OS and, if Linux, what distro?
Paolo
Quoted 34 lines · Paolo Bonzini
Il 01/07/2014 10:00, ChenLiang ha scritto:
Quoted 22 lines
./configure --enable-debug --target-list=x86_64-softmmu make -j
net/l2tpv3.c: In function ‘net_l2tpv3_process_queue’:net/l2tpv3.c:368: error: invalid use of undefined type ‘struct mmsghdr’net/l2tpv3.c:369: error: dereferencing pointer to incomplete typenet/l2tpv3.c:370: error: dereferencing pointer to incomplete typenet/l2tpv3.c:371: error: dereferencing pointer to incomplete typenet/l2tpv3.c: In function ‘net_l2tpv3_send’:net/l2tpv3.c:445: error: invalid use of undefined type ‘struct mmsghdr’net/l2tpv3.c:448: warning: implicit declaration of function ‘recvmmsg’net/l2tpv3.c:448: warning: nested extern declaration of ‘recvmmsg’net/l2tpv3.c: In function ‘destroy_vector’:net/l2tpv3.c:472: error: dereferencing pointer to incomplete typenet/l2tpv3.c:473: error: dereferencing pointer to incomplete typenet/l2tpv3.c:478: error: dereferencing pointer to incomplete typenet/l2tpv3.c:480: error: increment of pointer to unknown structurenet/l2tpv3.c:480: error: arithmetic on pointer to an incomplete typenet/l2tpv3.c: In function ‘build_l2tpv3_vector’:net/l2tpv3.c:492: error: invalid application of ‘sizeof’ to incomplete type ‘struct mmsghdr’net/l2tpv3.c:495: error: dereferencing pointer to incomplete typeQuoted 8 lines
net/l2tpv3.c:496: error: dereferencing pointer to incomplete typenet/l2tpv3.c:498: error: dereferencing pointer to incomplete typenet/l2tpv3.c:504: error: dereferencing pointer to incomplete typenet/l2tpv3.c:505: error: dereferencing pointer to incomplete typenet/l2tpv3.c:506: error: dereferencing pointer to incomplete typenet/l2tpv3.c:507: error: dereferencing pointer to incomplete typenet/l2tpv3.c:508: error: increment of pointer to unknown structurenet/l2tpv3.c:508: error: arithmetic on pointer to an incomplete type
Quoted 1 line
What OS and, if Linux, what distro?
FWIW I get these errors (and some others related to conflicting uint64_t definitions) on this:
CentOS release 5.6 (Final)
Thanks,
Laurent
Quoted 3 lines
Paolo
Quoted 31 lines · Paolo Bonzini
Il 01/07/2014 10:00, ChenLiang ha scritto:
Quoted 21 lines
./configure --enable-debug --target-list=x86_64-softmmu make -j
net/l2tpv3.c: In function ‘net_l2tpv3_process_queue’:net/l2tpv3.c:368: error: invalid use of undefined type ‘struct mmsghdr’net/l2tpv3.c:369: error: dereferencing pointer to incomplete typenet/l2tpv3.c:370: error: dereferencing pointer to incomplete typenet/l2tpv3.c:371: error: dereferencing pointer to incomplete typenet/l2tpv3.c: In function ‘net_l2tpv3_send’:net/l2tpv3.c:445: error: invalid use of undefined type ‘struct mmsghdr’net/l2tpv3.c:448: warning: implicit declaration of function ‘recvmmsg’net/l2tpv3.c:448: warning: nested extern declaration of ‘recvmmsg’net/l2tpv3.c: In function ‘destroy_vector’:net/l2tpv3.c:472: error: dereferencing pointer to incomplete typenet/l2tpv3.c:473: error: dereferencing pointer to incomplete typenet/l2tpv3.c:478: error: dereferencing pointer to incomplete typenet/l2tpv3.c:480: error: increment of pointer to unknown structurenet/l2tpv3.c:480: error: arithmetic on pointer to an incomplete typenet/l2tpv3.c: In function ‘build_l2tpv3_vector’:net/l2tpv3.c:492: error: invalid application of ‘sizeof’ to incomplete type ‘struct mmsghdr’net/l2tpv3.c:495: error: dereferencing pointer to incomplete typeQuoted 8 lines
net/l2tpv3.c:496: error: dereferencing pointer to incomplete typenet/l2tpv3.c:498: error: dereferencing pointer to incomplete typenet/l2tpv3.c:504: error: dereferencing pointer to incomplete typenet/l2tpv3.c:505: error: dereferencing pointer to incomplete typenet/l2tpv3.c:506: error: dereferencing pointer to incomplete typenet/l2tpv3.c:507: error: dereferencing pointer to incomplete typenet/l2tpv3.c:508: error: increment of pointer to unknown structurenet/l2tpv3.c:508: error: arithmetic on pointer to an incomplete type
Quoted 6 lines
What OS and, if Linux, what distro?
Paolo
.
linux 3.0.93-0.8-default
Quoted 1 line · ChenLiang
Qemu compiles failed.
What is your kernel version?
I guess you're running an old kernel without recvmmsg(). So the kernel headers are missing the mmsghdr struct.
If you would like to contribute a patch to fix this, please introduce a CONFIG_L2TPV3 variable in ./configure and check for mmsghdr with a small C test that declares a variable using this struct.
Then modify net/Makefile.objs to switch l2tpv3.o from CONFIG_LINUX to your new CONFIG_L2TPV3 variable. This way it only gets built on hosts that support mmsghdr.
You can find examples of other compile tests in ./configure.
If not, let us know and either I or Anton will fix this problem.
Stefan
Quoted 16 lines
-----Original Message-----
From: Stefan Hajnoczi [mailto:[email protected]]
Sent: Tuesday, July 01, 2014 4:23 PM
To: chenliang (T)
Cc: [email protected]; [email protected]; Paolo Bonzini; Gonglei (Arei); Anton Ivanov
Subject: Re: [Qemu-devel] The master branch qemu compiles failed.Quoted 1 line · ChenLiang
Qemu compiles failed.
What is your kernel version?
I guess you're running an old kernel without
recvmmsg(). So the kernel headers are missing the mmsghdr struct.
Quoted 8 lines
If you would like to contribute a patch to fix this, please introduce a
CONFIG_L2TPV3variable in ./configure and check for mmsghdr with a small C test that declares a variable using this struct.Then modify
net/Makefile.objsto switch l2tpv3.o fromCONFIG_LINUXto your newCONFIG_L2TPV3variable. This way it only gets built on hosts that support mmsghdr.
OK, I will have a try.
Quoted 5 lines
You can find examples of other compile tests in ./configure.
If not, let us know and either I or Anton will fix this problem.
Stefan
Best regards,
-Gonglei