什么';原因是什么;IPv6 feasure禁用错误“;在WSL Ubuntu中构建INET 4.1.2时

什么';原因是什么;IPv6 feasure禁用错误“;在WSL Ubuntu中构建INET 4.1.2时,ubuntu,omnet++,inet,Ubuntu,Omnet++,Inet,在WSL Ubuntu的omnet++5.5.1中构建INET 4.1.2时,会出现如下所示的构建错误,错误为“IPv6功能已禁用”。但是,在窗口环境中构建相同的包不会出错。 Ubuntu中出现构建错误的原因可能是什么 *** LINKING with: g++ -shared -fPIC -o ../out/gcc-release/src/libINET.so -Wl,--no-as-needed -Wl,--whole-archive -Wl,--no-whole-archive -lo

在WSL Ubuntu的omnet++5.5.1中构建INET 4.1.2时,会出现如下所示的构建错误,错误为“IPv6功能已禁用”。但是,在窗口环境中构建相同的包不会出错。 Ubuntu中出现构建错误的原因可能是什么

 *** LINKING with:
g++ -shared -fPIC -o ../out/gcc-release/src/libINET.so -Wl,--no-as-needed -Wl,--whole-archive  -Wl,--no-whole-archive -loppenvir -loppsim -ldl -lstdc++  -losg -losgText -losgDB -losgGA -losgViewer -losgUtil -lOpenThreads  -losgEarth -losgEarthUtil  -Wl,-rpath,/home/castrov/omnet++/omnetpp-5.5.1/lib -Wl,-rpath,/lib -Wl,-rpath,.  -Wl,--export-dynamic -L/home/castrov/omnet++/omnetpp-5.5.1/lib
Building...
inet/networklayer/configurator/ipv6/Ipv6FlatNetworkConfigurator.cc
In file included from inet/networklayer/configurator/ipv6/Ipv6FlatNetworkConfigurator.cc:24:
./inet/networklayer/ipv6/Ipv6InterfaceData.h:27:2: error: #error "IPv6 feature disabled"
   27 | #error "IPv6 feature disabled"
      |  ^~~~~
make[1]: *** [Makefile:1606: ../out/gcc-release/src/inet/networklayer/configurator/ipv6/Ipv6FlatNetworkConfigurator.o] Error 1

我在没有使用WSL的情况下重新安装了Ubuntu。然后INET构建错误消失。

在RHEL 8.3、INET 4.2.2上也有同样的问题

结果是,下面的文件是空的

src/inet/features.h
只需删除此文件并重新开始构建即可解决此问题