>
> 我用 "gcc-4.4 -Wall -O2 test.c" 编译失败,就使用 gcc-4.3 试试,也是如此。
>

struct ip_vs_get_services

有个特别的成员:
        struct ip_vs_service_entry entrytable[0];

可能跟优化选项有关系。把 -O2 去掉试试吧。

回复