HarryWei / cloudxy

Automatically exported from code.google.com/p/cloudxy
6 stars 3 forks source link

[HLFS]HLFS Pool driver for Libvirt V1 multi-line comment warning #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1, 
搭建HLFS环境,详见http://code.google.com/p/cloudxy/wiki/HlfsUserManual
2, 搭建 libvirt 环境。
  a. git clone git://libvirt.org/libvirt.git
  b. git reset --hard v1.0.1
  c. wget http://cloudxy.googlecode.com/svn/branches/hlfs/person/harry/hlfs/patches/hlfs_driver_for_libvirt_pool.patch
  d. git apply hlfs_driver_for_libvirt_pool.patch
这里需要修改一下 libvirt/src/Makefile.am 
文件中的一些链接库路径和头文件路径。
  e. ./autogen.sh
  f. ./configure
  g. make 

output:

make[3]: *** Waiting for unfinished jobs....
  CC     libvirt_driver_storage_impl_la-storage_backend_hlfs.lo
In file included from /home/kanghua/hlfs/src/include/snapshot_helper.h:14:0,
                 from storage/storage_backend_hlfs.c:19:
/home/kanghua/hlfs/src/include/snapshot.h:56:2: error: multi-line comment 
[-Werror=comment]
cc1: all warnings being treated as errors

Let's look the snapshot.h
    54  
    55      struct snapshot *hlfs_get_all_snapshots(const char *uri, int *num_entries);
    56      //struct snapshot *__hlfs_get_all_snapshots(struct back_storage\ *storage, 
    57      int *num_entries);
    58  

改为下面这样就没事了,蛤蟆意思,不识别换行符,但是非注释��
�换行符却是识别的。难道因为注释连换行符都失效了,不对�
��,要是失效就应该报错才对。
    54  
    55      struct snapshot *hlfs_get_all_snapshots(const char *uri, int *num_entries);
    56      //struct snapshot *__hlfs_get_all_snapshots(struct back_storage *storage, 
    57      //int *num_entries);
    58  
Please use labels and text to provide additional information.

Original issue reported on code.google.com by littlesmartsmart on 6 Feb 2013 at 11:52

GoogleCodeExporter commented 9 years ago
Let's look the snapshot.h
    54  
    55      struct snapshot *hlfs_get_all_snapshots(const char *uri, int *num_entries);
    56      //struct snapshot *__hlfs_get_all_snapshots(struct back_storage*storage, \ 
    57      int *num_entries);
    58  

改为下面这样就没事了,蛤蟆意思,不识别换行符,但是非注释��
�换行符却是识别的。难道因为注释连换行符都失效了,不对�
��,要是失效就应该报错才对。
    54  
    55      struct snapshot *hlfs_get_all_snapshots(const char *uri, int *num_entries);
    56      //struct snapshot *__hlfs_get_all_snapshots(struct back_storage *storage, 
    57      //int *num_entries);
    58  

Original comment by littlesmartsmart on 6 Feb 2013 at 11:59

GoogleCodeExporter commented 9 years ago

Original comment by kanghua...@gmail.com on 9 Feb 2013 at 6:24