Unable to install INET4.3.5 with OMNET++ Pre15 on Windows 10 - windows-10

According to the OMNET installation guide, I am able to run Aloha example with OMNET++
According to INET Install guide. I went to Help -> Install Simulation Models and tried to install INET 4.3.5. But it failed.
Build console output:
lld-link: error: undefined symbol: __declspec(dllimport) select
>>> referenced by inet/common/scheduler/RealTimeScheduler.cc:135
>>> referenced 42 more times
lld-link: error: undefined symbol: __declspec(dllimport) ntohs
>>> referenced 88 more times
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
D:\OMNET\omnetpp-6.0pre15\tools\win32.x86_64\mingw64\bin/llvm-ar.exe: error: unable to load '../out/clang-debug/src/libINET_dbg.dll.a': No such file or directory
make[1]: *** [Makefile:1762: ../out/clang-debug/src/libINET_dbg.dll] Error 1
make[1]: Leaving directory '/d/OMNET/omnetpp-6.0pre15/samples/inet4.3/src'
make: *** [Makefile:7: all] Error 2
"make MODE=debug -j4 all" terminated with exit code 2. Build might be incomplete.
Kindly help in installing inet framework on Windows10.

Yeah, on Windows, INET has t o be updated to compile properly. Until a new INET release is coming out, you can do this change, to make it compile:
https://github.com/inet-framework/inet/commit/676711aa40a7cfd495f2afb9136a0562cf8cb871

Related

Kernel module on cross-compile kernel: /bin/sh: 1: scripts/basic/fixdep: Exec format error

I'm doing some experiment on rpi4, and trying to reproduce this kernel module from github https://github.com/sysprog21/dont-trace on my rpi4. I encounter this problem:
make -C /lib/modules/`uname -r`/build M=/home/ubuntu/dont-trace modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.65-rt49-preemptrt-full-raspi'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: aarch64-linux-gnu-gcc (Debian 10.2.1-6) 10.2.1 20210110
You are using: gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
CC [M] /home/ubuntu/dont-trace/dont_trace.o
/bin/sh: 1: scripts/basic/fixdep: Exec format error
make[2]: *** [scripts/Makefile.build:289: /home/ubuntu/dont-trace/dont_trace.o] Error 126
make[2]: *** Deleting file '/home/ubuntu/dont-trace/dont_trace.o'
make[1]: *** [Makefile:1896: /home/ubuntu/dont-trace] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.65-rt49-preemptrt-full-raspi'
make: *** [Makefile:7: all] Error 2
The kernel here is cross-compiled from x86 server and do show above. I was wondering how to solve this problem & what's the root cause. I can make it on x86 server. It should be something fundamental knowledge I don't understand. Thks!
it seems work this time
My solution might be a bit workaround, but it works. I follow the clues /bin/sh: 1: scripts/basic/fixdep: Exec format error. So I copy the source code to local raspberry pi, and make modules_prepare to construct complete /scripts, then move it into /lib/modules/`uname -r\`/build. It remain the gcc version warning, but work properly.

cargo build : failed to run custom build command for nfc1-sys v0.2.1

new to rust here.
I have included nfc1 in my Cargo.toml file, and when running cargo build, I am faced with a failed to run custom build command for nfc1-sys v0.2.1 error. Followed by:
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libnfc/libnfc.6.0.0.dylib] Error 1
make[1]: *** [libnfc/CMakeFiles/nfc.dir/all] Error 2
make: *** [all] Error 2
thread 'main' panicked at '
command did not execute successfully, got: exit status: 2
build script failed, must exit now'
I am on MacOS Monterey, v12.0.1
rustc 1.59.0
Any help is much appreciated please, thank you !

While building kernel image i am getting this error while doing make -j4 (Using ubuntu)

lib/mpi/generic_mpih-lshift.o:/home/shubh/Root/XENO_WS/linux-3.8.13/lib/mpi/mpi-inline.h:110: first defined here
scripts/Makefile.build:443: recipe for target 'lib/mpi/mpi.o' failed
make[2]: *** [lib/mpi/mpi.o] Error 1
scripts/Makefile.build:454: recipe for target 'lib/mpi' failed
make[1]: *** [lib/mpi] Error 2
Makefile:791: recipe for target 'lib' failed
make: *** [lib] Error 2
make: *** Waiting for unfinished jobs....
How can I resolve this? When I am doing same steps in OpenSUSE it is not giving any error. I followed these steps:
make mrproper
make oldconfig
make -j4
then I get the error in between this.
So you use gcc of version 5, which is incompatible with Linux kernel version you want to compile. – Tsyvarev
It is resolve now. I build the kernel with lower version of gcc. – sam1006

undefined reference to symbol 'pthread_rwlock_wrlock##GLIBC_2.2.5' in azure storage c++ sdk compilation

I am trying to compile Azure storage c++ SDK on Fedora 22. I am using gcc version 5.1.1-1. When I compile test application using following command:
$> CASABLANCA_DIR=/source/codebox/azure/cpprestsdk/ CXX=g++ cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=on
$> make
It produces following error message:
/usr/bin/ld: CMakeFiles/azurestoragetest.dir/main.cpp.o: undefined reference to symbol 'pthread_rwlock_wrlock##GLIBC_2.2.5'
/usr/lib64/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
tests/CMakeFiles/azurestoragetest.dir/build.make:879: recipe for target 'Binaries/azurestoragetest' failed
make[2]: *** [Binaries/azurestoragetest] Error 1
CMakeFiles/Makefile2:125: recipe for target 'tests/CMakeFiles/azurestoragetest.dir/all' failed
make[1]: *** [tests/CMakeFiles/azurestoragetest.dir/all] Error 2
Makefile:126: recipe for target 'all' failed
make: *** [all] Error 2
I can see libpthread.so.0 library in /usr/lib64 directory. Which other library I need to install?
Add the right find_package invokation to your CMakeLists.txt:
find_package(Threads)
Then, link the library to your target:
target_link_libraries(my_target ${CMAKE_THREAD_LIBS_INIT})
That's all. Likely you forgot the target_link_libraries.
In general (outside of CMake and Azure Storage SDK), this error indicates you need to link with -lpthread. (With gcc you likely want -pthread.)

Error encountered when installing node.js

I am trying to install node.js on my Debian Wheezy server. I am following this guide as a reference.
However, I am facing issues at this command.
sudo make install
I am getting
g++: error: unrecognized command line option '-fuse-ld=gold'
make[1]: *** [/node-v4.4.4/out/Release/mksnapshot] Error 1
make[1]: Leaving directory `/node-v4.4.4/out'
make: *** [node] Error 2
I have been looking around but can't seem to find anything that helps. Can anyone help?

Resources