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]
Message-ID: <CAEH94Lgha0Ug2Tk9-22=B58tb9xWG5knAfB04aVbW63F5Xi6TA@mail.gmail.com>
Date:	Mon, 9 Apr 2012 14:02:53 +0800
From:	Zhi Yong Wu <zwu.kernel@...il.com>
To:	"Michael S. Tsirkin" <mst@...hat.com>
Cc:	Dongsu Park <advance38@...il.com>, linux-kernel@...r.kernel.org
Subject: Re: tools/virtio: Compile errors

On Thu, Feb 9, 2012 at 12:47 AM, Michael S. Tsirkin <mst@...hat.com> wrote:
> On Wed, Feb 08, 2012 at 05:04:05PM +0100, Dongsu Park 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
>
>
>> By the way, my system is Ubuntu 11.10 with Kernel 3.2.
>>
>> Cheers,
>> Dongsu
>
> This patch is missing - I'll put it upstream.
>
> --->
>
> tools/virtio: add module.h stub
>
> make it build with linux 3.2
>
> Signed-off-by: Michael S. Tsirkin <mst@...hat.com>
>
> diff --git a/tools/virtio/linux/module.h b/tools/virtio/linux/module.h
> new file mode 100644
> index 0000000..96868eb
> --- /dev/null
> +++ b/tools/virtio/linux/module.h
> @@ -0,0 +1,3 @@
> +#ifndef LINUX_MODULE_H
> +#define LINUX_MODULE_H
> +#endif
After the patch was applied in my env, i met another issue.
[root@f15 virtio]# make test
cc -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: In function \u2018virtqueue_add_buf\u2019:
../../drivers/virtio/virtio_ring.c:277:2: warning: implicit
declaration of function \u2018wmb\u2019
[-Wimplicit-function-declaration]
../../drivers/virtio/virtio_ring.c: In function \u2018virtqueue_get_buf\u2019:
../../drivers/virtio/virtio_ring.c:437:2: warning: implicit
declaration of function \u2018rmb\u2019
[-Wimplicit-function-declaration]
cc   virtio_test.o virtio_ring.o   -o virtio_test
virtio_ring.o: In function `virtqueue_add_buf':
/home/zwu/work/kernel/vhost-scsi/tools/virtio/../../drivers/virtio/virtio_ring.c:277:
undefined reference to `wmb'
virtio_ring.o: In function `virtqueue_get_buf':
/home/zwu/work/kernel/vhost-scsi/tools/virtio/../../drivers/virtio/virtio_ring.c:437:
undefined reference to `rmb'
collect2: ld returned 1 exit status
make: *** [virtio_test] Error 1

> --
> 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/



-- 
Regards,

Zhi Yong Wu
--
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