lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 8 Feb 2012 11:11:52 -0500
From:	"devendra.aaru" <devendra.aaru@...il.com>
To:	Dongsu Park <advance38@...il.com>
Cc:	linux-kernel@...r.kernel.org, "Michael S. Tsirkin" <mst@...hat.com>
Subject: Re: tools/virtio: Compile errors

On Wed, Feb 8, 2012 at 11:04 AM, Dongsu Park <advance38@...il.com> wrote:
> Hi,
>
> there are compile problems under tools/virtio.
> If I simply run make,
>
> ~/linuxsrc/linux-3.2/tools/virtio $ make
> gcc -g -O2 -Wall -I. -I ../../usr/include/ -Wno-pointer-sign
> -fno-strict-overflow  -MMD   -c -o virtio_ring.o
> ../../drivers/virtio/virtio_ring.c
> ../../drivers/virtio/virtio_ring.c:24:26: fatal error: linux/module.h:
> No such file or directory
> compilation terminated.
> make: *** [virtio_ring.o] Error 1
>
compile with make mod.
> Of course that's supposed to be a simple error in CFLAGS in Makefile,
> so I tried it again modifying CFLAGS, from "-I ../../usr/include" to
> "-I ../../include". But this time it's another compile error.
>
> ~/linuxsrc/linux-3.2/tools/virtio $ make
> gcc -g -O2 -Wall -I. -I ../../include/ -Wno-pointer-sign
> -fno-strict-overflow  -MMD   -c -o virtio_ring.o
> ../../drivers/virtio/virtio_ring.c
> In file included from ./linux/virtio.h:11:0,
>                 from ../../drivers/virtio/virtio_ring.c:19:
> ../../include/linux/types.h:13:2: warning: #warning "Attempt to use
> kernel headers from user space, see
> http://kernelnewbies.org/KernelHeaders"
> In file included from ../../include/linux/module.h:9:0,
>                 from ../../drivers/virtio/virtio_ring.c:24:
> ../../include/linux/list.h:24:42: warning: ‘struct list_head’ declared
> inside parameter list
> ../../include/linux/list.h:24:42: warning: its scope is only this
> definition or declaration, which is probably not what you want
> ../../include/linux/list.h: In function ‘INIT_LIST_HEAD’:
> ../../include/linux/list.h:26:6: error: dereferencing pointer to
> incomplete type
> ../../include/linux/list.h:27:6: error: dereferencing pointer to
> incomplete type
> ../../include/linux/list.h: At top level:
> ../../include/linux/list.h:39:17: warning: ‘struct list_head’ declared
> inside parameter list
>
> ...<snip>...
>
> I tried again to fix it further, without success.
> Has anyone succeeded compiling tools/virtio?
>
> By the way, my system is Ubuntu 11.10 with Kernel 3.2.
>
> Cheers,
> Dongsu
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ