* [Qemu-devel] The master branch qemu compiles failed.
@ 2014-07-01 8:00 ChenLiang
2014-07-01 8:17 ` Paolo Bonzini
2014-07-01 8:23 ` Stefan Hajnoczi
0 siblings, 2 replies; 6+ messages in thread
From: ChenLiang @ 2014-07-01 8:00 UTC (permalink / raw)
To: qemu-devel, peter.maydell, Paolo Bonzini, Gonglei
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] The master branch qemu compiles failed.
2014-07-01 8:00 [Qemu-devel] The master branch qemu compiles failed ChenLiang
@ 2014-07-01 8:17 ` Paolo Bonzini
2014-07-01 8:24 ` Laurent Desnogues
2014-07-01 8:29 ` ChenLiang
2014-07-01 8:23 ` Stefan Hajnoczi
1 sibling, 2 replies; 6+ messages in thread
From: Paolo Bonzini @ 2014-07-01 8:17 UTC (permalink / raw)
To: ChenLiang, qemu-devel, peter.maydell, Gonglei
Il 01/07/2014 10:00, ChenLiang ha scritto:
> ./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
What OS and, if Linux, what distro?
Paolo
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] The master branch qemu compiles failed.
2014-07-01 8:00 [Qemu-devel] The master branch qemu compiles failed ChenLiang
2014-07-01 8:17 ` Paolo Bonzini
@ 2014-07-01 8:23 ` Stefan Hajnoczi
2014-07-01 9:35 ` Gonglei (Arei)
1 sibling, 1 reply; 6+ messages in thread
From: Stefan Hajnoczi @ 2014-07-01 8:23 UTC (permalink / raw)
To: ChenLiang; +Cc: Anton Ivanov, peter.maydell, Gonglei, qemu-devel, Paolo Bonzini
[-- Attachment #1: Type: text/plain, Size: 723 bytes --]
On Tue, Jul 01, 2014 at 04:00:52PM +0800, ChenLiang wrote:
> 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
[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] The master branch qemu compiles failed.
2014-07-01 8:17 ` Paolo Bonzini
@ 2014-07-01 8:24 ` Laurent Desnogues
2014-07-01 8:29 ` ChenLiang
1 sibling, 0 replies; 6+ messages in thread
From: Laurent Desnogues @ 2014-07-01 8:24 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: ChenLiang, Gonglei, qemu-devel, Peter Maydell
On Tue, Jul 1, 2014 at 10:17 AM, Paolo Bonzini <pbonzini@redhat.com> wrote:
> Il 01/07/2014 10:00, ChenLiang ha scritto:
>
>> ./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
>
>
> 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
>
> Paolo
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] The master branch qemu compiles failed.
2014-07-01 8:17 ` Paolo Bonzini
2014-07-01 8:24 ` Laurent Desnogues
@ 2014-07-01 8:29 ` ChenLiang
1 sibling, 0 replies; 6+ messages in thread
From: ChenLiang @ 2014-07-01 8:29 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: peter.maydell, Gonglei, qemu-devel
On 2014/7/1 16:17, Paolo Bonzini wrote:
> Il 01/07/2014 10:00, ChenLiang ha scritto:
>> ./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
>
> What OS and, if Linux, what distro?
>
> Paolo
>
> .
>
linux 3.0.93-0.8-default
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] The master branch qemu compiles failed.
2014-07-01 8:23 ` Stefan Hajnoczi
@ 2014-07-01 9:35 ` Gonglei (Arei)
0 siblings, 0 replies; 6+ messages in thread
From: Gonglei (Arei) @ 2014-07-01 9:35 UTC (permalink / raw)
To: Stefan Hajnoczi, chenliang (T)
Cc: Anton Ivanov, peter.maydell, qemu-devel, Paolo Bonzini
> -----Original Message-----
> From: Stefan Hajnoczi [mailto:stefanha@gmail.com]
> Sent: Tuesday, July 01, 2014 4:23 PM
> To: chenliang (T)
> Cc: qemu-devel@nongnu.org; peter.maydell@linaro.org; Paolo Bonzini;
> Gonglei (Arei); Anton Ivanov
> Subject: Re: [Qemu-devel] The master branch qemu compiles failed.
>
> On Tue, Jul 01, 2014 at 04:00:52PM +0800, ChenLiang wrote:
> > 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.
>
OK, I will have a try.
> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-07-01 9:36 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-01 8:00 [Qemu-devel] The master branch qemu compiles failed ChenLiang
2014-07-01 8:17 ` Paolo Bonzini
2014-07-01 8:24 ` Laurent Desnogues
2014-07-01 8:29 ` ChenLiang
2014-07-01 8:23 ` Stefan Hajnoczi
2014-07-01 9:35 ` Gonglei (Arei)
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.